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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ccf44
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x51e494]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea esi, [esp + 0x20]
call fcn.00403188
xor esi, esi
mov dword [esp + 0x78], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [eax + 0x38]
mov ecx, dword [ebx + 0xa8]
mov dword [esp + 0x10], esi
cmp ecx, esi
jbe 0x4ca10a
mov edi, dword [ebx + 0xa4]
cmp edi, esi
jbe 0x4ca10a
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
xor edx, edx
imul eax, ecx
div edi
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x78], esi
jne 0x4ca247
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x18], 0xff000000
call fcn.00420d67
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00489765
mov byte [esp + 0x78], 1
mov eax, dword [ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x2c]
mov dword [esp + 0x14], eax
and dword [esp + 0x14], 1
je 0x4ca165
lea esi, [esp + 0x5c]
mov ecx, ebx
call fcn.004cace6
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
push eax
push ecx
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x44]
push dword [esp + 0x30]
call fcn.004c7acd
test eax, eax
je 0x4ca194
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x1c], 0xff000000
call fcn.00420d67
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00489765
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0x3c]
lea edi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub eax, ecx
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x10], eax
jae 0x4ca1dd
mov eax, dword [esp + 0x10]
add ecx, eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], ecx
je 0x4ca1f9
lea esi, [esp + 0x4c]
mov ecx, ebx
call fcn.004cace6
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.004c7acd
test eax, eax
je 0x4ca224
mov dword [esp + 0x20], eax
mov byte [esp + 0x78], 1
lea eax, [esp + 0x24]
push eax
call fcn.00489686
mov byte [esp + 0x78], 0
lea eax, [esp + 0x30]
push eax
call fcn.00489686
jmp 0x4ca2f9
lea eax, [esp + 0x1c]
push eax
push ebx
lea edi, [esp + 0x44]
call fcn.004c9fb0
cmp byte [ebx + 0xac], 0
je 0x4ca2e6
cmp byte [ebx + 0x60], 0
je 0x4ca2e6
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0x58]
sub eax, ecx
imul eax, edx
cdq
idiv esi
mov esi, edi
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x84]
mov dword [esp + 0x18], 5
add ecx, eax
and dword [esp + 0x14], 0
mov dword [esp + 0x5c], ecx
jmp 0x4ca2a7
mov ebx, dword [ebp + 8]
mov esi, dword [edi]
call fcn.0040310f
mov dword [esp + 0x10], eax
call fcn.0040312f
mov ecx, dword [esp + 0x14]
push eax
push dword [esp + 0x64]
mov eax, dword [esp + 0x64]
push esi
mov esi, dword [esp + 0x1c]
push ebx
add ecx, eax
mov edx, esi
lea ebx, [esp + 0x2c]
call fcn.004c9d6a
add dword [esp + 0x14], esi
add edi, 4
dec dword [esp + 0x18]
jne 0x4ca2a4
jmp 0x4ca2f9
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x48]
call fcn.004c9e23
or dword [esp + 0x78], 0xffffffff
push dword [esp + 0x1c]
call fcn.004aaf7a
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8