Function at 0x4cafb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5835b6
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x62d414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], str.COOPCServer::Update
push str..OPCHDA_SyncUpdate.cpp
push 0xc4
push str.COOPCServer::Update
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004a2510
mov ecx, eax
call fcn.0041ac10
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x24]
mov dword [eax], 0
mov edi, dword [ebp + 0xc]
lea eax, [edi - 1]
mov dword [ebp - 0x28], eax
cmp eax, 0xf
ja case.0x4cb02b.3
movzx ecx, byte [eax + 0x4cbbd0]
jmp dword [ecx*4 + 0x4cbbc0]
cmp dword [ebp + 0x18], 0
je 0x4cb104
cmp dword [ebp + 0x14], 0
je 0x4cb104
cmp dword [ebp + 0x1c], 0
je 0x4cb104
cmp dword [ebp + 0x20], 0
je 0x4cb104
xor edi, edi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jbe 0x4cb1bd
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + edi*4]
push eax
call fcn.004caea0
add esp, 4
test al, al
jne 0x4cb08d
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + edi*4]
push eax
call fcn.004caee0
add esp, 4
test al, al
je 0x4cb09a
inc edi
cmp edi, ebx
jb 0x4cb067
mov eax, dword [ebp - 0x28]
jmp 0x4cb1bb
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
mov edx, dword [ebp + 0x20]
mov edx, dword [edx + edi*4]
push edx
push edi
push 0x80004005
push str.Returning_0x_08x__E_FAIL_._Bad_arguments:__Item_Quality__item:_d_Quality:0x_x__
push str.COOPCServer::Update
push 1
push eax
mov eax, dword [ecx]
call eax
add esp, 0x1c
push 0x80004005
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0xdf
push str.COOPCServer::Update
mov ecx, esi
call fcn.004a2510
mov ecx, eax
call fcn.0041ada0
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
push 0x80004003
push str.Returning_0x_08x__E_POINTER_._Bad_arguments:__NULLftTimeStamps__NULLphServer__NULLvDataValues__NULLpdwQualities__NULLppErrors_
push str.COOPCServer::Update
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x14
push 0x80004003
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0xd4
push str.COOPCServer::Update
mov ecx, esi
call fcn.004a2510
mov ecx, eax
call fcn.0041ada0
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
cmp dword [ebp + 0x14], 0
jne 0x4cb1b8
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
push 0x80004003
push str.Returning_0x_08x__E_POINTER_._Bad_arguments:_phServer__NULL__ppErrorsNULL
push str.COOPCServer::Update
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x14
push 0x80004003
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0xeb
jmp 0x4cb13a
cmp dword [ebp + 0x14], 0
je 0x4cbb20
cmp dword [ebp + 0x18], 0
je 0x4cbb20
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4cb1fa
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
push 0x80070057
push str.Returning_0x_08x__E_INVALIDARG_._Bad_arguments:__0dwNumItems_
push str.COOPCServer::Update
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x14
push 0x80070057
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0x10a
jmp 0x4cbb92
movzx eax, byte [eax + 0x4cbbf8]
jmp dword [eax*4 + 0x4cbbe0]
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
push 0x80004003
push str.Returning_0x_08x__E_POINTER_._Bad_arguments:_phServer__NULL__ppErrorsNULL__ftTimeStampsNULL
push str.COOPCServer::Update
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x14
push 0x80004003
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0xf6
jmp 0x4cb13a
mov ecx, esi
call fcn.004a2510
mov ecx, dword [eax]
push edi
push 0x80070057
push str.Returning_0x_08x__E_INVALIDARG_._Bad_arguments:_dwMode_
push str.COOPCServer::Update
push 1
push eax
mov edx, dword [ecx]
call edx
add esp, 0x18
push 0x80070057
push 0x59b750
push str..OPCHDA_SyncUpdate.cpp
push 0xff
push str.COOPCServer::Update
mov ecx, esi
call fcn.004a2510
mov ecx, eax
call fcn.0041ada0
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28