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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x480215
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov edi, dword [ebp + 0xc]
jmp 0x480223
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x480775
mov eax, dword [edi + 8]
test eax, eax
je 0x480775
test ebx, ebx
je 0x48023a
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
jmp 0x480245
test edi, edi
je 0x480775
mov eax, dword [edi + 0xc]
test eax, eax
je 0x480775
test ebx, ebx
je 0x48025c
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
jmp 0x480267
test edi, edi
je 0x480265
mov eax, dword [edi + 8]
jmp 0x480267
xor eax, eax
mov esi, dword [ebp + 0x10]
fldz
cmp eax, dword [esi + 8]
jne 0x48038b
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x480298
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
fldz
mov ecx, dword [esp + 0x14]
jmp 0x4802a3
test edi, edi
je 0x4802a1
mov eax, dword [edi + 8]
jmp 0x4802a3
xor eax, eax
cmp ecx, eax
jne 0x48038b
test ebx, ebx
je 0x4802be
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
fldz
jmp 0x4802c9
test edi, edi
je 0x4802c7
mov eax, dword [edi + 0xc]
jmp 0x4802c9
xor eax, eax
cmp eax, dword [esi + 0xc]
jne 0x48038b
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x4802f6
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
fldz
mov ecx, dword [esp + 0x14]
jmp 0x480301
test edi, edi
je 0x4802ff
mov eax, dword [edi + 0xc]
jmp 0x480301
xor eax, eax
cmp ecx, eax
jne 0x48038b
fcom dword [ebp + 0x18]
fnstsw ax
test ah, 0x44
jp 0x48038b
fcom dword [ebp + 0x1c]
fnstsw ax
test ah, 0x44
jp 0x48038b
fcom dword [ebp + 0x20]
fnstsw ax
test ah, 0x44
jp 0x48038b
fcom dword [ebp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x48038b
fld1
mov ecx, dword [esp + 0xc]
fld st(0)
fcomp dword [ecx + 0x24]
fnstsw ax
test ah, 0x44
jp 0x480389
fcomp dword [ecx + 0x28]
fnstsw ax
test ah, 0x44
jp 0x48038b
or ecx, 0xffffffff
fstp st(0)
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
or edx, ecx
or ebx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
or ecx, ecx
mov dword [eax + 0xc], ecx
push esi
lea eax, [ebp + 8]
push eax
call fcn.0047cb90
test edi, edi
je 0x48037e
mov cx, word [esi + 0x16]
mov word [edi + 0x16], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
fstp st(0)
mov edx, dword [esp + 0xc]
cmp byte [edx + 0x2c], 0
je 0x4804b3
test ebx, ebx
mov edx, dword [esi + 8]
mov dword [esp + 0x14], edx
je 0x4803b3
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
fldz
jmp 0x4803be
test edi, edi
je 0x4803bc
mov eax, dword [edi + 8]
jmp 0x4803be
xor eax, eax
add eax, eax
cmp dword [esp + 0x14], eax
jb 0x4804af
test ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
je 0x4803e4
mov edx, dword [ebx]
fstp st(0)
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
fldz
jmp 0x4803ef
test edi, edi
je 0x4803ed
mov eax, dword [edi + 0xc]
jmp 0x4803ef
xor eax, eax
lea ecx, [eax + eax]
cmp dword [esp + 0x14], ecx
jb 0x4804af
mov ecx, dword [esi + 8]
fstp st(0)
mov esi, dword [esi + 0xc]
shr ecx, 1
shr esi, 1
test ecx, ecx
jne 0x480411
mov ecx, 1
test esi, esi
jne 0x48041a
mov esi, 1
push 0
push esi
lea esi, [esp + 0x60]
call fcn.00479300
mov edx, dword [ebp + 0x10]
push edx
mov eax, esi
push eax
call fcn.00480790
fld dword [ebp + 0x24]
fld qword [0x6c0b40]
mov ecx, dword [ebp + 0x14]
fmul st(1), st(0)
mov eax, dword [ebp + 0xc]
fxch st(1)
sub esp, 8
mov edx, esi
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 0xc]
fmul dword [ebp + 0x20]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [ebp + 0x1c]
fld qword [0x69f210]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fmul dword [ebp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ebx
call fcn.004801f0
mov esi, eax
lea eax, [esp + 0x58]
call fcn.00479430
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x20]
cmp eax, 9
je 0x4805ba
cmp eax, 0xa
je 0x4805ba
mov cl, byte [edx + 0x2c]
fstp st(0)
fld dword [ebp + 0x24]
push edi
push ebx
mov ebx, dword [ebp + 0x14]
sub esp, 0x10
fstp dword [esp + 0xc]
xor eax, eax
fld dword [ebp + 0x20]
mov byte [edx + 0x2c], 0
fstp dword [esp + 8]
mov dword [esp + 0x38], eax
fld dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
fstp dword [esp + 4]
fld dword [ebp + 0x18]
mov dword [esp + 0x40], eax
mov byte [esp + 0x34], cl
fstp dword [esp]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x38]
push eax
mov edi, edx
mov dword [esp + 0x48], ecx
call fcn.0047eaf0
xor ecx, ecx
cmp eax, ecx
je 0x480536
mov cl, byte [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov byte [edx + 0x2c], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov eax, edi
call fcn.0047eab0
mov ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x10]
ja 0x480584
jmp 0x480560
cmp dword [edi + 0x1c], 0
jne 0x4805a5
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
imul eax, ebx
push 0
lea edx, [ecx + eax*4]
push edx
push edi
call fcn.0047fea0
add ebx, 1
cmp ebx, dword [esp + 0x10]
jbe 0x480560
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x480593
mov cx, word [esi + 0x16]
mov word [eax + 0x16], cx
mov dl, byte [esp + 0x1c]
mov byte [edi + 0x2c], dl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov al, byte [esp + 0x1c]
mov byte [edi + 0x2c], al
mov eax, 0xf4242
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
fld1
mov byte [esp + 0x54], 1
fst dword [esp + 0x30]
fst dword [esp + 0x40]
fstp dword [esp + 0x50]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x44]
fst dword [esp + 0x48]
fst dword [esp + 0x4c]
fcom dword [ebp + 0x20]
fnstsw ax
test ah, 0x44
jp 0x480638
test ebx, ebx
je 0x480602
mov eax, dword [ebx]
fstp st(0)
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
fldz
jmp 0x48060d
test edi, edi
je 0x48060b
mov eax, dword [edi + 8]
jmp 0x48060d
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x48061f
fadd dword [0x6c0a38]
mov eax, dword [esi + 8]
fild dword [esi + 8]
test eax, eax
jge 0x48062f
fadd dword [0x6c0a38]
fdivp st(1)
mov edx, dword [esp + 0xc]
fstp dword [ebp + 0x20]
fcom dword [ebp + 0x24]
fnstsw ax
test ah, 0x44
jp 0x48068b
test ebx, ebx
je 0x480655
mov edx, dword [ebx]
fstp st(0)
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
fldz
jmp 0x480660
test edi, edi
je 0x48065e
mov eax, dword [edi + 0xc]
jmp 0x480660
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x480672
fadd dword [0x6c0a38]
mov ecx, dword [esi + 0xc]
fild dword [esi + 0xc]
test ecx, ecx
jge 0x480682
fadd dword [0x6c0a38]
fdivp st(1)
mov edx, dword [esp + 0xc]
fstp dword [ebp + 0x24]
fld1
lea ecx, [esp + 0x58]
fst dword [esp + 0x58]
lea eax, [esp + 0x30]
fxch st(1)
mov byte [esp + 0x7c], 0
fst dword [esp + 0x5c]
fld dword [ebp + 0x18]
fchs
fstp dword [esp + 0x60]
fst dword [esp + 0x64]
fxch st(1)
fst dword [esp + 0x68]
fld dword [ebp + 0x1c]
fchs
fstp dword [esp + 0x6c]
fxch st(1)
fst dword [esp + 0x70]
fstp dword [esp + 0x74]
fstp dword [esp + 0x78]
call fcn.004baf00
fld dword [ebp + 0x20]
lea ecx, [esp + 0x58]
fld1
mov byte [esp + 0x7c], 0
fld st(0)
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fldz
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fld dword [ebp + 0x24]
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x68]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fstp dword [esp + 0x74]
fld1
fstp dword [esp + 0x78]
call fcn.004baf00
test edi, edi
je 0x480775
cmp dword [edx + 0x20], 0xa
jne 0x480746
mov edx, dword [ebp + 0x14]
push 0
push edi
mov ecx, esi
call fcn.004c6c90
mov cx, word [esi + 0x16]
add esp, 8
mov word [edi + 0x16], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x100
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push esi
push edi
mov edi, dword [ebp + 0x14]
call fcn.004c6cc0
mov edi, dword [ebp + 0xc]
mov cx, word [esi + 0x16]
add esp, 0x18
mov word [edi + 0x16], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x20