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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x3c]
sub eax, ebp
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
push esi
cdq
sub eax, edx
push edi
mov esi, eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x14], eax
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x40]
sar esi, 1
sar edi, 1
add esi, ebp
add edi, ebx
cmp eax, 0x100
jne 0x4a4a2e
mov dword [esp + 0x10], 0xff
cmp ecx, 0x100
jne 0x4a4a3b
mov ecx, 0xff
mov eax, ebx
shl eax, 8
shl ecx, 8
lea ebx, [eax + ebp]
lea edx, [ecx + ebp]
lea ebx, [ebx + ebx*4]
shl ebx, 2
lea edx, [edx + edx*4]
fld dword [ebx + 0x106bca0]
fld dword [edx*4 + 0x106bca0]
mov edx, dword [esp + 0x10]
add ecx, edx
lea ecx, [ecx + ecx*4]
fld dword [ecx*4 + 0x106bca0]
lea ecx, [eax + edx]
fstp dword [esp + 0x38]
lea edx, [ecx + ecx*4]
mov ecx, edi
shl ecx, 8
fld dword [edx*4 + 0x106bca0]
lea edx, [ecx + esi]
fstp dword [esp + 0x10]
fld dword [esp + 0x38]
fsub st(2)
lea edx, [edx + edx*4]
fmul dword [0x51d830]
fadd st(2)
fsubr dword [edx*4 + 0x106bca0]
fabs
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fsub st(1)
fmul dword [0x51d830]
fadd st(1)
fsubr dword [edx*4 + 0x106bca0]
lea edx, [ecx + ebp]
fabs
fstp dword [esp + 0x20]
lea edx, [edx + edx*4]
fld st(0)
fsub st(2)
fmul dword [0x51d830]
fadd st(2)
fsubr dword [edx*4 + 0x106bca0]
mov edx, dword [esp + 0x44]
shl edx, 8
fabs
fstp dword [esp + 0x24]
fld dword [esp + 0x38]
fsub st(1)
add edx, esi
fmul dword [0x51d830]
lea edx, [edx + edx*4]
fadd st(1)
fsubr dword [edx*4 + 0x106bca0]
mov edx, dword [esp + 0x40]
add ecx, edx
fabs
fstp dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
fstp st(0)
fld dword [esp + 0x10]
fsub dword [esp + 0x38]
fmul dword [0x51d830]
fadd dword [esp + 0x38]
fsubr dword [ecx*4 + 0x106bca0]
fabs
fstp dword [esp + 0x2c]
fld dword [esp + 0x10]
fsub st(1)
add eax, esi
push 6
fmul dword [0x51d830]
lea edx, [eax + eax*4]
lea eax, [esp + 0x20]
push eax
fadd st(1)
fsubr dword [edx*4 + 0x106bca0]
fabs
fstp dword [esp + 0x38]
fstp st(0)
call fcn.004a49a0
fld dword [esp + eax*4 + 0x24]
mov eax, dword [esp + 0x50]
add esp, 8
fst dword [esp + 0x38]
cmp eax, 2
je 0x4a4c68
mov ecx, dword [esp + 0x44]
lea ebx, [eax + 1]
push ebx
push ecx
push esi
push edi
fstp st(0)
push ebp
call fcn.004a49e0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
fstp dword [esp + 0x30]
push ebx
push edx
push eax
push edi
push esi
call fcn.004a49e0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x48]
push ebx
push edi
push ecx
push edx
push esi
call fcn.004a49e0
mov eax, dword [esp + 0x78]
push ebx
fstp dword [esp + 0x64]
push edi
push esi
push eax
push ebp
call fcn.004a49e0
fstp dword [esp + 0x78]
fld dword [esp + 0x6c]
fcomp dword [0x51d850]
add esp, 0x50
fnstsw ax
test ah, 0x40
je 0x4a4c25
fld dword [esp + 0x20]
fcomp dword [0x51d850]
fnstsw ax
test ah, 0x40
je 0x4a4c25
fld dword [esp + 0x24]
fcomp dword [0x51d850]
fnstsw ax
test ah, 0x40
je 0x4a4c25
fld dword [esp + 0x28]
fcomp dword [0x51d850]
fnstsw ax
test ah, 0x40
je 0x4a4c25
fld dword [0x51d850]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x1c]
mov ecx, 4
cmp dword [eax], 0x495bba00
jne 0x4a4c3c
mov dword [eax], 0x49435000
add eax, 4
dec ecx
jne 0x4a4c2e
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.004a49a0
fld dword [esp + eax*4 + 0x24]
fcom dword [esp + 0x40]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4a4cc1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
xor esi, esi
xor edi, edi
cmp eax, edx
jge 0x4a4cb1
lea edx, [ebx + 0x106bcb0]
mov ebx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x40]
jge 0x4a4ca4
mov ecx, dword [esp + 0x18]
mov eax, edx
add esi, ecx
test byte [eax], 0x10
je 0x4a4c9e
fstp st(0)
fld dword [0x526b68]
inc edi
add eax, 0x14
dec ecx
jne 0x4a4c90
add edx, 0x1400
dec ebx
jne 0x4a4c82
cmp edi, esi
jne 0x4a4cc7
pop edi
pop esi
fstp st(0)
fld dword [0x51d850]
pop ebp
pop ebx
add esp, 0x24
ret
fstp st(0)
fld dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret