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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, dword [esi + 8]
cmp ebx, edi
jg 0x424955
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
lea ecx, [eax + eax]
cmp ecx, ebx
je 0x424971
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jg 0x4249a3
mov eax, 1
cmp ebx, eax
jle 0x424997
mov edx, dword [esi + 4]
add eax, 2
mov dword [edx + eax*8 - 0x10], edi
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8 - 0xc], edi
mov ecx, dword [esi + 8]
cmp eax, ecx
jl 0x42497f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebx - 6]
add ebx, 0xfffffffe
cmp edx, ebx
jge 0x424a58
mov eax, dword [esi + 4]
lea ecx, [eax + edx*8]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x14]
fild dword [esp + 0x88]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 4]
fisub dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x84], eax
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
fst qword [esp + edi*8 + 0xc]
fild dword [esp + 0x84]
fisub dword [esp + 0x28]
fst qword [esp + edi*8 + 0x3c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fst qword [esp + edi*8 + 0x2c]
fcomp qword [0x4f5b58]
fnstsw ax
test ah, 1
jne 0x424add
add edx, 2
inc edi
add ecx, 0x10
cmp edx, ebx
jl 0x4249b7
mov eax, dword [esp + 0x7c]
cmp eax, 3
jne 0x424c7b
fld qword [esp + 0x3c]
fcomp qword [0x4f5790]
mov edi, 1
fnstsw ax
test ah, 0x40
je 0x424ae9
fld qword [esp + 0x44]
fcomp qword [0x4f5790]
fnstsw ax
test ah, 0x40
je 0x424ae9
fld qword [esp + 0xc]
fabs
fdivr qword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
fstp qword [esp + 0x64]
fld qword [esp + 0x14]
fabs
fdivr qword [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
fst qword [esp + 0x6c]
fstp qword [esp + 0x74]
jmp 0x424dbe
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0xc]
fcomp qword [0x4f5790]
fnstsw ax
test ah, 0x40
je 0x424b60
fld qword [esp + 0x14]
fcomp qword [0x4f5790]
fnstsw ax
test ah, 0x40
je 0x424b60
fld qword [esp + 0x3c]
fabs
fdivr qword [esp + 0x3c]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
fstp qword [esp + 0xc]
fld qword [esp + 0x44]
fabs
fdivr qword [esp + 0x44]
fst qword [esp + 0x14]
fstp qword [esp + 0x1c]
jmp 0x424dbe
fld qword [esp + 0x2c]
fld st(0)
fadd st(0), st(0)
lea ecx, [esp + 0x64]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xbc]
push edx
push eax
fstp qword [esp + 0xcc]
push 3
fst qword [esp + 0xd8]
fld qword [esp + 0x44]
fst qword [esp + 0xe0]
fld st(0)
fadd st(2)
fadd st(0), st(0)
fstp qword [esp + 0xe8]
fld st(1)
fstp qword [esp + 0xf0]
fst qword [esp + 0xf8]
fld st(0)
fadd st(0), st(0)
fstp qword [esp + 0x100]
fld qword [esp + 0x1c]
fmul qword [0x4f5b50]
fstp qword [esp + 0x5c]
fld st(1)
fmul qword [esp + 0x24]
fdiv st(1)
fxch st(1)
fmul qword [esp + 0x1c]
fdiv st(2)
faddp st(1)
fmul qword [0x4f5b50]
fstp qword [esp + 0x64]
fstp st(0)
fld qword [esp + 0x24]
fmul qword [0x4f5b50]
fstp qword [esp + 0x6c]
call fcn.00424e30
add esp, 0x10
test eax, eax
je 0x424c0d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x3c]
fmul qword [0x4f5b50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0xbc]
push edx
push eax
fstp qword [esp + 0x58]
fld qword [esp + 0x38]
fmul qword [esp + 0x50]
push 3
fdiv qword [esp + 0x44]
fld qword [esp + 0x44]
fmul qword [esp + 0x4c]
fdiv qword [esp + 0x3c]
faddp st(1)
fmul qword [0x4f5b50]
fstp qword [esp + 0x64]
fld qword [esp + 0x54]
fmul qword [0x4f5b50]
fstp qword [esp + 0x6c]
call fcn.00424e30
add esp, 0x10
test eax, eax
je 0x424dbe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x424dbe
fld qword [esp + 0x34]
fld st(0)
fadd qword [esp + 0x2c]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
add edi, 0xfffffffb
push 0x3ee4f8b5
fadd st(0), st(0)
push 0x88e368f1
fstp qword [esp + 0xa0]
fst qword [esp + 0xa8]
fst qword [esp + 0xb0]
fld st(0)
fadd st(0), st(0)
fstp qword [esp + 0xb8]
fld qword [esp + 0x34]
fmul qword [esp + 0x1c]
mov edx, dword [ecx + edi*8]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x54]
fdiv st(1)
mov eax, dword [ecx + edi*8 + 4]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], eax
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
fld st(1)
fmul qword [esp + 0x20]
fdiv qword [esp + 0x40]
faddp st(1)
fmul qword [0x4f5b50]
fild dword [esp + 0x38]
fmul st(2)
fmul qword [0x4f5b48]
fsubp st(1)
fstp qword [esp + 0x60]
fstp st(0)
fld qword [esp + 0x28]
fmul qword [0x4f5b50]
fstp qword [esp + 0x68]
call fcn.00424f30
add esp, 0x14
test eax, eax
je 0x424d35
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x2c]
fmul qword [esp + 0x44]
mov ecx, dword [esi + 4]
push 0x3ee4f8b5
push 0x88e368f1
fdiv qword [esp + 0x3c]
mov edx, dword [ecx + edi*8]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x54]
mov eax, dword [ecx + edi*8 + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
fld qword [esp + 0x48]
fmul qword [esp + 0x50]
fdiv qword [esp + 0x40]
faddp st(1)
fmul qword [0x4f5b50]
fild dword [esp + 0x3c]
fmul qword [esp + 0x48]
fmul qword [0x4f5b48]
fsubp st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0x58]
fmul qword [0x4f5b50]
fstp qword [esp + 0x68]
call fcn.00424f30
add esp, 0x14
test eax, eax
je 0x424dbb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 2
cmp edi, dword [esi + 8]
jge 0x424e27
xor ebx, ebx
fld qword [esp + ebx + 0xc]
fld qword [esp + ebx + 0x64]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x4c]
fstp st(0)
fstp st(0)
fld qword [esp + ebx + 0x64]
fmul qword [0x4f5b40]
fdiv qword [esp + 0x4c]
call sub.MSVCRT.dll__ftol
mov edx, dword [esi + 4]
movsx ecx, ax
mov dword [edx + edi*8], ecx
fld qword [esp + ebx + 0xc]
fmul qword [0x4f5b40]
fdiv qword [esp + 0x4c]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 4]
add edi, 2
movsx eax, ax
mov dword [ecx + edi*8 - 0xc], eax
mov eax, dword [esi + 8]
add ebx, 8
cmp edi, eax
jl 0x424dc5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret