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

Disassembly:
sub esp, 0xa4
push ebx
push esi
push edi
push ebp
mov ecx, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov esi, 4
mov eax, dword [esp + 0xbc]
mov ecx, dword [ecx]
mov edi, dword [edi]
mov ebx, ecx
mov eax, dword [eax]
shl ebx, 2
mov ebp, 0xfffffffc
sub ebx, 4
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x14], ebx
mov ebx, edi
dec ebx
imul ebx, dword [esp + 0x14]
mov dword [esp + 0x48], 0xfffffffe
mov dword [esp + 0x50], 1
mov dword [esp + 0x18], ebx
mov ebx, ecx
dec ebx
imul ebx, edi
lea ebx, [esi + ebx*4]
mov esi, 0xc
mov dword [esp + 0x1c], ebx
mov ebx, ecx
lea esi, [esi + eax*4]
add ebx, 3
mov dword [esp + 0x20], esi
mov esi, eax
imul ebx, dword [esp + 0x20]
add esi, 3
sub ebp, ecx
imul esi, ebp
mov ebp, eax
mov dword [esp + 0x24], ebx
shl esi, 2
sub esi, 4
shl ebp, 2
mov dword [esp + 0x28], esi
sub ebp, 4
mov esi, 4
mov dword [esp + 0x2c], ebp
mov ebp, edi
dec ebp
imul ebp, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov ebp, eax
dec ebp
imul ebp, edi
lea esi, [esi + ebp*4]
mov ebp, ecx
dec ebp
mov dword [esp + 0x34], esi
imul ebp, dword [esp + 0x2c]
mov esi, 4
mov dword [esp + 0x38], ebp
mov ebp, eax
dec ebp
imul ebp, ecx
lea esi, [esi + ebp*4]
mov ebp, eax
mov dword [esp + 0x3c], esi
mov esi, ecx
dec ebp
dec esi
mov dword [esp + 0x40], esi
mov esi, edi
dec esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], esi
test ebp, ebp
jle 0x4ca7ed
sub edx, dword [esp + 0x28]
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0xd8]
sub edx, dword [esp + 0x28]
sub eax, 2
sub ecx, 2
sub edi, 2
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edi
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], ecx
test ecx, ecx
mov dword [esp + 0x70], 1
jle 0x4ca7c8
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], 4
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x80], eax
test eax, eax
mov dword [esp + 0x84], 1
jle 0x4ca78b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x24]
lea ebp, [ebx + eax]
mov ebx, dword [esp + 0x54]
add ebx, ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x8c], ebx
lea ebx, [ebp + eax]
mov ebp, dword [esp + 0x54]
add ebp, ebx
mov ebx, dword [esp + 0xdc]
sub ebx, dword [esp + 0x28]
mov dword [esp + 0x94], ebp
lea ebp, [ebx + eax]
mov ebx, dword [esp + 0x54]
add ebx, ebp
mov ebp, dword [esp + 0xe0]
sub ebp, dword [esp + 0x28]
mov dword [esp + 0x98], ebx
lea ebx, [ebp + eax]
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0xd0]
add ebp, ebx
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x9c], ebp
mov ebx, dword [esp + 0x78]
mov ebp, eax
add ebx, dword [esp + 0x54]
add ebp, dword [esp + 0x38]
mov eax, dword [esp + 0xdc]
add ebx, ebp
mov ebp, dword [esp + 0x7c]
sub eax, dword [esp + 0x28]
add ebp, dword [esp + 0x54]
mov dword [esp + 0xa0], ebx
add ebp, eax
mov dword [esp + 0xa4], ebp
mov eax, dword [esp + 0xc8]
mov ebx, dword [esp + 0x88]
sub eax, dword [esp + 0x1c]
add ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
mov ebp, 2
mov edi, 1
lea edx, [eax + ebx]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x84]
add ebx, edx
imul eax, dword [esp + 0x24]
mov edx, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0xa8]
add esi, eax
mov dword [esp + 0xac], esi
mov eax, dword [ebx]
shl eax, 2
add eax, dword [esp + 0xb8]
mov eax, dword [eax - 4]
sub eax, 0xb
cmp eax, 8
ja 0x4ca499
mov eax, dword [esp + 0x8c]
fld dword [eax]
mov eax, dword [esp + 0x50]
fmul dword [0x57ac40]
cmp eax, edx
fchs
fstp st(1)
jle 0x4ca41b
mov eax, edx
mov ecx, dword [esp + 0x50]
cmp ecx, edx
jge 0x4ca425
mov ecx, edx
sub ecx, eax
inc ecx
mov esi, ecx
test ecx, ecx
jle 0x4ca474
shl eax, 2
add eax, dword [esp + 0xac]
cmp ecx, 8
jle 0x4ca46a
fld st(0)
sub esi, 9
fadd dword [eax]
cmp esi, 8
lea eax, [eax + 0x24]
fadd dword [eax - 0x20]
fadd dword [eax - 0x1c]
fadd dword [eax - 0x18]
fadd dword [eax - 0x14]
fadd dword [eax - 0x10]
fadd dword [eax - 0xc]
fadd dword [eax - 8]
fadd dword [eax - 4]
fstp st(1)
jg 0x4ca43d
test esi, esi
jle 0x4ca474
fadd dword [eax]
dec esi
lea eax, [eax + 4]
test esi, esi
jg 0x4ca46a
cmp dword [esp + 0x48], 0
jle 0x4ca48f
mov eax, 0
fld st(0)
fcomp dword [0x594794]
fnstsw ax
and ah, 5
jp 0x4ca499
fst dword [0x594794]
mov dword [esp + 0x48], edi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
add ebx, esi
add eax, edx
inc edi
dec ebp
mov edx, eax
test ebp, ebp
jg 0x4ca3df
mov esi, dword [esp + 0xcc]
mov eax, dword [esp + 0x90]
sub esi, dword [esp + 0x34]
add eax, dword [esp + 0x30]
mov ecx, 2
mov edi, 1
mov dword [esp + 0x10], 3
lea ebx, [esi + eax]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x54]
add esi, ebx
add eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x5c]
add ebx, eax
mov dword [esp + 0xa8], ebx
mov eax, dword [esi]
shl eax, 2
add eax, dword [esp + 0xb8]
mov eax, dword [eax - 4]
sub eax, 0xb
cmp eax, 8
ja 0x4ca5c4
mov eax, dword [esp + 0x94]
fld dword [eax]
mov eax, dword [esp + 0x70]
fmul dword [0x57ac40]
cmp eax, edi
fchs
fstp st(1)
jle 0x4ca536
mov eax, edi
mov ebp, dword [esp + 0x70]
cmp ebp, edi
jge 0x4ca540
mov ebp, edi
mov edx, dword [esp + 0x20]
sub ebp, eax
inc ebp
mov ebx, ebp
test ebp, ebp
jle 0x4ca59b
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0xa8]
cmp ebp, 8
jle 0x4ca592
fld st(0)
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
fadd dword [eax]
add eax, edx
sub ebx, 9
cmp ebx, 8
fstp st(1)
jg 0x4ca55e
test ebx, ebx
jle 0x4ca59b
fadd dword [eax]
add eax, edx
dec ebx
test ebx, ebx
jg 0x4ca592
cmp dword [esp + 0x48], 0
jle 0x4ca5b6
mov eax, 0
fld st(0)
fcomp dword [0x594794]
fnstsw ax
and ah, 5
jp 0x4ca5c4
fst dword [0x594794]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
add esi, edx
mov ebp, dword [esp + 0x10]
add edi, eax
inc ebp
dec ecx
mov dword [esp + 0x10], ebp
test ecx, ecx
mov ebp, dword [esp + 0xa0]
jg 0x4ca4fa
mov edx, 2
mov ebx, 1
mov dword [esp + 0x10], 5
mov eax, dword [ebp]
shl eax, 2
add eax, dword [esp + 0xb8]
mov eax, dword [eax - 4]
sub eax, 0xb
cmp eax, 8
ja 0x4ca6ce
mov eax, dword [esp + 0x98]
fld dword [eax]
mov eax, dword [esp + 0x84]
fmul dword [0x57ac40]
cmp eax, ebx
fchs
fstp st(1)
jle 0x4ca63b
mov eax, ebx
mov edi, dword [esp + 0x84]
cmp edi, ebx
jge 0x4ca648
mov edi, ebx
mov esi, dword [esp + 0xa4]
sub edi, eax
inc edi
mov ecx, edi
test edi, edi
jle 0x4ca6a5
imul eax, dword [esp + 0x24]
add esi, eax
mov eax, dword [esp + 0x24]
cmp edi, 8
jle 0x4ca69c
fld st(0)
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
fadd dword [esi]
add esi, eax
sub ecx, 9
cmp ecx, 8
fstp st(1)
jg 0x4ca668
test ecx, ecx
jle 0x4ca6a5
fadd dword [esi]
add esi, eax
dec ecx
test ecx, ecx
jg 0x4ca69c
cmp dword [esp + 0x48], 0
jle 0x4ca6c0
mov eax, 0
fld st(0)
fcomp dword [0x594794]
fnstsw ax
and ah, 5
jp 0x4ca6ce
fst dword [0x594794]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x68]
add ebp, ecx
mov edi, dword [esp + 0x10]
add ebx, eax
inc edi
dec edx
mov dword [esp + 0x10], edi
test edx, edx
mov edi, dword [esp + 0x84]
jg 0x4ca5fb
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x9c]
inc edi
add ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x2c]
add ebp, dword [esp + 0x8c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x88], ebx
add eax, dword [esp + 0x90]
mov esi, dword [esp + 0x24]
add edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x24]
add esi, dword [esp + 0x98]
add ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], ebp
dec edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x80], edx
test edx, edx
jg 0x4ca386
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
inc eax
mov ebx, dword [esp + 0x2c]
add edi, 4
mov ebp, dword [esp + 0x20]
add ebx, dword [esp + 0x78]
add ebp, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
dec ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x6c], ecx
test ecx, ecx
jg 0x4ca2ac
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
inc esi
mov eax, dword [esp + 0x4c]
add edx, 4
dec eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], eax
test eax, eax
jg 0x4ca27c
ffree st(0)
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa4
ret 0x2c