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

Disassembly:
push 0xffffffffffffffff
push 0x4a6a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0xb4]
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xac], ebx
call fcn.0040f9a0
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], ebx
call fcn.00439d80
push 0x64
push ebx
lea ecx, [esp + 0x98]
mov byte [esp + 0xb0], 1
call fcn.00439d40
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xa8], 2
cmp dword [ecx], ebx
je 0x487376
cmp byte [0x4dcb30], bl
je 0x487376
fld dword [esp + 0xb8]
fmul dword [esp + 0xb8]
mov edx, dword [esp + 0x48]
fadd dword [0x4a8248]
lea eax, [edx + 0x5c]
mov dword [esp + 0x14], eax
fdivr dword [esp + 0xb8]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
cmp eax, ebx
fstp dword [esp + 0x5c]
je 0x486ddb
mov eax, dword [eax + 4]
jmp 0x486ddd
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x486dea
mov ecx, dword [eax + 4]
jmp 0x486dec
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
movsx edx, word [eax + 0xc]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp qword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea ecx, [eax + 0x54]
call fcn.00437ae0
mov eax, dword [esp + 0x48]
xor ebp, ebp
fstp dword [esp + 0x64]
cmp eax, ebx
mov dword [esp + 0x30], 0x7fff
mov dword [esp + 0x34], 0xffff8001
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x68], ebp
je 0x486e52
mov dword [esp + 0x54], eax
jmp 0x486e57
mov byte [esp + 0x51], 1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x40]
cmp dword [ecx], ebx
je 0x486fa0
cmp eax, dword [esp + 0x54]
jne 0x486e77
cmp byte [esp + 0x58], bl
jne 0x486fa0
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 4]
cmp ecx, ebx
je 0x486e90
cmp byte [ecx + 0x1b], bl
jne 0x486e8c
inc dword [esp + 0x70]
jmp 0x486e90
inc dword [esp + 0x74]
lea ecx, [eax + 0x5c]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x486ea8
mov eax, dword [eax + 4]
jmp 0x486eaa
xor eax, eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x486eb9
mov eax, dword [esi + 4]
jmp 0x486ebb
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
je 0x486ed5
mov dword [esp + 0x28], esi
jmp 0x486eda
mov byte [esp + 0x25], 1
mov byte [esp + 0x2c], bl
cmp dword [ecx], ebx
je 0x486f8e
cmp esi, dword [esp + 0x28]
jne 0x486ef6
cmp byte [esp + 0x2c], bl
jne 0x486f8e
fld dword [esi + 0x14]
fcomp dword [0x4a8234]
inc ebp
fnstsw ax
test ah, 0x41
jne 0x486f1e
fld dword [esi + 0x14]
push 1
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x98]
call fcn.00439e30
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea ecx, [esi + 0x54]
call fcn.00437ae0
fsubr dword [esp + 0x64]
movsx eax, word [esi + 0xc]
fmul dword [esp + 0x5c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsub st(1)
call sub.MSVCRT.dll__ftol
movsx ecx, word [esi + 0xe]
mov dword [esp + 0x10], ecx
mov edi, eax
fild dword [esp + 0x10]
fsub st(1)
call sub.MSVCRT.dll__ftol
cmp di, word [esp + 0x30]
fstp st(0)
jge 0x486f6d
mov dword [esp + 0x30], edi
cmp ax, word [esp + 0x34]
jle 0x486f78
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
call fcn.00440e40
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x486ede
lea ecx, [esp + 0x40]
call fcn.004403e0
mov eax, dword [esp + 0x48]
jmp 0x486e5b
mov eax, dword [esp + 0x98]
mov dword [esp + 0x68], ebp
cmp eax, ebx
je 0x487376
movsx edx, word [esp + 0x34]
movsx eax, word [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x68], eax
call fcn.00439d90
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x486fdd
mov dword [esp + 0x54], eax
jmp 0x486fe2
mov byte [esp + 0x51], 1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x40]
cmp dword [ecx], ebx
je 0x487110
cmp eax, dword [esp + 0x54]
jne 0x487002
cmp byte [esp + 0x58], bl
jne 0x487110
lea ecx, [eax + 0x5c]
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
cmp eax, ebx
je 0x48701a
mov eax, dword [eax + 4]
jmp 0x48701c
xor eax, eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x48702b
mov eax, dword [esi + 4]
jmp 0x48702d
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
je 0x487047
mov dword [esp + 0x28], esi
jmp 0x48704c
mov byte [esp + 0x25], 1
mov byte [esp + 0x2c], bl
cmp dword [ecx], ebx
je 0x4870fe
cmp esi, dword [esp + 0x28]
jne 0x487068
cmp byte [esp + 0x2c], bl
jne 0x4870fe
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esi + 0x54]
call fcn.00437ae0
movsx edi, word [esi + 0xc]
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fld dword [esp + 0x64]
fsub st(2)
fmul dword [esp + 0x5c]
fsubp st(1)
call sub.MSVCRT.dll__ftol
movsx edx, word [esi + 0xe]
fstp st(0)
cmp edi, edx
mov ebp, eax
jge 0x4870e8
mov ecx, dword [esi + 0x60]
cmp edi, ecx
jle 0x4870c8
mov eax, dword [esi + 0x64]
cmp edi, eax
jge 0x4870bd
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx + eax*4]
jmp 0x4870cd
mov edx, dword [esi + 0x6c]
sub eax, ecx
mov eax, dword [edx + eax*4 - 4]
jmp 0x4870cd
mov eax, dword [esi + 0x6c]
mov eax, dword [eax]
movsx ecx, bp
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.00439e30
movsx edx, word [esi + 0xe]
inc edi
inc ebp
cmp edi, edx
jl 0x4870a3
lea ecx, [esp + 0x14]
call fcn.00440e40
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
jmp 0x487050
lea ecx, [esp + 0x40]
call fcn.004403e0
mov eax, dword [esp + 0x48]
jmp 0x486fe6
add eax, 0x5c
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x487128
mov eax, dword [eax + 4]
jmp 0x48712a
xor eax, eax
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x487139
mov eax, dword [esi + 4]
jmp 0x48713b
xor eax, eax
mov dword [esp + 0x20], eax
mov al, byte [0x4dcb50]
cmp al, bl
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
je 0x48718f
mov eax, dword [0x4dc33c]
cmp eax, ebx
je 0x48718f
mov edx, dword [esi + 0x94]
push 0x11
fild dword [esp + 0x64]
push 0xbf800000
mov ecx, edx
push 0x3f800000
push ecx
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x24], edx
fstp dword [esp]
push eax
call fcn.0043adc0
push 0x3f000000
lea ecx, [esp + 0x94]
call fcn.00439fc0
fst dword [esp + 0x6c]
call sub.MSVCRT.dll__ftol
movsx edi, ax
mov dword [esp + 0x10], edi
lea ebp, [esi + 0x50]
fild dword [esp + 0x10]
push ebx
lea edx, [esp + 0x82]
push ebp
lea eax, [esp + 0x80]
fmul qword [0x4a8218]
push edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x40]
push ecx
push ecx
lea ecx, [esp + 0x98]
fstp dword [esp]
push edx
push eax
push ecx
push esi
call fcn.004887f0
mov al, byte [0x4dcb70]
add esp, 0x28
cmp al, bl
je 0x487264
fild dword [esp + 0x68]
sub esp, 8
mov edx, dword [esp + 0x7c]
sub esp, 8
mov eax, dword [esp + 0x80]
fdivr st(1)
sub esp, 8
sub esp, 8
sub esp, 8
sub esp, 8
fild dword [esp + 0x40]
fld st(1)
fdiv st(1)
fstp qword [esp + 0x28]
fld st(2)
fdiv st(1)
fstp qword [esp + 0x20]
fstp st(0)
fstp qword [esp + 0x18]
fld dword [esp + 0xa8]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fld dword [esp + 0x9c]
fstp qword [esp]
push edi
push edx
push eax
push 0x4c61d8
call fcn.00443600
add esp, 0x40
jmp 0x487266
fstp st(0)
cmp byte [0x4dcb50], bl
je 0x487369
cmp dword [0x4dc33c], ebx
je 0x487369
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x48728c
mov dword [esp + 0x54], eax
jmp 0x487291
mov byte [esp + 0x51], 1
mov byte [esp + 0x58], bl
mov ecx, dword [esp + 0x40]
cmp dword [ecx], ebx
je 0x487369
cmp eax, dword [esp + 0x54]
jne 0x4872b1
cmp byte [esp + 0x58], bl
jne 0x487369
lea edx, [eax + 0x5c]
mov dword [esp + 0x14], edx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x4872c9
mov eax, dword [eax + 4]
jmp 0x4872cb
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4872d8
mov ecx, dword [eax + 4]
jmp 0x4872da
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
je 0x4872f4
mov dword [esp + 0x28], eax
jmp 0x4872f9
mov byte [esp + 0x25], 1
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x2c], bl
cmp dword [edx], ebx
je 0x487357
cmp eax, dword [esp + 0x28]
jne 0x487311
cmp byte [esp + 0x2c], bl
jne 0x487357
mov ecx, dword [esp + 0x38]
mov esi, eax
push edi
push ecx
lea ecx, [esi + 0x54]
call fcn.00437ae0
fsubr dword [esp + 0x64]
mov eax, dword [0x4dc33c]
push ebp
fmul dword [esp + 0x60]
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
push edx
push esi
push 0x15
push eax
call fcn.0046fd80
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00440e40
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
jmp 0x487301
lea ecx, [esp + 0x40]
call fcn.004403e0
mov eax, dword [esp + 0x48]
jmp 0x487295
push 0x4331a0
lea ecx, [esi + 0x50]
call fcn.0043fe20
lea ecx, [esp + 0x90]
mov byte [esp + 0xa8], 1
call fcn.00439e10
lea ecx, [esp + 0x80]
mov byte [esp + 0xa8], bl
call fcn.00439e10
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret