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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ca7dc
sub esp, 0x4c
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 0x16]
test cx, 8
je 0x4ca7d8
mov dword [esp], eax
call fcn.004cab10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
test eax, eax
je 0x4ca640
mov ebx, dword [esp + 0x50]
mov dword [ebx + 0x78], edx
mov edx, dword [0x68ad40]
test edx, edx
jne 0x4ca632
mov dword [ebx + 0x7c], ecx
jmp 0x4ca63c
lea edi, [ebx + 0x7c]
mov eax, ecx
call fcn.0045c980
add esp, 0x4c
ret
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax + 0x74]
test cl, cl
je 0x4ca653
mov esi, 1
jmp 0x4ca694
cmp dword [eax + 0x40], 0xffffffff
setae cl
mov edx, dword [eax + 0x44]
test edx, edx
sete dl
xchg esi, ebx
seta bl
xchg esi, ebx
and ecx, edx
or ecx, esi
test cl, cl
je 0x4ca678
mov esi, 1
jmp 0x4ca694
mov ecx, dword [eax + 0x4c]
test ecx, ecx
seta dl
cmp dword [eax + 0x48], 0xffffffff
xchg esi, ebx
setae bl
xchg esi, ebx
test ecx, ecx
sete cl
and esi, ecx
or esi, edx
xchg esi, eax
mov byte [esp + 0x1b], al
xchg esi, eax
mov dword [esp + 0x30], ebp
xchg esi, eax
test al, al
xchg esi, eax
je 0x4ca6ab
mov ecx, 0x18
jmp 0x4ca6b0
mov ecx, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov edx, dword [eax + 0x6c]
mov dword [esp + 0x44], edx
add ebx, edx
mov dword [esp + 0x40], ebx
mov esi, dword [eax + 0x40]
mov dword [esp + 0x1c], esi
add esi, ebx
mov dword [esp + 0x24], esi
add ecx, esi
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x38], ecx
mov esi, dword [eax + 0x68]
mov dword [esp + 0x48], esi
mov esi, dword [eax + 0x64]
mov dword [esp + 0x20], esi
mov eax, dword [eax + 0x70]
mov dword [esp + 0x34], eax
lea ecx, [0x53d420]
mov dword [esp], ecx
call fcn.0040b290
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
add ecx, edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
adc ecx, edx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
add edx, ebx
mov edx, dword [esp + 0x38]
adc ecx, edx
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add edx, ebx
mov edx, ecx
adc ecx, 0
mov ebp, dword [0x68ad40]
test ebp, ebp
jne 0x4ca752
mov ebp, dword [esp + 0x48]
mov dword [eax + 4], ebp
jmp 0x4ca762
lea edi, [eax + 4]
mov ebp, eax
mov eax, dword [esp + 0x48]
call fcn.0045c980
mov eax, ebp
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
lea ecx, [0x5878b4]
mov dword [esp], ecx
mov dword [esp + 4], eax
movzx eax, byte [esp + 0x1b]
mov byte [esp + 8], al
call fcn.004cc480
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test ecx, ecx
je 0x4ca7cb
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x78], ebx
mov ebx, dword [0x68ad40]
test ebx, ebx
jne 0x4ca7bd
mov dword [ecx + 0x7c], edx
jmp 0x4ca7c7
lea edi, [ecx + 0x7c]
mov eax, edx
call fcn.0045c980
add esp, 0x4c
ret
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x34], eax
add esp, 0x4c
ret
add esp, 0x4c
ret
call fcn.0045b540
jmp fcn.004ca5d0