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

Disassembly:
sub esp, 0x354
fldz
push ebx
fst dword [esp + 0x3c]
push ebp
fst dword [esp + 0xc]
xor ebp, ebp
fldz
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
fstp qword [esp + 0x54]
push esi
mov esi, dword [esp + 0x370]
fst dword [esp + 0x20]
lea ecx, [esp + 0x4c]
fst dword [esp + 0x20]
push ecx
fst dword [esp + 0x28]
mov ebx, 1
fst dword [esp + 0x10]
lea eax, [esp + 0x4c]
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x14]
mov dword [esp + 0x50], ebp
fstp dword [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
call fcn.00402350
add esp, 8
test eax, eax
jl 0x406070
mov edx, dword [esi + 8]
test byte [edx], bl
je 0x406070
mov ax, word [0x42353c]
movsx ecx, ax
sub ecx, 0x14971f45
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x28]
push esi
fild dword [esp + 0x10]
push edx
fmul qword [0x422508]
fstp qword [0x422508]
dec word [0x42353c]
call fcn.00401430
mov eax, dword [0x4224fc]
mov ecx, 0x23991d9f
sub ecx, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
push ebp
lea edx, [esp + 0x38]
push edx
fmul qword [0x423f38]
lea eax, [esp + 0x48]
push eax
fstp qword [0x423f38]
add dword [0x4224fc], ebx
call fcn.004011d0
push 0x300
lea ecx, [esp + 0x78]
push ebp
push ecx
call fcn.0040ade0
fld dword [esp + 0x44]
fsub dword [esp + 0x30]
mov edx, dword [esp + 0x38c]
push edx
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.00402530
add esp, 0x24
cmp eax, 0x29f
jle 0x405a60
mov dword [esp + 0x1c], 6
jmp 0x405a90
cmp eax, 0xef
jle 0x405a71
mov dword [esp + 0x1c], 5
jmp 0x405a90
cmp eax, 0x4f
jle 0x405a80
mov dword [esp + 0x1c], 4
jmp 0x405a90
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x1c], ecx
push edi
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [esp + 0x368]
push edi
push ebx
call fcn.00401220
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x405fae
lea edx, [esp + 0x70]
push edi
push edx
call fcn.00401220
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x405fae
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00401220
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x405fae
mov ebp, dword [esp + 0x378]
test ebp, ebp
je 0x405b12
cmp dword [ebp + 8], 0
je 0x405b12
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x405b83
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.00401620
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fb5
mov eax, dword [esi + 4]
shl eax, 6
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00403950
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fb5
lea edx, [esp + 0x3c]
push esi
push edx
mov eax, edx
push eax
call fcn.00405740
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fb5
test ebp, ebp
je 0x405b83
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov edi, dword [esp + 0x36c]
push esi
push edi
call fcn.00402350
add esp, 8
test eax, eax
jl 0x405ba9
push esi
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.00405740
add esp, 0xc
jmp 0x405bb7
lea edx, [esp + 0x70]
push edi
push edx
call fcn.00401cf0
add esp, 8
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push edi
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.00402690
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.00401cf0
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fb5
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
push ebx
call fcn.00403ef0
fld dword [0x42264c]
mov dx, word [0x423504]
movsx eax, dx
mov dword [esp + 0x20], eax
add esp, 0x10
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040a7e0
mov ebx, dword [esp + 0x20]
cmp ebx, 1
mov word [0x4227c0], ax
jle 0x405d9d
fld dword [0x423874]
dec ebx
fsub qword [0x41e600]
mov ecx, ebx
mov ebp, 1
shl ebp, cl
fstp dword [0x423874]
mov ecx, dword [esi + 4]
inc ecx
push ecx
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x68]
push edi
call fcn.00401220
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fae
lea edx, [esp + 0x70]
push edx
push edi
mov dword [esp + 0x18], 0x54626687
call fcn.00401cf0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fae
test ebx, ebx
jle 0x405cae
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
push ecx
push esi
push edi
push edi
call fcn.00402690
add esp, 0x14
sub ebx, 1
jne 0x405c94
mov ecx, dword [esp + 0x20]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x405d8f
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x64]
lea ebx, [ebx]
mov edx, dword [0x4238c8]
cmp edx, 0x462acd5c
jle 0x405cf7
mov eax, dword [0x4226a8]
mov ecx, 0x30c045c7
sub ecx, eax
mov word [0x422524], cx
inc dword [0x4226a8]
mov edx, dword [esi + 4]
inc edx
push edx
push edi
call fcn.00401220
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fae
lea eax, [edi - 0xc]
push eax
push edi
call fcn.00401cf0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x405fae
fld dword [0x4227b4]
fadd dword [0x4238ec]
fcomp qword [0x41e5f8]
fnstsw ax
test ah, 0x44
jnp 0x405d6a
fld qword [esp + 0x5c]
fsub qword [0x4224d0]
call fcn.0040a7e0
mov word [0x4234f0], ax
fld qword [0x4224d0]
fsub qword [0x41e348]
fstp qword [0x4224d0]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.00402690
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x405cd0
fld dword [esp + 0x28]
fsub qword [0x41e5f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x370]
mov eax, dword [edx + 4]
sub ecx, 0x67e73a8f
mov dword [esp + 0x10], ecx
fisub dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov dword [esp + 0x10], edi
fstp dword [esp + 0x14]
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x14], 0
jne 0x405df7
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x405ece
mov dword [esp + 0x14], 0x20
mov edx, dword [esp + 0x370]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + edx*4]
dec ecx
shr eax, cl
mov dword [esp + 0x14], ecx
and eax, 1
jne 0x405e5d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x405dd5
cmp ecx, 1
jne 0x405e5d
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x36c]
push ebx
push esi
push eax
push eax
call fcn.00402690
fld dword [0x4226cc]
fsub qword [0x41e5e8]
add esp, 0x14
fadd dword [esp + 0x28]
call fcn.0040a7e0
mov word [0x423994], ax
jmp 0x405dd1
mov edx, dword [esp + 0x20]
inc edi
mov ecx, edx
sub ecx, edi
shl eax, cl
mov dword [esp + 0x10], 2
or ebp, eax
cmp edi, edx
jne 0x405dd5
mov edi, edx
test edi, edi
jle 0x405e9d
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
push eax
push eax
call fcn.00402690
add esp, 0x14
sub edi, 1
jne 0x405e80
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x36c]
push ebx
lea eax, [ebp + ebp*2]
push esi
lea ecx, [esp + eax*4 + 0x70]
push ecx
push edx
call fcn.00402690
add esp, 0x14
xor edi, edi
mov dword [esp + 0x10], 1
xor ebp, ebp
jmp 0x405dd5
mov ecx, dword [esp + 0x20]
mov eax, 1
rol eax, cl
mov dword [esp + 0x14], eax
test edi, edi
jle 0x405f70
mov dword [esp + 0x10], edi
lea esp, [esp]
mov ax, word [0x422518]
mov edx, dword [0x422648]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fadd dword [esp + 0x24]
fsubp st(1)
call fcn.0040a7e0
mov edi, dword [esp + 0x368]
mov word [0x422518], ax
fld dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
fsub qword [0x41e348]
lea eax, [esp + 0x30]
push eax
push ebx
fstp dword [esp + 0x2c]
push esi
push edi
push edi
call fcn.00402690
add ebp, ebp
add esp, 0x14
test dword [esp + 0x14], ebp
je 0x405f67
lea ecx, [esp + 0x30]
push ecx
push ebx
push esi
lea edx, [esp + 0x7c]
push edx
push edi
call fcn.00402690
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x405ef0
jmp 0x405f77
mov edi, dword [esp + 0x368]
lea eax, [esp + 0x30]
push eax
push ebx
push esi
push edi
call fcn.00403ef0
dec word [0x423304]
mov cx, word [0x423304]
movzx edx, word [0x423304]
movsx eax, cx
add eax, 0x9629f45
add esp, 0x10
imul edx, eax
mov word [0x423304], dx
mov ebp, dword [esp + 0x378]
mov esi, dword [esp + 0x20]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x405ff3
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x64]
mov edi, edx
jmp 0x405fe0
push 0
push esi
call fcn.00401bc0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x405fe0
pop edi
push 0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x70]
test ebp, ebp
je 0x40600e
push eax
push ecx
call fcn.00401bc0
add esp, 0xc
jmp 0x40601d
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.00401bc0
add esp, 0x10
mov dx, word [0x42392c]
movsx eax, dx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
pop esi
fild dword [esp + 0x1c]
pop ebp
pop ebx
fsub qword [0x4232d8]
fsub dword [esp + 0x18]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x18]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fadd qword [0x4232d8]
fstp qword [0x4232d8]
dec word [0x42392c]
add esp, 0x354
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x354
ret