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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ca3fd
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 4]
mov eax, dword [esp + 0x88]
cmp eax, ebx
jg 0x5ca348
xor ecx, ecx
jmp 0x5ca07b
mov ebx, dword [esp + 0x28]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
cmp eax, ecx
jle 0x5ca215
mov ebx, dword [edx + 4]
mov ebp, dword [edx]
cmp ecx, ebx
jae 0x5ca33f
mov dword [esp + 0x28], ecx
lea eax, [ecx + ecx*4]
lea esi, [ebp + eax*4]
lea edi, [esp + 0x6c]
call fcn.0045fb1e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x3c], ecx
add ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [edx + 0x14]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
lea eax, [0x635f00]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call fcn.0040f950
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x40]
add edx, ecx
mov edx, dword [esp + 0x38]
adc edx, eax
mov eax, dword [esp + 0x3c]
add eax, 1
adc edx, 0
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
cmp dword [eax], ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp dword [eax + 4], edx
sete al
and ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5ca156
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
lea ebp, [0x635f00]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00410380
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ebx
mov ebp, dword [esp + 0x84]
mov esi, dword [ebp + 0x18]
lea edi, [0x636180]
mov dword [esp], edi
mov dword [esp + 4], esi
lea esi, [esp + 0x4c]
mov dword [esp + 8], esi
call fcn.0040c310
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp dword [eax], ecx
sete cl
mov edx, dword [esp + 0x34]
cmp dword [eax + 4], edx
sete al
and ecx, eax
test cl, cl
jne 0x5ca1cc
jmp 0x5ca066
mov eax, dword [esp + 0x48]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
lea edx, [0x636180]
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.0040cd40
jmp 0x5ca066
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
cmp eax, ecx
ja 0x5ca33a
lea edx, [0x6520e0]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea edx, [eax + eax*4]
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl edx, 2
sar ebp, 0x1f
and edx, ebp
add edx, ebx
mov dword [esp + 0xc], edx
sub ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00410b70
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x88]
sub ecx, edx
jmp 0x5ca278
mov ebp, dword [esp + 0x24]
lea ecx, [ebp + 1]
mov eax, ebx
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov esi, dword [eax]
cmp ecx, ebx
jge 0x5ca2cb
jae 0x5ca331
mov dword [esp + 0x24], ecx
lea ebx, [ecx + ecx*4]
lea edi, [esi + ebx*4]
mov ebx, dword [0x84e4b0]
test ebx, ebx
jne 0x5ca2a9
mov ebx, eax
xor eax, eax
call fcn.0045f63b
jmp 0x5ca26f
lea eax, [0x6520e0]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.00410c40
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
jmp 0x5ca26f
sub ebx, edx
cmp ebp, ebx
jb 0x5ca328
mov dword [eax + 4], ebx
mov ecx, dword [eax + 0xc]
mov ebx, edx
add edx, ecx
mov ebp, dword [eax + 0x10]
mov esi, ebx
sar ebx, 0x1f
add esi, ecx
adc ebx, ebp
cmp edx, ecx
setb cl
cmp ebp, ebx
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg esi, ebx
seta bl
xchg esi, ebx
and ecx, ebp
or esi, ecx
xchg esi, eax
test al, al
xchg esi, eax
jne 0x5ca310
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
sub esp, 0xffffff80
ret
lea eax, [0x634440]
mov dword [esp], eax
lea eax, [0x6cf370]
mov dword [esp + 4], eax
call fcn.00434270
mov ecx, ebx
mov edx, ebp
call fcn.0045f460
mov eax, ecx
mov ecx, ebx
call fcn.0045f420
call fcn.0045f480
mov eax, ecx
mov ecx, ebx
call fcn.0045f420
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
lea ecx, [0x633c00]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
lea ecx, [0x633c00]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea eax, [0x67108e]
mov dword [esp], eax
mov dword [esp + 4], 0x28
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004b51d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00408e30
mov eax, dword [esp + 8]
lea ecx, [0x634440]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00434270
nop
call fcn.0045df90
jmp fcn.005ca030