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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a6cc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
mov ecx, dword [eax + 0x1c]
add eax, 0x38
mov dx, word [ecx + 0x42]
mov cx, word [ecx + 0x44]
movsx esi, cx
movsx ecx, dx
mov dword [esp + 0x6c], ecx
imul ecx, esi
mov dword [esp + 0xe0], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], esi
fld dword [esp + 0x38]
fsub qword [0x5cb1a0]
mov edx, dword [eax + 4]
mov esi, 1
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 8]
fabs
fcomp qword [0x5cb2b0]
mov dword [esp + 0x40], eax
fnstsw ax
test ah, 1
jne 0x4185b5
fld dword [esp + 0x38]
fadd qword [0x5cb1a0]
fabs
fcomp qword [0x5cb2b0]
fnstsw ax
test ah, 1
je 0x418577
mov edi, esi
jmp 0x4185b5
fld dword [esp + 0x3c]
fsub qword [0x5cb1a0]
fabs
fcomp qword [0x5cb2b0]
fnstsw ax
test ah, 1
je 0x418597
mov edi, 2
jmp 0x4185b5
fld dword [esp + 0x3c]
fadd qword [0x5cb1a0]
fabs
fcomp qword [0x5cb2b0]
fnstsw ax
test ah, 1
je 0x4185b5
mov edi, 3
lea ecx, [esp + 0xd4]
call fcn.00479c40
lea ecx, [esp + 0xc8]
call fcn.00479c40
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x174]
call fcn.0041e260
cmp edi, 3
ja case.0x4185f1.0
jmp dword [edi*4 + 0x418f9c]
push 0
push 0
push 0
push 0
push 0xbff00000
push 0
lea ecx, [esp + 0x10c]
call fcn.0041e260
push eax
lea ecx, [esp + 0xd8]
call fcn.0041e610
push 0
push 0
push 0x3ff00000
push 0
push 0
push 0
lea ecx, [esp + 0xa0]
jmp 0x4186f6
push 0
push 0
push 0x3ff00000
push 0
push 0
push 0
lea ecx, [esp + 0x94]
call fcn.0041e260
push eax
lea ecx, [esp + 0xd8]
call fcn.0041e610
push 0
push 0
push 0
push 0
push 0x3ff00000
push 0
lea ecx, [esp + 0x34]
jmp 0x4186f6
push 0
push 0
push 0xbff00000
push 0
push 0
push 0
lea ecx, [esp + 0x164]
call fcn.0041e260
push eax
lea ecx, [esp + 0xd8]
call fcn.0041e610
push 0
push 0
push 0
push 0
push 0xbff00000
push 0
lea ecx, [esp + 0x154]
jmp 0x4186f6
push 0
push 0
push 0
push 0
push 0x3ff00000
push 0
lea ecx, [esp + 0xbc]
call fcn.0041e260
push eax
lea ecx, [esp + 0xd8]
call fcn.0041e610
push 0
push 0
push 0xbff00000
push 0
push 0
push 0
lea ecx, [esp + 0xcc]
call fcn.0041e260
push eax
lea ecx, [esp + 0xcc]
call fcn.0041e610
cmp word [ebp + 8], 0
je 0x418776
push 0x3840
call fcn.00586401
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x1b8], 0
je 0x418763
mov edi, eax
mov dword [esp + 0x18], 0x4b0
mov ecx, edi
call fcn.00479c40
mov eax, dword [esp + 0x18]
add edi, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x418739
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1b8], 0xffffffff
mov dword [esp + 0x2c], eax
jmp 0x4187af
xor eax, eax
mov dword [esp + 0x1b8], 0xffffffff
mov dword [esp + 0x2c], eax
jmp 0x4187af
push 0xc
call fcn.00586401
mov edi, eax
add esp, 4
mov dword [esp + 0x44], edi
test edi, edi
mov dword [esp + 0x1b8], 1
je 0x41879e
mov ecx, edi
call fcn.00479c40
jmp 0x4187a0
xor edi, edi
mov dword [esp + 0x1b8], 0xffffffff
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0xe8]
call fcn.004259a0
mov dword [esp + 0xe8], 0x5cb2a4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1b8], 2
test eax, eax
mov dword [esp + 0x18], 0
jle 0x418f2d
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x34], ecx
test si, si
je 0x418f2d
mov eax, dword [esp + 0x6c]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], edi
jle 0x418f0d
jmp 0x41880d
mov edi, dword [esp + 0x30]
test si, si
je 0x418f0d
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
push eax
push edi
mov ecx, dword [edx + 0x1c]
lea edx, [esp + 0x17c]
push edx
call fcn.00421060
mov ecx, dword [eax]
mov dword [esp + 0x74], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
fld dword [ecx + 0x2c]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
mov dword [eax + edi*4], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4188a5
mov ecx, dword [esp + 0x68]
inc ecx
test cl, 3
mov dword [esp + 0x68], ecx
jne 0x4188a5
fild dword [esp + 0x68]
push ecx
fidiv dword [esp + 0xe4]
fstp dword [esp]
call eax
mov esi, eax
add esp, 4
test si, si
jne 0x4188a5
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 3
mov edx, dword [ebx]
mov ebx, dword [edx + 0x20]
add ebx, 0x28
mov dword [esp + 0xe4], ebx
movsx edi, word [ebx]
dec edi
test si, si
mov dword [esp + 0x58], edi
je 0x418ef4
lea eax, [edi + edi*2]
shl eax, 2
mov dword [esp + 0x50], eax
jmp 0x4188dc
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0xe4]
test edi, edi
jl 0x418e35
push edi
mov ecx, ebx
call fcn.00426200
test ax, ax
je 0x4188fb
push edi
mov ecx, ebx
call fcn.004261d0
jmp 0x418901
fld qword [0x5cb1a0]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x50]
fld dword [ebp + 0x10]
mov edi, dword [eax + ecx + 8]
fmul st(1)
mov edx, dword [edi + 0x24]
mov dword [esp + 0x28], edi
movsx ebx, word [edi + 0xc]
fstp qword [esp + 0x14c]
mov eax, dword [edx + 0x34]
dec ebx
fstp st(0)
mov dword [esp + 0x60], eax
js 0x418e13
test si, si
je 0x418e13
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
push 0
lea eax, [esp + 0x64]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xf4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00429430
mov esi, eax
lea edx, [esp + 0x38]
lea eax, [esp + 0x18c]
push edx
push eax
push ebx
mov ecx, edi
call fcn.004293f0
mov ecx, eax
call fcn.0043e010
mov ecx, dword [eax]
mov dword [esp + 0x54], 0
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 8]
test si, si
mov dword [esp + 0x24], eax
je 0x418e0c
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jge 0x418e08
lea edx, [esp + 0xd4]
mov ecx, edi
push edx
call fcn.0041e6f0
fchs
fst dword [esp + 0xc]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x418df3
lea eax, [esp + 0xc8]
mov ecx, edi
push eax
call fcn.0041e6f0
lea ecx, [esp + 0x15c]
fchs
fstp dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0041e6f0
fchs
fld dword [esp + 0x44]
fdiv dword [esp + 0xc]
push ecx
fstp dword [esp]
push ecx
fdiv dword [esp + 0x14]
fstp dword [esp]
call fcn.00420600
fst qword [esp + 0xac]
fcomp qword [0x5cb1a8]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x418df3
mov ecx, edi
call fcn.0041e2e0
mov eax, dword [esp + 0x5c]
fstp qword [esp + 0x13c]
cmp eax, 1
jne 0x418b25
lea ecx, [esp + 0x1c]
call fcn.0041e2e0
fstp qword [esp + 0x44]
fld dword [esp + 0x24]
fchs
fdiv qword [esp + 0x44]
call fcn.0056c350
fstp qword [esp + 0xc]
fld dword [esp + 0x1c]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418ab5
fld dword [esp + 0x20]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418ab5
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
jmp 0x418ace
fld dword [esp + 0x1c]
fchs
fld dword [esp + 0x20]
fpatan
fadd qword [0x5cb298]
fstp qword [esp + 0x94]
mov edx, dword [esp + 0x60]
add edx, 0x1e8
mov eax, dword [edx]
mov dword [esp + 0x12c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x130], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
lea ecx, [esp + 0x13c]
jmp 0x418da5
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1a4]
push edi
push eax
push ebx
call fcn.004293f0
mov ecx, eax
call fcn.0043e0c0
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x90], eax
fld dword [esp + 0x90]
fabs
fcomp qword [0x5cb2b0]
fnstsw ax
test ah, 1
je 0x418c40
lea ecx, [esp + 0x1c]
call fcn.0041e2e0
fstp qword [esp + 0x44]
fld dword [esp + 0x24]
fchs
fdiv qword [esp + 0x44]
call fcn.0056c350
fstp qword [esp + 0xc]
fld dword [esp + 0x1c]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418bd0
fld dword [esp + 0x20]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418bd0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
jmp 0x418be9
fld dword [esp + 0x1c]
fchs
fld dword [esp + 0x20]
fpatan
fadd qword [0x5cb298]
fstp qword [esp + 0x9c]
mov ecx, dword [esp + 0x60]
add ecx, 0x1e8
mov edx, dword [ecx]
mov dword [esp + 0x11c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x120], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x124], edx
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
push eax
push ecx
lea ecx, [esp + 0x12c]
jmp 0x418da5
fld dword [esp + 0x24]
fdiv dword [esp + 0x90]
lea ecx, [esp + 0x88]
fstp dword [esp + 0xc]
call fcn.0041e2e0
fmul dword [esp + 0xc]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x19c]
push eax
push ecx
fstp qword [esp + 0x50]
call fcn.0041e7f0
push eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x190]
push edx
push eax
call fcn.0041e7a0
mov ecx, dword [eax]
mov dword [esp + 0x10c], ecx
lea ecx, [esp + 0x10c]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x114], edx
lea edx, [esp + 0x38]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x188]
push eax
call fcn.0041e7a0
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x84], eax
fld dword [esp + 0x84]
fchs
fdiv qword [esp + 0x44]
call fcn.0056c350
fstp qword [esp + 0xc]
fld dword [esp + 0x7c]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418d37
fld dword [esp + 0x80]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x40
je 0x418d37
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
jmp 0x418d53
fld dword [esp + 0x7c]
fchs
fld dword [esp + 0x80]
fpatan
fadd qword [0x5cb298]
fstp qword [esp + 0xb4]
mov ecx, dword [esp + 0x60]
add ecx, 0x1e8
mov edx, dword [ecx]
mov dword [esp + 0x10c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x110], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
push ecx
lea ecx, [esp + 0x11c]
call fcn.004376c0
fidiv dword [esp + 0x5c]
fcom qword [0x5cb290]
fnstsw ax
test ah, 1
je 0x418dca
mov edx, dword [ebp + 0x1c]
xor esi, esi
fstp st(0)
mov dword [edx], 0xb
jmp 0x418df3
fld qword [esp + 0x44]
fmul qword [esp + 0x13c]
fmul qword [esp + 0x14c]
fdiv qword [esp + 0xa4]
fld st(0)
fmul st(1)
fdivrp st(2)
fstp st(0)
fadd qword [esp + 0x74]
fstp qword [esp + 0x74]
mov edx, dword [esp + 0x54]
add edi, 0xc
inc edx
test si, si
mov dword [esp + 0x54], edx
jne 0x4189b0
mov edi, dword [esp + 0x28]
dec ebx
jns 0x418933
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
dec edx
sub ecx, 0xc
test si, si
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], ecx
jne 0x4188d1
jmp 0x418ef4
test si, si
je 0x418ef4
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
lea ecx, [eax + 0x38]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x100], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x104], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x108], ecx
mov edi, dword [eax + 0x20]
mov ecx, edi
call fcn.00450fb0
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x100]
lea ecx, [esp + 0x38]
push edx
push ecx
push edi
mov ecx, eax
call fcn.0044da10
fmul qword [0x5cb288]
fstp qword [esp + 0xa4]
fld qword [esp + 0x74]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x418ef4
fld qword [esp + 0xa4]
fcomp qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x418ef4
fld qword [esp + 0x74]
fmul qword [str.egI_]
fdiv qword [esp + 0xa4]
fldlg2
fxch st(1)
fyl2x
fmul qword [0x5cb278]
fcom qword [0x5cb1a8]
fnstsw ax
test ah, 0x41
jne 0x418ef2
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx]
fstp dword [eax + ecx*4]
jmp 0x418ef4
fstp st(0)
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x418809
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
jl 0x4187ec
mov edx, dword [esp + 0x2c]
push edx
call fcn.0058642a
add esp, 4
test si, si
je 0x418f60
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x418f60
push 0x3f800000
call eax
mov esi, eax
add esp, 4
test si, si
jne 0x418f60
mov eax, dword [ebp + 0x1c]
mov dword [eax], 3
lea ecx, [esp + 0xe8]
mov dword [esp + 0x1b8], 0xffffffff
mov dword [esp + 0xe8], 0x5cb2a4
call fcn.00425a10
mov ecx, dword [esp + 0x1b0]
mov ax, si
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18