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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x36c
fld qword [0x42e190]
mov dword [esp + 8], 0xaaeaf822
mov dword [esp + 0xc], 0xc3c90ee8
fstp qword [esp + 0x54]
fld qword [0x42e188]
mov eax, 0xffffc46f
fstp qword [esp + 0x1c]
mov dword [esp + 0x10], 0xcf9aecbe
fld dword [0x42e180]
mov dword [esp + 8], 0x999d00f8
fstp dword [esp + 0x28]
mov word [esp + 0x14], ax
fld qword [0x42e178]
push ebx
fstp qword [esp + 0x50]
mov dword [esp + 8], 0xc7062214
mov dword [esp + 0x30], 0xd0181278
mov ecx, dword [0x4331e4]
mov edx, dword [0x43314c]
mov eax, 0xb9433b1f
sub eax, ecx
cmp eax, edx
push esi
push edi
jle 0x408d0c
fld dword [0x433168]
fsub qword [0x42dc08]
fstp dword [0x433168]
jmp 0x408d24
mov eax, dword [esp + 0x10]
add eax, 0x2a124155
cmp eax, 0x741e0951
jge 0x408d24
mov dword [esp + 0x38], 0x12aa2a7
mov esi, dword [ebp + 0x14]
lea edx, [esp + 0x6c]
push edx
mov ebx, 1
lea ecx, [esp + 0x6c]
push esi
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ecx
call fcn.00402b10
add esp, 8
test eax, eax
jl 0x409540
mov eax, dword [esi + 8]
test byte [eax], bl
je 0x409540
fld dword [esp + 0x34]
fsubr qword [0x42e170]
fsub qword [0x42e168]
fld dword [0x433450]
fsubr qword [0x42e160]
fucompp
fnstsw ax
test ah, 0x44
jp 0x408dd0
mov cx, word [0x433514]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [esp + 0x58]
fadd qword [0x42e158]
fcomp qword [0x42e150]
fnstsw ax
fld qword [esp + 0x58]
fsub qword [0x42d848]
fstp qword [esp + 0x58]
add word [0x433514], bx
test ah, 5
jp 0x408dd0
mov dword [esp + 0x1c], 0x2a93e7de
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00403870
push 0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00402cf0
push 0x300
lea eax, [esp + 0x90]
push 0
push eax
call fcn.00415270
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004037b0
add esp, 0x24
cmp eax, 0x29f
jle 0x408e1d
mov dword [esp + 0x24], 6
jmp 0x408e4d
cmp eax, 0xef
jle 0x408e2e
mov dword [esp + 0x24], 5
jmp 0x408e4d
cmp eax, 0x4f
jle 0x408e3d
mov dword [esp + 0x24], 4
jmp 0x408e4d
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x24], edx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x1c]
fadd qword [0x42e148]
mov edi, dword [esi + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add edi, ebx
fmulp st(1)
call fcn.00415890
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
fld qword [esp + 0x28]
fsub qword [0x42d848]
push edi
push ebx
fstp qword [esp + 0x30]
call fcn.004010c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
lea ecx, [esp + 0x84]
push edi
push ecx
call fcn.004010c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
lea edx, [edi + edi]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004010c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
fld qword [0x433418]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x433418]
fld dword [esp + 0x34]
fsub qword [0x42e140]
fadd qword [0x433418]
call fcn.00415890
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
test edi, edi
je 0x408f2a
cmp dword [edi + 8], 0
je 0x408f2a
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
jmp 0x408f9a
lea ecx, [esp + 0x4c]
push 1
push ecx
call fcn.004041c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c7
mov edx, dword [esi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00404a20
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c7
lea ecx, [esp + 0x4c]
push esi
push ecx
mov edx, ecx
push edx
call fcn.004083f0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c7
test edi, edi
je 0x408f9a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edi, dword [ebp + 0xc]
push esi
push edi
call fcn.00402b10
add esp, 8
test eax, eax
jl 0x408fbf
push esi
lea eax, [esp + 0x88]
push edi
push eax
call fcn.004083f0
add esp, 0xc
jmp 0x408fd0
lea ecx, [esp + 0x84]
push edi
push ecx
call fcn.004024d0
add esp, 8
fld dword [0x433538]
mov dx, word [0x4332c0]
fsub qword [0x42e138]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
call fcn.00415890
mov word [0x4332c0], ax
fld dword [0x433538]
mov edi, dword [esp + 0x30]
fsub qword [0x42d848]
lea ecx, [esp + 0x40]
push ecx
push edi
fstp dword [0x433538]
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x94]
push eax
call fcn.00404ba0
lea ecx, [esp + 0x60]
push ecx
push ebx
call fcn.004024d0
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
lea edx, [esp + 0x40]
push edx
push edi
push esi
push ebx
call fcn.00406b50
mov eax, dword [esp + 0x28]
mov ecx, 0xebf586e0
sub ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
add esp, 0x10
fmul qword [esp + 0x28]
fstp qword [esp + 0x28]
dec dword [esp + 0x18]
cmp eax, 1
jle 0x409193
mov edx, dword [esi + 4]
lea ecx, [eax - 1]
mov ebx, 1
shl ebx, cl
inc edx
push edx
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0x7c]
push edi
call fcn.004010c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
lea eax, [esp + 0x84]
push eax
push edi
call fcn.004024d0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x433564]
mov edx, 0x332ceca1
sub edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, edx
imul ecx, eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x40910e
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
push eax
push esi
push edi
push edi
call fcn.00404ba0
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x4090f2
mov ecx, dword [esp + 0x24]
mov eax, 1
shl eax, cl
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], eax
jge 0x409190
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0x78]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push edi
call fcn.004010c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
lea edx, [edi - 0xc]
push edx
push edi
call fcn.004024d0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4094c4
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x40]
push eax
push ecx
push esi
lea edx, [esp + 0x90]
push edx
push edi
call fcn.00404ba0
fld qword [esp + 0x74]
fmul qword [0x42e130]
inc ebx
add esp, 0x14
add edi, 0xc
cmp ebx, dword [esp + 0x10]
fstp qword [esp + 0x60]
jl 0x409129
mov ebx, dword [ebp + 8]
mov ax, word [0x433488]
movsx ecx, ax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsub dword [esp + 0x34]
mov edx, dword [0x4332dc]
mov dword [esp + 0x10], edx
fsub qword [0x42e128]
fild dword [esp + 0x10]
faddp st(1)
call fcn.00415890
mov dword [0x4332dc], eax
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
fadd qword [esp + 0x28]
call fcn.00415890
mov dword [esp + 0x14], eax
fld dword [0x43312c]
fld1
xor eax, eax
fsub st(1), st(0)
mov dword [esp + 0x18], eax
fxch st(1)
mov dword [esp + 0x10], eax
fstp dword [0x43312c]
fld dword [0x43312c]
fstp qword [esp + 0x28]
cmp dword [esp + 0x3c], 0
jne 0x409239
mov eax, dword [esp + 0x38]
mov ecx, eax
dec eax
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x40941c
mov dword [esp + 0x3c], 0x20
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + edx*4]
dec ecx
shr eax, cl
mov dword [esp + 0x3c], ecx
and eax, 1
jne 0x409303
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x409217
cmp ecx, 1
jne 0x409303
add word [0x433114], cx
mov ax, word [0x433114]
movsx edx, ax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fld qword [esp + 0x28]
fucompp
fnstsw ax
fld qword [esp + 0x28]
fadd st(1)
fstp qword [esp + 0x28]
test ah, 0x44
jnp 0x4092e5
add word [0x433078], cx
mov ax, word [0x433078]
movsx ecx, ax
add ecx, 0x1747b7fa
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld qword [0x4330f0]
fsub qword [0x42e120]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4092e5
fld qword [esp + 0x58]
fadd qword [0x42e118]
fstp qword [esp + 0x60]
fadd qword [esp + 0x58]
fstp qword [esp + 0x58]
jmp 0x4092e7
fstp st(0)
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
push eax
push esi
push ebx
push ebx
call fcn.00404ba0
fld1
add esp, 0x14
jmp 0x409217
fld qword [esp + 0x28]
mov edx, dword [esp + 0x24]
fadd st(1)
inc edi
mov dword [esp + 0x10], 2
fstp qword [esp + 0x28]
fld qword [0x433518]
mov ecx, dword [esp + 0x1c]
sub ecx, 0x12a2e453
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
mov ecx, edx
sub ecx, edi
shl eax, cl
fadd qword [esp + 0x28]
or dword [esp + 0x18], eax
fsubp st(1)
fstp qword [0x433518]
cmp edi, edx
jne 0x409217
mov edi, dword [esp + 0x30]
fstp st(0)
mov eax, edx
test eax, eax
jle 0x409378
mov dword [esp + 0x14], eax
lea edx, [esp + 0x40]
push edx
push edi
push esi
push ebx
push ebx
call fcn.00404ba0
add esp, 0x14
sub dword [esp + 0x14], 1
jne 0x409360
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [eax + eax*2]
push esi
lea edx, [esp + ecx*4 + 0x84]
push edx
push ebx
call fcn.00404ba0
mov ax, word [0x433568]
mov ecx, dword [esp + 0x30]
cwde
mov edi, 1
add word [0x433568], di
add dword [esp + 0x30], edi
add ecx, eax
add esp, 0x14
cmp ecx, 0x522f917b
je 0x4093f6
fld qword [0x433308]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x433308]
fld qword [0x433308]
fsubr qword [0x42e110]
fadd dword [esp + 0x34]
call fcn.00415890
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], edi
jmp 0x409217
fld dword [0x4334c4]
fsubr qword [0x42e108]
call fcn.00415890
fld1
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], edi
jmp 0x409217
mov ecx, dword [esp + 0x24]
mov eax, 1
rol eax, cl
mov dword [esp + 0x10], eax
test edi, edi
jle 0x409489
fstp st(0)
mov dword [esp + 0x14], edi
fld qword [esp + 0x60]
mov edi, dword [esp + 0x30]
fadd qword [0x42e100]
lea edx, [esp + 0x40]
push edx
push edi
push esi
fstp qword [esp + 0x6c]
push ebx
push ebx
call fcn.00404ba0
mov eax, dword [esp + 0x2c]
add eax, eax
add esp, 0x14
mov dword [esp + 0x18], eax
test dword [esp + 0x10], eax
je 0x409480
lea eax, [esp + 0x40]
push eax
push edi
push esi
lea ecx, [esp + 0x90]
push ecx
push ebx
call fcn.00404ba0
add esp, 0x14
sub dword [esp + 0x14], 1
jne 0x409435
fld1
fld qword [esp + 0x28]
fcomp qword [0x42e0f8]
fnstsw ax
fsubr qword [esp + 0x28]
fstp qword [esp + 0x28]
test ah, 1
jne 0x4094b0
mov edx, dword [esp + 0x1c]
imul edx, edx, 0x137c7b5b
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x40]
push eax
push ecx
push esi
push ebx
call fcn.00406b50
add esp, 0x10
mov edi, dword [ebp + 0x18]
mov esi, dword [esp + 0x24]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x409500
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x78]
mov ebx, edx
push 0
push esi
call fcn.00402920
add esp, 8
add esi, 0xc
sub ebx, 1
jne 0x4094ed
push 0
lea edx, [esp + 0x44]
lea eax, [esp + 0x88]
test edi, edi
je 0x409526
push edx
push eax
call fcn.00402920
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.00402920
mov eax, dword [esp + 0x30]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret