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

Disassembly:
sub esp, 0xa4
mov ecx, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb4]
push esi
mov esi, dword [esp + 0xc8]
push edi
mov eax, esi
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xc8]
lea edx, [esi - 1]
push edx
push eax
sar edi, 1
add edi, ecx
push edi
push ebp
push ecx
mov dword [esp + 0x48], ecx
push ebp
mov eax, ebx
mov dword [esp + 0x4c], esi
call fcn.004cb110
mov eax, ebp
lea ecx, [edi + 1]
add esp, 0x18
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edi
cmp dword [esp + 0xc4], edi
jae 0x4ca650
lea eax, [esp + 0x20]
call fcn.00413720
mov dword [esp + 0x28], eax
lea esi, [edi - 1]
lea eax, [esp + 0x18]
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
call fcn.00413720
mov ecx, dword [esp + 0x28]
push ecx
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca650
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
call fcn.00413720
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
call fcn.00413720
mov edx, dword [esp + 0x28]
push edx
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca650
mov edi, esi
jmp 0x4ca5da
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xcc]
jae 0x4ca6a1
lea eax, [esp + 0x20]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x10]
call fcn.00413720
push esi
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca6a1
lea eax, [esp + 0x10]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x20]
call fcn.00413720
push esi
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca6a1
inc dword [esp + 0x14]
jmp 0x4ca650
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov esi, edi
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0x1c], eax
jae 0x4ca760
lea eax, [esp + 0x18]
call fcn.00413720
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
call fcn.00413720
mov ecx, dword [esp + 0x28]
push ecx
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca757
lea eax, [esp + 0x20]
call fcn.00413720
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
call fcn.00413720
mov edx, dword [esp + 0x28]
push edx
push eax
call ebx
add esp, 8
test al, al
jne 0x4ca760
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, edx
inc edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x64], ecx
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x60]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov ebx, dword [esp + 0xbc]
inc dword [esp + 0x1c]
jmp 0x4ca6b3
cmp esi, dword [esp + 0xc4]
jbe 0x4ca840
lea eax, [esp + 0x20]
call fcn.00413720
mov ebx, eax
mov eax, ebp
mov dword [esp + 0xa8], eax
lea ebp, [esi - 1]
lea eax, [esp + 0xa8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xac], ebp
call fcn.00413720
push ebx
push eax
call dword [esp + 0xc4]
add esp, 8
test al, al
jne 0x4ca82a
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x54], ebp
call fcn.00413720
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
call fcn.00413720
mov ecx, dword [esp + 0x28]
push ecx
push eax
call dword [esp + 0xc4]
add esp, 8
test al, al
jne 0x4ca835
dec edi
mov edx, ebx
lea eax, [esp + 0x80]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x40]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov esi, ebp
mov ebp, dword [esp + 0x20]
jmp 0x4ca760
mov ebp, dword [esp + 0x20]
cmp esi, dword [esp + 0xc4]
jne 0x4ca8f1
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0xcc]
je 0x4ca9cf
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4ca897
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edi
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x70]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc dword [esp + 0x14]
mov ecx, edx
inc edx
mov dword [esp + 0x1c], edx
mov edx, edi
mov dword [esp + 0x90], eax
inc edi
lea eax, [esp + 0x90]
mov dword [esp + 0x24], edi
mov dword [esp + 0x94], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edx
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x48]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov ebx, dword [esp + 0xbc]
jmp 0x4ca6b3
mov edx, dword [esp + 0x1c]
dec esi
cmp edx, dword [esp + 0xcc]
jne 0x4ca984
dec edi
mov dword [esp + 0x24], edi
cmp esi, edi
je 0x4ca937
lea eax, [esp + 0x58]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], esi
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x68]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], edi
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x88]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov ebx, dword [esp + 0xbc]
jmp 0x4ca6b3
mov eax, dword [esp + 0x18]
mov ecx, edx
inc edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], esi
mov dword [esp + 0x34], ecx
call fcn.00413720
mov ebx, eax
lea eax, [esp + 0x30]
call fcn.00413720
mov ecx, eax
call fcn.004cb730
mov ebx, dword [esp + 0xbc]
jmp 0x4ca6b3
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop ebx
add esp, 0xa4
ret