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

Disassembly:
mov eax, dword [0x160d7a4]
sub esp, 0x58
xor edx, edx
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x68]
cmp eax, ebp
push edi
mov dword [0xc0f61c], edx
jle 0x4d2621
mov ecx, dword [0x160d7a8]
mov edi, eax
add ecx, 0x24
fld dword [esi + 0x74]
fsub dword [ecx - 4]
fcom dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4d2611
fld dword [0x54ed2c]
fsub dword [ecx - 0xc]
fstp dword [esp + 0x6c]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4d2613
fld dword [esi + 0x78]
fsub dword [ecx]
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4d2611
fcomp dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4d2613
fld dword [ecx - 0xc]
fcomp dword [0x54ed44]
fnstsw ax
and eax, 0x4100
jne 0x4d25a4
fld dword [0x54e4d0]
fld dword [ecx - 4]
fsub dword [esi + 0x74]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4d2523
fld dword [esp + 0x6c]
fsub dword [0x54ed28]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4d252d
fstp st(0)
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
fld dword [ecx]
fsub dword [esi + 0x78]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4d2556
fsub dword [0x54ed28]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4d255c
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx + 4]
fsub dword [esi + 0x7c]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4d2586
fsub dword [esi + 0x80]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4d258c
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx - 0xc]
fld st(0)
fmul st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
and eax, 0x4100
fstp st(0)
je 0x4d2613
mov ebx, dword [ecx - 0x24]
lea eax, [ecx - 0x24]
lea edx, [edx + edx*4]
fld dword [0x54e504]
mov dword [edx*4 + 0xc0f3a4], ebx
mov edx, dword [0xc0f61c]
mov ebx, dword [ecx - 0x20]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xc0f3a8], ebx
mov edx, dword [0xc0f61c]
mov ebx, dword [ecx - 0x1c]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xc0f3ac], ebx
mov edx, dword [0xc0f61c]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xc0f39c], eax
mov eax, dword [0xc0f61c]
fdiv dword [ecx - 0xc]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xc0f3a0]
mov edx, dword [0xc0f61c]
inc edx
mov dword [0xc0f61c], edx
jmp 0x4d2613
fstp st(0)
add ecx, 0x2c
dec edi
jne 0x4d248d
cmp edx, ebp
jne 0x4d2635
mov ecx, dword [0x160cd54]
pop edi
xor eax, eax
mov dword [esi + ecx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
push edx
push ecx
push eax
push eax
call fcn.004d1550
add esp, 0x10
test eax, eax
jne 0x4d2662
mov edx, dword [0x160cd54]
pop edi
mov dword [esi + edx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
fild dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
shl eax, 7
fmul qword [0x54fec8]
mov edi, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x6c], ebp
lea ebx, [eax*4 + 0xbff394]
fstp dword [esi + 0x30]
fild dword [esp + 0x2c]
fmul qword [0x54fec8]
fstp dword [esi + 0x34]
mov eax, dword [0x160d86c]
mov edx, dword [0x160d878]
inc eax
mov dword [0x160d86c], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
imul ecx, eax
fld dword [0x54fed0]
add edx, ecx
mov dword [0x160d878], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
fdiv dword [esp + 0x10]
call fcn.00532e5c
cmp eax, 1
mov dword [esp + 0x4c], eax
jne 0x4d2765
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], 9
mov dword [esp + 0x60], eax
mov ecx, dword [esi + 0x74]
mov ebp, 9
mov dword [esp + 0x5c], ecx
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [esi + 0x28c]
push ebx
add edx, edx
push eax
mov dword [esp + 0x44], edx
push edi
fild dword [esp + 0x48]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
add edi, 3
add ebx, 4
dec ebp
fstp dword [esp + 0x5c]
mov dword [esp + 0x6c], ecx
jne 0x4d26f6
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edi, 0x165
add ebx, 0x1dc
dec eax
mov dword [esp + 0x24], eax
fstp dword [esp + 0x60]
jne 0x4d26ea
jmp 0x4d2c5c
cmp eax, 2
jne 0x4d2a8e
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x30], 8
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x24], 8
mov dword [esp + 0x5c], edx
xor eax, eax
lea ecx, [esp + 0x5c]
mov al, byte [esi + ebp + 0x28c]
push ebx
mov dword [esp + 0x40], eax
push ecx
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x20]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor edx, edx
lea eax, [esp + 0x68]
push ebx
mov dl, byte [esi + ebp + 0x28c]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x50], edx
push edi
fild dword [esp + 0x54]
mov dword [esp + 0x84], ecx
fst dword [esp + 0x30]
fadd dword [esp + 0x2c]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004d16a0
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4d278c
fld dword [esp + 0x18]
fadd st(0), st(0)
lea ecx, [esp + 0x5c]
push ebx
push ecx
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
fld dword [esp + 0x6c]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + 0x74]
or ecx, eax
add esp, 0xc
add edi, 0x150
add ebx, 0x1c0
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
sub ebp, 8
mov dword [esp + 0x5c], edx
mov dword [esp + 0x24], 8
xor eax, eax
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x5c]
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x20]
fild dword [esp + 0x48]
fst dword [esp + 0x28]
fadd dword [esp + 0x20]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor eax, eax
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
fstp dword [esp + 0x68]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x68]
fild dword [esp + 0x48]
mov dword [esp + 0x48], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x30]
fild dword [esp + 0x54]
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esp + 0x30]
fadd dword [esp + 0x2c]
fmul dword [0x54e50c]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004d16a0
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4d2883
fld dword [esp + 0x20]
fadd dword [esp + 0x18]
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
add esp, 0xc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 0x150
add ebx, 0x1c0
inc ebp
dec eax
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], eax
jne 0x4d277d
mov ecx, dword [esi + 0x74]
lea ebp, [esi + ebp + 0x28c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], 8
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [ebp]
push ebx
mov dword [esp + 0x40], edx
push eax
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x28]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
mov dword [esp + 0x78], ecx
inc ebp
xor ecx, ecx
lea edx, [esp + 0x68]
mov cl, byte [ebp]
push ebx
fstp dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
push edx
fild dword [esp + 0x50]
push edi
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004d16a0
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x30], eax
jne 0x4d29c7
fld dword [esp + 0x20]
fadd st(0), st(0)
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x4d2c5c
mov ecx, eax
mov edx, dword [esi + 0x78]
imul ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x3c], edx
fdivr dword [0x54e61c]
fstp dword [esp + 0x44]
jmp 0x4d2aba
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x24]
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x4d2c43
lea ecx, [eax + eax*2]
mov dword [esp + 0x14], eax
shl ecx, 3
mov dword [esp + 0x50], ecx
mov ecx, eax
shl ecx, 5
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x74]
xor ebp, ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], ebp
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
mov dword [esp + 0x20], 0
test ecx, ecx
mov dword [esp + 0x48], ecx
jle 0x4d2bf1
fild dword [esp + 0x14]
add edx, ebp
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
lea ebp, [edx + esi]
fstp dword [esp + 0x30]
xor edx, edx
xor eax, eax
mov dl, byte [ebp + 0x28d]
mov al, byte [ebp + 0x296]
mov dword [esp + 0x40], edx
xor ecx, ecx
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov cl, byte [ebp + 0x295]
xor edx, edx
lea eax, [esp + 0x5c]
fmul dword [esp + 0x34]
fild dword [esp + 0x40]
mov dl, byte [ebp + 0x28c]
mov dword [esp + 0x40], ecx
push ebx
push eax
fmul dword [esp + 0x38]
push edi
faddp st(1)
fimul dword [esp + 0x2c]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
fmul dword [esp + 0x3c]
fild dword [esp + 0x4c]
fmul dword [esp + 0x40]
faddp st(1)
fimul dword [esp + 0x28]
faddp st(1)
fmul dword [esp + 0x50]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004d16a0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x48]
add edi, 3
fstp dword [esp + 0x5c]
add ebx, 4
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x4d2b33
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
inc ebp
cmp ebp, 8
mov dword [esp + 0x38], ebp
jl 0x4d2afc
mov ebp, dword [esp + 0x50]
mov ecx, 0x17d
sub ecx, ebp
mov ebp, dword [esp + 0x54]
add edi, ecx
mov ecx, 0x1fc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
sub ecx, ebp
mov ebp, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x18]
inc ecx
dec ebp
fstp dword [esp + 0x60]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x58]
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jl 0x4d2aef
mov ecx, dword [esp + 0x24]
add edx, 9
inc ecx
cmp edx, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
jl 0x4d2ab8
mov eax, dword [esp + 0x6c]
xor ecx, ecx
cmp eax, ecx
jne 0x4d2c7a
mov edx, dword [0x160cd54]
pop edi
xor eax, eax
mov dword [esi + edx*4 + 0x24], ecx
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
cmp eax, ecx
jle 0x4d2ca0
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 0xbff194]
mov edi, dword [esp + 0x2c]
add edx, 4
add eax, edi
inc ecx
mov dword [edx - 4], eax
mov eax, dword [esi + 0x14]
cmp ecx, eax
jl 0x4d2c8c
fld dword [esi + 0x20]
fdivr qword [0x54fec8]
pop edi
fld st(0)
fmul dword [esi + 0x74]
fsub dword [0x54f188]
fsubr dword [esi + 0x30]
fstp dword [esi + 0x30]
fmul dword [esi + 0x78]
fsub dword [0x54f188]
fsubr dword [esi + 0x34]
fstp dword [esi + 0x34]
mov eax, dword [0xbff190]
mov ecx, dword [0x160cd54]
inc eax
mov dword [esi + ecx*4 + 0x24], eax
mov edx, dword [0x160cd54]
mov eax, dword [esi + edx*4 + 0x24]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret