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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff88
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
cmp dword [ebx + 0x2a4], 0
je 0x4ca75b
mov dword [ebx + 0x244], 0xffffffff
mov dword [ebx + 0x248], 0xffffffff
lea edx, [esp + 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc0]
cmp dword [ebx + 0x278], 0
jg 0x4ca3a8
mov eax, dword [ebx + 0x2a4]
mov esi, dword [eax + 0x164]
mov edi, dword [esp + 0x2c]
jmp 0x4ca385
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
cmp byte [ebx + 0x241], 0
je 0x4ca335
lea edx, [esp + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
sub eax, dword [esp + 0x38]
sar eax, 1
jns 0x4ca2a1
adc eax, 0
add eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x3c]
sar eax, 1
jns 0x4ca2c6
adc eax, 0
add eax, edi
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x38]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xf0]
test al, al
je 0x4ca327
mov dword [ebx + 0x248], esi
jmp 0x4ca75b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
add dword [esp + 8], eax
push esi
mov eax, dword [esp + 0x10]
add eax, edi
push eax
lea eax, [esp + 0x48]
push eax
mov eax, ebx
call fcn.004ca174
mov ecx, eax
add ecx, dword [esp + 0x14]
mov edx, edi
mov eax, dword [esp + 0x14]
call fcn.004108dc
lea eax, [esp + 0x44]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xec]
test al, al
je 0x4ca380
mov dword [ebx + 0x244], esi
jmp 0x4ca75b
inc esi
add edi, dword [esp + 0xc]
cmp edi, dword [esp + 0x34]
jge 0x4ca75b
mov eax, dword [ebx + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp esi, eax
jle 0x4ca259
jmp 0x4ca75b
xor esi, esi
xor eax, eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 1
mov edi, dword [esp + 0x2c]
jmp 0x4ca730
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov dword [esp + 0xc], eax
cmp byte [ebx + 0x241], 0
je 0x4ca409
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
mov ebp, eax
mov eax, ebx
call fcn.004ca174
add ebp, eax
mov eax, dword [ebx + 0x2a4]
mov edx, dword [esp + 0x10]
sub edx, dword [eax + 0x164]
imul ebp, edx
add ebp, dword [esp + 0x28]
mov dword [esp + 0x18], ebp
jmp 0x4ca42a
mov eax, ebx
call fcn.004ca174
mov edx, dword [ebx + 0x2a4]
mov ecx, dword [esp + 0x10]
sub ecx, dword [edx + 0x164]
imul ecx
add eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov eax, ebx
call fcn.004ca174
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, ebx
call fcn.004cab04
mov edx, dword [esp + 0xc]
add edx, edi
cmp eax, edx
jge 0x4ca5d4
cmp byte [esp + 0x14], 0
je 0x4ca5c2
mov eax, dword [ebx + 0x2a4]
mov edx, dword [esp + 0x10]
sub edx, dword [eax + 0x164]
js 0x4ca5c1
cmp byte [ebx + 0x241], 0
je 0x4ca59a
push esi
lea edx, [esp + 0x3c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov edi, dword [esp + 0x10]
sub edi, dword [esp + 0x40]
sar edi, 1
jns 0x4ca4aa
adc edi, 0
add edi, dword [esp + 0x20]
lea edx, [esp + 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
add edi, dword [esp + 0x58]
push edi
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x64]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edi, eax
sub edi, dword [esp + 0x64]
sar edi, 1
jns 0x4ca4eb
adc edi, 0
add edi, dword [esp + 0x24]
lea edx, [esp + 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
add edi, dword [esp + 0x6c]
push edi
lea edx, [esp + 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x7c]
sar eax, 1
jns 0x4ca51f
adc eax, 0
add eax, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x84]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
sub eax, dword [esp + 0x84]
sar eax, 1
jns 0x4ca54d
adc eax, 0
add eax, dword [esp + 0x2c]
pop edx
pop ecx
call fcn.004108dc
lea eax, [esp + 0x44]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
je 0x4ca57e
mov dword [ebx + 0x248], esi
jmp 0x4ca75b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
add dword [esp + 0x18], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
add dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
je 0x4ca5c1
mov dword [ebx + 0x244], esi
jmp 0x4ca75b
inc esi
inc dword [esp + 0x10]
mov byte [esp + 0x14], 1
mov edi, dword [esp + 0x2c]
jmp 0x4ca730
mov eax, dword [ebx + 0x2a4]
mov edx, dword [esp + 0x10]
sub edx, dword [eax + 0x164]
js 0x4ca726
cmp byte [ebx + 0x241], 0
je 0x4ca702
push esi
lea edx, [esp + 0x3c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov ebp, dword [esp + 0x10]
sub ebp, dword [esp + 0x40]
sar ebp, 1
jns 0x4ca615
adc ebp, 0
add ebp, dword [esp + 0x20]
lea edx, [esp + 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
add ebp, dword [esp + 0x58]
push ebp
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x64]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
mov ebp, eax
sub ebp, dword [esp + 0x64]
sar ebp, 1
jns 0x4ca656
adc ebp, 0
add ebp, dword [esp + 0x24]
lea edx, [esp + 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
add ebp, dword [esp + 0x6c]
push ebp
lea edx, [esp + 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x7c]
sar eax, 1
jns 0x4ca68a
adc eax, 0
add eax, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x84]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
sub eax, dword [esp + 0x84]
sar eax, 1
jns 0x4ca6b8
adc eax, 0
add eax, dword [esp + 0x2c]
pop edx
pop ecx
call fcn.004108dc
lea eax, [esp + 0x44]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xf0]
test al, al
je 0x4ca6e6
mov dword [ebx + 0x248], esi
jmp 0x4ca75b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
add dword [esp + 0x18], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xdc]
add dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xec]
test al, al
je 0x4ca726
mov dword [ebx + 0x244], esi
jmp 0x4ca75b
mov byte [esp + 0x14], 0
inc esi
add edi, dword [esp + 0xc]
mov eax, dword [ebx + 0x2a4]
mov edx, dword [esp + 0x10]
sub edx, dword [eax + 0x164]
cmp edx, dword [ebx + 0x278]
jge 0x4ca75b
mov eax, dword [ebx + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp esi, eax
jl 0x4ca3be
add esp, 0x78
pop ebp
pop edi
pop esi
pop ebx
ret