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

Disassembly:
sub esp, 0x380
fldz
push ebx
fst qword [esp + 0x54]
push ebp
fst qword [esp + 0x64]
xor ebp, ebp
fldz
xor eax, eax
fst dword [esp + 0x18]
push esi
mov dword [esp + 0x40], ebp
fst dword [esp + 0x18]
fxch st(1)
fst qword [esp + 0x5c]
mov dword [esp + 0x20], ebp
fstp qword [esp + 0x30]
fstp dword [esp + 0x2c]
mov word [esp + 0x10], ax
mov dword [esp + 0x14], ebp
mov cx, word [0x4230f8]
movzx edx, word [0x424b5c]
movsx eax, cx
lea eax, [edx + eax + 0x76ad826f]
mov word [0x424b5c], ax
fld dword [0x425af0]
mov ecx, dword [esp + 0x14]
fsubr qword [0x41f570]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fmulp st(1)
call fcn.0040b1f0
mov esi, dword [esp + 0x39c]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x74]
mov ebx, 1
push ecx
sub edx, 0x5db1ce3f
lea eax, [esp + 0x68]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x78], ebx
push esi
mov word [esp + 0x18], dx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], eax
call fcn.00402e20
add esp, 8
test eax, eax
jl 0x40689c
mov edx, dword [esi + 8]
test byte [edx], bl
je 0x40689c
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00401760
mov cx, word [str.jl4Z_]
movsx edx, cx
sub edx, 0x2a91b713
mov dword [esp + 0x14], edx
add esp, 8
fild dword [esp + 0xc]
fld dword [esp + 0x1c]
fsub qword [0x41f748]
fld dword [esp + 0x1c]
faddp st(2)
fcompp
fnstsw ax
fld dword [esp + 0x1c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x1c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
test bl, ah
jne 0x405f5d
mov ax, word [0x4234e8]
mov ecx, dword [0x425bc0]
cwde
sub eax, ecx
sub eax, 0x43401aba
mov word [0x4234e8], ax
add dword [0x425bc0], ebx
jmp 0x405f6f
mov edx, dword [0x424044]
imul edx, edx, 0x9498b091
mov dword [0x424044], edx
push ebp
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004010c0
push 0x300
lea edx, [esp + 0x9c]
push ebp
push edx
call fcn.0040b330
mov eax, dword [esp + 0x3b0]
push eax
call fcn.00401f00
add dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
add esp, 0x1c
cmp eax, 0x29f
fmul qword [esp + 0x30]
fstp qword [esp + 0x30]
jle 0x405fcb
mov dword [esp + 0x24], 6
jmp 0x405ffb
cmp eax, 0xef
jle 0x405fdc
mov dword [esp + 0x24], 5
jmp 0x405ffb
cmp eax, 0x4f
jle 0x405feb
mov dword [esp + 0x24], 4
jmp 0x405ffb
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x24], edx
fld dword [0x424f04]
mov eax, dword [esp + 0x40]
fsub qword [0x41f740]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
push edi
faddp st(1)
call fcn.0040b1f0
mov dword [esp + 0x44], eax
fld dword [0x424f04]
fsub qword [0x41f340]
fstp dword [0x424f04]
mov cx, word [0x423538]
mov edi, dword [esi + 4]
movsx edx, cx
mov dword [esp + 0x10], edx
add edi, ebx
mov ebx, dword [esp + 0x394]
fild dword [esp + 0x10]
push edi
push ebx
fstp qword [0x4235a0]
call fcn.00401a40
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406802
lea eax, [esp + 0x9c]
push edi
push eax
call fcn.00401a40
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406802
lea ecx, [edi + edi]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00401a40
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406802
mov ebp, dword [esp + 0x3a4]
test ebp, ebp
je 0x4060d0
cmp dword [ebp + 8], 0
je 0x4060d0
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jmp 0x4061f4
fld dword [esp + 0x1c]
mov eax, dword [str.pMt]
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fadd dword [0x42301c]
mov cx, word [0x424000]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040b1f0
mov word [0x424000], ax
fld dword [0x42301c]
fsub qword [0x41f340]
lea eax, [esp + 0x48]
push 1
push eax
fstp dword [0x42301c]
dec dword [str.pMt]
fldz
fstp dword [esp + 0x44]
fldz
fstp qword [esp + 0x44]
call fcn.00401a40
mov edi, eax
add esp, 8
test edi, edi
jne 0x40616b
mov ecx, dword [esp + 0x4c]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.0040b330
mov ecx, dword [esp + 0x5c]
mov dword [ecx], 1
add esp, 0xc
mov dword [esp + 0x48], 1
mov dword [esp + 0x14], edi
test edi, edi
jne 0x406809
mov edx, dword [esi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00403b00
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406809
lea ecx, [esp + 0x48]
push esi
push ecx
mov edx, ecx
push edx
call fcn.00405ce0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406809
mov ax, word [0x423060]
movsx ecx, ax
mov edx, 0xfebc8e8
sub edx, ecx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
inc word [0x423060]
test ebp, ebp
je 0x4061f4
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
fld qword [0x4235c8]
mov edi, dword [esp + 0x398]
fadd qword [0x41f738]
push esi
push edi
fstp qword [0x4235c8]
call fcn.00402e20
add esp, 8
test eax, eax
jl 0x40622f
push esi
lea eax, [esp + 0xa0]
push edi
push eax
call fcn.00405ce0
add esp, 0xc
jmp 0x406240
lea ecx, [esp + 0x9c]
push edi
push ecx
call fcn.00401be0
add esp, 8
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x54]
push edx
push edi
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.00402cd0
lea edx, [esp + 0x5c]
push edx
push ebx
call fcn.00401be0
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406809
lea eax, [esp + 0x54]
push eax
push edi
push esi
push ebx
call fcn.00404250
fld dword [esp + 0x30]
fld1
add esp, 0x10
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fadd qword [esp + 0x6c]
fadd dword [0x42312c]
fcomp qword [0x41f730]
fnstsw ax
fld dword [0x42312c]
fadd st(1)
fstp dword [0x42312c]
fld qword [esp + 0x6c]
fsub st(1)
fstp qword [esp + 0x6c]
test ah, 5
jp 0x4062ea
dec dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
movzx eax, word [0x425b8c]
mov edx, 0x9ffcd8fd
sub edx, ecx
imul edx, eax
mov word [0x425b8c], dx
jmp 0x40631e
fld qword [esp + 0x34]
fld qword [esp + 0x60]
fsub dword [esp + 0x30]
fadd qword [esp + 0x34]
fsubp st(1)
fstp qword [esp + 0x34]
fld qword [esp + 0x34]
fsub st(1)
fstp qword [esp + 0x34]
fld dword [esp + 0x30]
fadd st(1)
fstp dword [esp + 0x30]
fld qword [esp + 0x60]
fsub st(1)
fstp qword [esp + 0x60]
mov ebp, dword [esp + 0x28]
cmp ebp, 1
jle 0x406425
dec ebp
fstp st(0)
mov ecx, ebp
mov ebx, 1
shl ebx, cl
mov ecx, dword [esi + 4]
inc ecx
push ecx
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0x94]
push edi
call fcn.00401a40
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406802
lea edx, [esp + 0x9c]
push edx
push edi
call fcn.00401be0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406802
test ebp, ebp
jle 0x40639a
lea esp, [esp]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
push ecx
push esi
push edi
push edi
call fcn.00402cd0
add esp, 0x14
sub ebp, 1
jne 0x406380
mov ecx, dword [esp + 0x28]
mov ebp, 1
shl ebp, cl
inc ebx
cmp ebx, ebp
jge 0x406423
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0x90]
jmp 0x4063c0
fld dword [0x41f728]
fstp dword [0x423030]
mov edx, dword [esi + 4]
inc edx
push edx
push edi
call fcn.00401a40
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406802
lea eax, [edi - 0xc]
push eax
push edi
call fcn.00401be0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406802
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
lea eax, [esp + 0xa8]
push eax
push edi
call fcn.00402cd0
inc ebx
add esp, 0x14
add edi, 0xc
cmp ebx, ebp
jl 0x4063c0
fld1
fld dword [esp + 0x1c]
mov ecx, dword [0x423130]
fsub qword [0x41f720]
mov dword [esp + 0x10], ecx
fisub dword [esp + 0x10]
fld qword [0x423690]
fucompp
fnstsw ax
fld dword [esp + 0x1c]
fsub st(1)
fstp dword [esp + 0x1c]
test ah, 0x44
jp 0x40647a
mov edx, dword [0x42404c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld qword [esp + 0x34]
fsub qword [0x41f718]
fsubp st(1)
call fcn.0040b1f0
mov dword [0x42404c], eax
fld dword [0x425b64]
mov eax, dword [esp + 0x39c]
fsubr qword [0x41f710]
mov ecx, dword [eax + 4]
xor ebp, ebp
xor ebx, ebx
fstp dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
fld dword [0x425b64]
mov dword [esp + 0x18], ebp
fsub st(1)
mov dword [esp + 0x10], ebx
fstp dword [0x425b64]
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x18], 0
jne 0x40652a
mov eax, dword [esp + 0x30]
mov edx, eax
dec eax
mov dword [esp + 0x30], eax
test edx, edx
je 0x406752
fld qword [0x424ef0]
fsub qword [0x41f708]
fld qword [esp + 0x34]
mov eax, dword [0x4236c4]
fsub qword [0x41f700]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
faddp st(1)
fcompp
fnstsw ax
fld qword [0x424ef0]
fadd st(1)
fstp qword [0x424ef0]
test ah, 5
jp 0x40651e
fld qword [esp + 0x34]
fstp dword [esp + 0x1c]
fld qword [esp + 0x34]
fsub st(1)
fstp qword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], 0x20
mov edx, dword [esp + 0x39c]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
dec ecx
shr eax, cl
mov dword [esp + 0x18], ecx
and eax, 1
jne 0x406655
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4064b6
cmp ecx, 1
jne 0x406655
mov ax, word [0x425b34]
fstp st(0)
movsx ecx, ax
add ecx, 0x5d6dd33a
mov dword [esp + 0x3c], ecx
or edi, 0xffffffff
fild dword [esp + 0x3c]
fld dword [esp + 0x1c]
add word [0x425b34], di
fsubr qword [0x41f6f8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4065bd
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fld dword [esp + 0x20]
fsubr qword [0x41f6f0]
fsubp st(1)
call fcn.0040b1f0
mov dword [esp + 0x24], eax
jmp 0x4065f2
mov eax, dword [esp + 0x44]
sub eax, 0x79d4be3e
cmp eax, 0xe0a703bf
jl 0x4065e0
fld qword [0x4235a0]
call fcn.0040b1f0
mov word [0x42319c], ax
jmp 0x4065f2
fld dword [0x423128]
fmul qword [0x41f6e8]
fstp dword [0x423128]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x54]
push ecx
push edx
push esi
push eax
push eax
call fcn.00402cd0
add word [0x424bac], di
fld dword [0x425ba4]
mov eax, dword [0x42363c]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
add esp, 0x14
fsub qword [esp + 0x34]
mov cx, word [0x424bac]
movsx edx, cx
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
fsubp st(1)
fsubp st(1)
fstp dword [0x425ba4]
inc dword [0x42363c]
fld1
jmp 0x4064b2
fld qword [0x423038]
mov edx, dword [esp + 0x28]
fsub st(1)
inc ebp
mov ecx, edx
sub ecx, ebp
fstp qword [0x423038]
shl eax, cl
fld qword [0x423038]
mov dword [esp + 0x10], 2
fsub qword [0x41f6e0]
fld dword [esp + 0x1c]
fsub qword [0x41f6d8]
or ebx, eax
mov eax, dword [esp + 0x24]
dec dword [esp + 0x24]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fsubp st(2)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4066c9
fld qword [0x424de8]
fsub st(1)
fstp qword [0x424de8]
fld qword [0x424de8]
fadd qword [0x41f6d0]
fstp qword [esp + 0x34]
jmp 0x4066e7
fld dword [0x42301c]
fsub qword [0x425bb8]
fsub qword [0x41f6c8]
fmul dword [0x4234c8]
fstp dword [0x4234c8]
cmp ebp, edx
jne 0x4064b2
mov ebp, dword [esp + 0x28]
fstp st(0)
mov edi, dword [esp + 0x2c]
test ebp, ebp
jle 0x40671d
lea ecx, [ecx]
mov eax, dword [esp + 0x394]
lea ecx, [esp + 0x54]
push ecx
push edi
push esi
push eax
push eax
call fcn.00402cd0
add esp, 0x14
sub ebp, 1
jne 0x406700
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x398]
push edi
lea eax, [ebx + ebx*2]
push esi
lea ecx, [esp + eax*4 + 0x9c]
push ecx
push edx
call fcn.00402cd0
fld1
add esp, 0x14
xor ebp, ebp
mov dword [esp + 0x10], 1
xor ebx, ebx
jmp 0x4064b6
mov ecx, dword [esp + 0x28]
fstp st(0)
mov eax, 1
rol eax, cl
mov dword [esp + 0x3c], eax
test ebp, ebp
jle 0x4067b1
mov dword [esp + 0x10], ebp
jmp 0x406770
mov ebp, dword [esp + 0x394]
lea eax, [esp + 0x54]
push eax
push edi
push esi
push ebp
push ebp
call fcn.00402cd0
add ebx, ebx
add esp, 0x14
test dword [esp + 0x3c], ebx
je 0x4067a8
lea ecx, [esp + 0x54]
push ecx
push edi
push esi
lea edx, [esp + 0xa8]
push edx
push ebp
call fcn.00402cd0
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x406770
jmp 0x4067b8
mov ebp, dword [esp + 0x394]
fldz
lea ecx, [esp + 0x54]
push ecx
fst qword [esp + 0x64]
push edi
fstp qword [esp + 0x68]
mov eax, 1
push esi
lea edx, [esp + 0x90]
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
push edx
lea eax, [esp + 0x84]
push ebp
mov dword [esp + 0xa0], eax
call fcn.00402cd0
add esp, 0x14
mov ebp, dword [esp + 0x3a4]
mov esi, dword [esp + 0x28]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x406845
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x90]
mov edi, edx
push 0
push esi
call fcn.00401820
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x406832
pop edi
push 0
lea eax, [esp + 0x54]
lea ecx, [esp + 0x9c]
test ebp, ebp
je 0x406877
push eax
push ecx
call fcn.00401820
mov eax, dword [esp + 0x1c]
add esp, 0xc
add dword [esp + 0x20], 0x8a37a1be
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
lea edx, [esp + 0x48]
push edx
push eax
push ecx
call fcn.00401820
mov eax, dword [esp + 0x20]
add esp, 0x10
add dword [esp + 0x20], 0x8a37a1be
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x380
ret