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

Disassembly:
sub esp, 0x368
fldz
push ebx
fst dword [esp + 0x10]
push ebp
fldz
xor ebp, ebp
fst qword [esp + 0x30]
xor eax, eax
fst qword [esp + 0x38]
push esi
fxch st(1)
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
fstp dword [esp + 0x18]
mov word [esp + 0x20], ax
fst qword [esp + 0x60]
fld dword [esp + 0x1c]
fsub qword [0x41f7f0]
fcomp qword [0x41f7e8]
fnstsw ax
fld dword [esp + 0x1c]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x1c]
test ah, 0x41
jne 0x40710b
mov cx, word [esp + 0x20]
movsx edx, cx
sub edx, 0x52731499
mov dword [esp + 0x10], edx
or esi, 0xffffffff
fild dword [esp + 0x10]
fsub dword [0x425754]
fadd dword [0x423198]
fstp dword [0x423198]
jmp 0x407126
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
or esi, 0xffffffff
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
add dword [esp + 0x24], esi
fxch st(1)
mov ebx, 1
fstp qword [esp + 0x38]
mov dword [esp + 0x10], ebp
fld dword [0x424ab4]
fstp qword [esp + 0x38]
fld dword [0x424ab4]
mov dword [esp + 0x68], ebp
fsub st(1)
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
fstp dword [0x424ab4]
fld qword [esp + 0x38]
call fcn.0040bbe0
mov edi, dword [esp + 0x388]
mov dword [esp + 0x10], eax
fsubr qword [esp + 0x38]
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x68]
fstp qword [esp + 0x38]
push edx
fld qword [esp + 0x3c]
mov dword [esp + 0x78], ecx
fld dword [0x42311c]
push edi
fsub qword [0x41f488]
fsubp st(1)
fstp qword [esp + 0x40]
call fcn.00402310
add esp, 8
test eax, eax
jl 0x407a8b
mov eax, dword [edi + 8]
test byte [eax], bl
je 0x407a8b
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00401920
fld qword [esp + 0x68]
fsubr qword [0x41f7e0]
call fcn.0040bbe0
mov word [esp + 0x28], ax
fld qword [esp + 0x68]
fadd qword [0x41f350]
push ebp
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x58]
fstp qword [esp + 0x70]
push eax
call fcn.00402a20
push 0x300
lea ecx, [esp + 0x90]
push ebp
push ecx
call fcn.0040bb50
mov edx, dword [esp + 0x3a4]
mov dword [esp + 0x50], 0xd5b09d05
push edx
call fcn.004019e0
add dword [0x42351c], esi
mov cx, word [esp + 0x44]
movsx edx, cx
add edx, dword [0x42351c]
add esp, 0x24
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp qword [esp + 0x38]
add dword [esp + 0x20], esi
cmp eax, 0x29f
jle 0x407251
mov dword [esp + 0x2c], 6
jmp 0x407281
cmp eax, 0xef
jle 0x407262
mov dword [esp + 0x2c], 5
jmp 0x407281
cmp eax, 0x4f
jle 0x407271
mov dword [esp + 0x2c], 4
jmp 0x407281
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x14]
mov esi, dword [edi + 4]
mov eax, 0x378faac9
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add esi, ebx
fsub dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040bbe0
mov ebx, dword [esp + 0x37c]
mov dword [esp + 0x24], eax
fld dword [esp + 0x1c]
fadd qword [0x41f350]
push esi
push ebx
fstp dword [esp + 0x24]
call fcn.00401400
add esp, 8
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x4079fd
fld qword [0x4231a0]
fsubr qword [0x41f7d8]
fsub qword [0x41f7d0]
fld qword [esp + 0x40]
fucompp
fnstsw ax
fld qword [esp + 0x40]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [esp + 0x40]
fsubr qword [0x4231a0]
fstp qword [0x4231a0]
test ah, 0x44
jp 0x407328
fld qword [esp + 0x40]
fmul qword [0x41f7c8]
fstp qword [esp + 0x40]
jmp 0x40733a
mov edx, dword [0x424c08]
imul edx, edx, 0x320ae019
mov dword [0x424c08], edx
lea eax, [esp + 0x84]
push esi
push eax
call fcn.00401400
add esp, 8
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x4079fd
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00401400
add esp, 8
mov dword [esp + 0x28], eax
cmp eax, ebp
jne 0x4079fd
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x38c]
imul eax, eax, 0x90dbafcc
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x4073ad
cmp dword [ebp + 8], 0
je 0x4073ad
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jmp 0x407434
fld dword [esp + 0x1c]
lea ecx, [esp + 0x48]
fld dword [0x424b60]
push 1
fsubr qword [0x41f7c0]
push ecx
fsubp st(1)
fstp dword [esp + 0x24]
call fcn.00402d30
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x407a04
mov edx, dword [edi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00403470
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x407a04
lea ecx, [esp + 0x48]
push edi
push ecx
mov edx, ecx
push edx
call fcn.00406c60
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
jne 0x407a04
test ebp, ebp
je 0x407434
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov esi, dword [esp + 0x380]
push edi
push esi
call fcn.00402310
add esp, 8
test eax, eax
jl 0x40745d
push edi
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00406c60
add esp, 0xc
jmp 0x40746e
lea ecx, [esp + 0x84]
push esi
push ecx
call fcn.004016c0
add esp, 8
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
push eax
push edi
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.004020b0
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.004016c0
add esp, 0x1c
mov dword [esp + 0x28], eax
test eax, eax
jne 0x407a04
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
fsubr qword [0x41f7b8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040bbe0
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
push edi
push ebx
call fcn.00402a60
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp eax, 1
jle 0x4076a7
lea ebx, [eax - 1]
mov ecx, ebx
mov ebp, 1
shl ebp, cl
mov ecx, dword [edi + 4]
inc ecx
push ecx
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x7c]
push esi
call fcn.00401400
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4079fd
lea edx, [esp + 0x84]
push edx
push esi
call fcn.004016c0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4079fd
fld dword [esp + 0x18]
fadd qword [0x41f7b0]
fsubr qword [0x41f7a8]
fcomp qword [0x41f7a0]
fnstsw ax
fld dword [esp + 0x18]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
test ah, 5
jp 0x407582
mov eax, dword [esp + 0x24]
fstp st(0)
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [esp + 0x18]
fsub qword [0x41f798]
fsubp st(1)
call fcn.0040bbe0
mov dword [esp + 0x24], eax
jmp 0x4075bc
fld dword [esp + 0x1c]
fadd st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fsub qword [0x41f790]
fadd dword [esp + 0x18]
mov ecx, dword [0x423114]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040bbe0
mov dword [0x423114], eax
fsubr dword [esp + 0x18]
fstp dword [esp + 0x18]
test ebx, ebx
jle 0x4075da
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
push eax
push edi
push esi
push esi
call fcn.004020b0
add esp, 0x14
sub ebx, 1
jne 0x4075c0
mov ecx, dword [esp + 0x2c]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x40768e
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x78]
mov ecx, dword [edi + 4]
inc ecx
push ecx
push esi
call fcn.00401400
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4079fd
mov dx, word [esp + 0x20]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x38]
mov cx, word [esp + 0x20]
mov eax, dword [esp + 0x14]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
faddp st(1)
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040bbe0
lea ecx, [esi - 0xc]
push ecx
push esi
mov dword [esp + 0x1c], eax
call fcn.004016c0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4079fd
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
push eax
push edi
lea ecx, [esp + 0x90]
push ecx
push esi
call fcn.004020b0
inc ebp
add esp, 0x14
add esi, 0xc
cmp ebp, ebx
jl 0x4075f6
fld dword [0x424aac]
mov ebx, dword [esp + 0x37c]
fmul qword [0x41f788]
fstp dword [0x424aac]
fld qword [0x4247e8]
mov edx, dword [esp + 0x384]
fadd qword [esp + 0x60]
mov eax, dword [edx + 4]
xor ebp, ebp
xor esi, esi
fstp qword [0x4247e8]
mov dword [esp + 0x1c], eax
fld qword [esp + 0x40]
mov dword [esp + 0x20], ebp
fsub qword [0x41f780]
fstp qword [esp + 0x40]
mov dword [esp + 0x40], esi
fld dword [0x41f778]
fstp dword [esp + 0x18]
lea esp, [esp]
cmp dword [esp + 0x20], 0
jne 0x407735
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x407931
mov edx, dword [esp + 0x24]
mov ecx, dword [0x424858]
mov eax, 0x1471e459
sub eax, edx
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x20], 0x20
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
fld dword [esp + 0x18]
mov edx, dword [esp + 0x24]
dec dword [esp + 0x20]
mov dword [esp + 0x10], edx
fisub dword [esp + 0x10]
fadd qword [0x41f770]
fcomp qword [0x41f768]
fnstsw ax
test ah, 0x44
jp 0x407781
fld qword [0x425e40]
mov eax, dword [esp + 0x30]
mov ecx, 0x4356f97a
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsubp st(1)
fstp qword [0x425e40]
dec dword [esp + 0x30]
mov edx, dword [esp + 0x384]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x20]
shr eax, cl
and eax, 1
jne 0x4077c8
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4076f0
cmp ecx, 1
jne 0x4077c8
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
push eax
push edi
push ebx
push ebx
call fcn.004020b0
add esp, 0x14
jmp 0x4076f0
mov edx, dword [esp + 0x2c]
inc esi
mov ecx, edx
sub ecx, esi
shl eax, cl
mov dword [esp + 0x40], 2
or ebp, eax
mov dword [esp + 0x10], ebp
cmp esi, edx
jne 0x4078a4
mov esi, dword [esp + 0x34]
test edx, edx
jle 0x40780d
mov ebp, edx
lea ecx, [esp + 0x54]
push ecx
push esi
push edi
push ebx
push ebx
call fcn.004020b0
add esp, 0x14
sub ebp, 1
jne 0x4077f3
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x54]
push edx
push esi
lea eax, [ebp + ebp*2]
push edi
lea ecx, [esp + eax*4 + 0x84]
push ecx
push ebx
call fcn.004020b0
fld dword [esp + 0x2c]
fadd qword [0x41f350]
or esi, 0xffffffff
add esp, 0x14
fstp dword [esp + 0x18]
add dword [esp + 0x14], esi
fld dword [esp + 0x18]
mov edx, dword [esp + 0x14]
fadd qword [0x41f760]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [0x425988]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x407898
mov ax, word [0x423b14]
mov edx, dword [esp + 0x30]
movsx ecx, ax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld qword [esp + 0x38]
faddp st(2)
fsubrp st(1)
call fcn.0040bbe0
mov dword [esp + 0x30], eax
add word [0x423b14], si
xor esi, esi
mov dword [esp + 0x40], 1
mov ebp, esi
dec word [0x424ba4]
mov ax, word [0x424ba4]
mov edx, dword [esp + 0x14]
movsx ecx, ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [eax + edx - 0x22e901c8]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld dword [esp + 0x18]
inc dword [esp + 0x14]
fsubp st(2)
fcompp
fnstsw ax
test ah, 5
jp 0x407906
mov dx, word [0x423120]
movsx eax, dx
sub eax, 0x56c592b4
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [esp + 0x18]
jmp 0x4076e5
mov ecx, dword [0x423ab8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld qword [0x423520]
fsub qword [0x41f758]
fsubp st(1)
call fcn.0040bbe0
mov dword [0x423ab8], eax
jmp 0x4076f0
mov ecx, dword [esp + 0x2c]
mov eax, 1
rol eax, cl
mov dword [esp + 0x40], eax
test esi, esi
jle 0x4079d5
mov dword [esp + 0x10], esi
lea esp, [esp]
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x54]
push edx
push esi
push edi
push ebx
push ebx
call fcn.004020b0
add ebp, ebp
add esp, 0x14
test dword [esp + 0x40], ebp
je 0x407985
lea eax, [esp + 0x54]
push eax
push esi
push edi
lea ecx, [esp + 0x90]
push ecx
push ebx
call fcn.004020b0
add esp, 0x14
mov dx, word [0x4230f0]
mov ecx, dword [esp + 0x30]
movsx eax, dx
mov edx, 0xdb832f2a
sub edx, ecx
or ecx, 0xffffffff
add word [0x4230f0], cx
add eax, 0xfcb1891b
cmp eax, edx
jge 0x4079ca
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
sub edx, eax
mov eax, dword [esp + 0x14]
imul edx, eax
mov dword [esp + 0x14], edx
add dword [esp + 0x24], ecx
inc dword [esp + 0x14]
sub dword [esp + 0x10], 1
jne 0x407950
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
lea edx, [esp + 0x54]
push edx
fadd dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
push eax
push edi
push ebx
fstp dword [esp + 0x28]
call fcn.00402a60
add esp, 0x10
mov ebp, dword [esp + 0x38c]
mov esi, dword [esp + 0x2c]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407a43
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x78]
mov edi, edx
lea ebx, [ebx]
push 0
push esi
call fcn.00401b10
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407a30
push 0
lea ecx, [esp + 0x58]
lea edx, [esp + 0x88]
test ebp, ebp
je 0x407a6d
push ecx
push edx
call fcn.00401b10
mov eax, dword [esp + 0x34]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
call fcn.00401b10
mov eax, dword [esp + 0x38]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x368
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x368
ret