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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x4d20c7
cmp dword [esi + 0x4c], edi
je 0x4d20c7
mov eax, dword [0x160d7a4]
xor ebp, ebp
xor ecx, ecx
cmp eax, edi
mov dword [0xc0f61c], ebp
jle 0x4d1bfc
mov eax, dword [0x160d7a8]
lea edx, [eax + 0x18]
mov eax, dword [esp + 0xa8]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x4d1be7
fld dword [edx - 0x18]
fsub dword [edx]
lea edi, [edx - 0x18]
fcomp dword [esi + 0x20]
fnstsw ax
and eax, 0x4100
je 0x4d1bd3
fld dword [edx]
fadd dword [edi]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 5
jnp 0x4d1bd3
fld dword [edx - 0x14]
fsub dword [edx]
fcomp dword [esi + 0x24]
fnstsw ax
and eax, 0x4100
je 0x4d1bd3
fld dword [edx]
fadd dword [edx - 0x14]
fcomp dword [esi + 0x18]
fnstsw ax
test ah, 5
jnp 0x4d1bd3
fld dword [edx - 0x10]
fsub dword [edx]
fcomp dword [esi + 0x28]
fnstsw ax
and eax, 0x4100
je 0x4d1bd3
fld dword [edx]
fadd dword [edx - 0x10]
fcomp dword [esi + 0x1c]
fnstsw ax
test ah, 5
jnp 0x4d1bd3
mov ebx, dword [edx + 8]
lea eax, [ebp + ebp*4]
fld dword [0x54e504]
mov dword [eax*4 + 0xc0f3a4], ebx
mov eax, dword [0xc0f61c]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xc0f3a8], ebx
mov eax, dword [0xc0f61c]
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xc0f3ac], ebx
mov eax, dword [0xc0f61c]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xc0f39c], edi
mov eax, dword [0xc0f61c]
fdiv dword [edx]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xc0f3a0]
mov ebp, dword [0xc0f61c]
inc ebp
mov dword [0xc0f61c], ebp
jmp 0x4d1be5
mov eax, dword [esp + 0xa8]
not ebx
and eax, ebx
mov dword [esp + 0xa8], eax
xor edi, edi
mov eax, dword [0x160d7a4]
inc ecx
add edx, 0x2c
cmp ecx, eax
jl 0x4d1ae4
cmp ebp, edi
jne 0x4d1c13
mov ecx, dword [0x160cd54]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esi + 0x4c]
push eax
push ecx
push edx
call fcn.004d1550
add esp, 0x10
test eax, eax
je 0x4d20c7
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x38], edi
shl edx, 7
fmul qword [0x54fec8]
add edx, ebx
mov dword [0xc0f394], ecx
lea eax, [edx*4 + 0xbff394]
mov dword [0xc0f398], eax
fild dword [esi + 0x44]
fmul qword [0x54fec8]
fsubp st(1)
fstp dword [esi + 0x3c]
fild dword [esp + 0x28]
fmul qword [0x54fec8]
fild dword [esi + 0x48]
fmul qword [0x54fec8]
fsubp st(1)
fstp dword [esi + 0x40]
mov ecx, dword [0x160d86c]
mov eax, dword [0x160d878]
inc ecx
mov dword [0x160d86c], ecx
mov ecx, dword [esi + 0x50]
imul ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [0x160d878], eax
mov ebx, dword [esi + 0x70]
fld dword [esi + 0x94]
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
fcomp dword [esi + eax*4 + 0x68]
lea ecx, [esi + eax*4]
fld dword [esi + 0x94]
fnstsw ax
test ah, 0x44
jp 0x4d1d26
mov edx, dword [esi + 0x74]
mov dword [esp + 0x18], edi
lea eax, [edx - 1]
imul eax, ebx
lea ebp, [eax + eax*4]
lea eax, [eax + ebp*2]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
fcomp dword [esi + eax*4 + 0x94]
fnstsw ax
and eax, 0x4100
je 0x4d1d00
mov dword [esp + 0x14], 1
fld dword [esi + 0x98]
fcomp dword [ecx + 0x6c]
mov dword [esp + 0x1c], edi
fnstsw ax
and eax, 0x4100
jne 0x4d1d1c
mov dword [esp + 0x20], ebp
jmp 0x4d1d7a
mov dword [esp + 0x20], 1
jmp 0x4d1d7a
fcomp dword [ecx + 0x68]
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
fnstsw ax
and eax, 0x4100
je 0x4d1d45
mov dword [esp + 0x18], 1
mov edx, dword [esi + 0x74]
mov dword [esp + 0x20], edi
fld dword [esi + 0x98]
lea eax, [edx - 1]
mov dword [esp + 0x1c], ebp
imul eax, ebx
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
fcomp dword [esi + eax*4 + 0x98]
fnstsw ax
and eax, 0x4100
je 0x4d1d7a
mov dword [esp + 0x1c], 1
xor ecx, ecx
cmp edx, edi
mov dword [esp + 0x34], ecx
jle 0x4d2060
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
sub edx, ebp
mov dword [esp + 0x40], edx
jmp 0x4d1d9c
mov ebp, dword [esp + 0x1c]
cmp ebx, edi
mov dword [esp + 0x30], edi
jle 0x4d204a
lea eax, [ecx + ebp]
mov dword [esp + 0x44], eax
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
sub eax, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ebp, dword [esi + 0x44]
imul eax, ecx
add eax, dword [esp + 0x30]
neg ebp
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x50], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x54fec0]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x54], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x58], edx
call fcn.00532e5c
fld dword [edi + 0x18]
fmul dword [0x54fec0]
mov ecx, ebp
sub ecx, eax
mov eax, dword [esi + 0x48]
neg eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x24], eax
call fcn.00532e5c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x60], edx
jge 0x4d1e52
xor ecx, ecx
jmp 0x4d1e5c
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4d1e5c
lea ecx, [eax - 1]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add edx, eax
test edx, edx
jge 0x4d1e6e
xor edx, edx
jmp 0x4d1e75
cmp edx, ebx
jl 0x4d1e75
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x64], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x54fec0]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x68], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x6c], edx
call fcn.00532e5c
fld dword [edi + 0x18]
fmul dword [0x54fec0]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x70], ecx
call fcn.00532e5c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x74], edx
jge 0x4d1ee4
xor ecx, ecx
jmp 0x4d1eee
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4d1eee
lea ecx, [eax - 1]
mov edx, dword [esp + 0x10]
test edx, edx
jge 0x4d1efa
xor edx, edx
jmp 0x4d1f01
cmp edx, ebx
jl 0x4d1f01
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x78], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x54fec0]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x7c], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x80], edx
call fcn.00532e5c
fld dword [edi + 0x18]
fmul dword [0x54fec0]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x84], ecx
call fcn.00532e5c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x88], edx
jge 0x4d1f79
xor ecx, ecx
jmp 0x4d1f83
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4d1f83
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
test edx, edx
jge 0x4d1f95
xor edx, edx
jmp 0x4d1f9c
cmp edx, ebx
jl 0x4d1f9c
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x8c], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x54fec0]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x90], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x94], edx
call fcn.00532e5c
fld dword [edi + 0x18]
fmul dword [0x54fec0]
sub ebp, eax
mov dword [esp + 0x98], ebp
call fcn.00532e5c
mov ecx, dword [esp + 0x24]
sub ecx, eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xa0], ecx
call fcn.004d1830
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
or ebx, eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x38], ebx
mov ebx, dword [esi + 0x70]
inc eax
inc edx
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x4d1dd3
mov edx, dword [esp + 0x40]
xor edi, edi
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x4d1d98
cmp dword [esp + 0x38], edi
jne 0x4d2077
mov ecx, dword [0x160cd54]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x4c]
xor eax, eax
cmp ecx, edi
jle 0x4d20a2
mov edx, dword [esp + 0x2c]
lea ecx, [edx*4 + 0xbff194]
mov edx, dword [esp + 0x28]
mov edi, dword [esi + 0x50]
add ecx, 4
add edi, edx
inc eax
mov dword [ecx - 4], edi
mov edi, dword [esi + 0x4c]
cmp eax, edi
jl 0x4d208f
mov eax, dword [0xbff190]
mov ecx, dword [0x160cd54]
inc eax
pop edi
mov dword [esi + ecx*4 + 0xc], eax
mov edx, dword [0x160cd54]
mov eax, dword [esi + edx*4 + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [0x160cd54]
mov dword [esi + eax*4 + 0xc], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret