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

Disassembly:
push 0xffffffffffffffff
push 0x663bb0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6d35d0]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
mov edi, ecx
mov dword [edi + 0x30c8], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x13958]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
mov edx, dword [eax + 0x1395c]
lea ebx, [eax + 0x2014]
fdiv qword [0x6a1590]
mov eax, dword [eax + 0xdf480]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], edx
fstp dword [esp + 0x28]
test eax, eax
je 0x409efc
mov eax, dword [eax + 0xc]
jmp 0x409efe
xor eax, eax
mov ecx, dword [eax + 0x2c0]
mov edx, dword [eax + 0x2c4]
lea eax, [edi + 0x20c4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
xor ebp, ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
test ecx, 0xffffff80
jle 0x40a0bb
lea esi, [edi + 0x1c08]
lea ebx, [ebx]
mov edx, dword [edi + 0x30c4]
push edx
mov eax, ebx
call fcn.004759c0
mov edi, dword [esp + 0x1c]
mov ecx, eax
dec ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
mov ebx, ebp
jg 0x40a076
call fcn.0041c2c0
mov ecx, dword [eax]
mov eax, dword [ecx]
cmp dword [esp + 0xf4], ebp
jne 0x409f86
mov edx, dword [eax + 0x74]
jmp 0x409f89
mov edx, dword [eax + 0x78]
call edx
fild dword [esp + 0x24]
fmul qword [0x6a18b0]
fadd qword [0x6a1f50]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.00631650
fmul qword [0x6a1f48]
mov edi, eax
call fcn.00631650
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x2c]
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call edx
mov ebx, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
add ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call edx
mov ebp, dword [eax + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
add ebp, dword [esp + 0x30]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call edx
fild dword [eax]
fmul dword [esp + 0x28]
call fcn.00631650
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov edi, dword [eax]
mov eax, dword [esi]
add edi, dword [esp + 0x20]
mov edx, dword [eax + 0x34]
add edi, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call edx
fild dword [eax + 4]
fmul dword [esp + 0x28]
call fcn.00631650
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x20]
mov edx, dword [esi]
add eax, dword [esp + 0x30]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
mov ebp, dword [esp + 0x24]
jmp 0x40a096
call fcn.0041c2c0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x7c]
call eax
mov edx, dword [esi]
mov eax, 0xffffd8f1
mov ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
inc ebp
sar ecx, 7
add esi, 0x78
cmp ebp, ecx
mov dword [esp + 0x24], ebp
jl 0x409f40
mov eax, dword [edi + 0x3188]
xor esi, esi
cmp eax, esi
je 0x40a0d6
push eax
call fcn.0062cd5b
add esp, 4
mov dword [edi + 0x3188], esi
mov eax, dword [edi + 8]
mov edx, dword [edi + 0x30c4]
add eax, 0x2014
push edx
call fcn.004759c0
mov ecx, dword [esp + 0xf4]
lea ecx, [ecx + ecx*8 + 9]
sub eax, ecx
js 0x40a100
mov eax, 9
jmp 0x40a103
add eax, 9
push eax
call fcn.005ede2b
lea ecx, [edi + 0x25f4]
lea edx, [edi + 0x30a0]
add esp, 4
mov dword [edi + 0x3188], eax
mov dword [esp + 0x4c], esi
lea ebp, [edi + 0x2184]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x54], edx
jmp 0x40a148
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov byte [edi + esi + 0x3070], 0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [edi + 0x30c8]
mov edx, dword [edi + 0x30c4]
lea ecx, [esi + eax*8]
add ecx, eax
push ecx
push edx
mov eax, ebx
call fcn.00475a28
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x30c4]
push eax
mov eax, ebx
call fcn.004759c0
mov ecx, dword [edi + 0x30c8]
lea edx, [esi + ecx*8]
add edx, ecx
cmp edx, eax
jge 0x40a591
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, eax
je 0x40a591
add ecx, 0x3c
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], ecx
sar eax, 6
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 0
test eax, eax
jle 0x40a218
mov dword [esp + 0x20], eax
jmp 0x40a1da
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x24]
mov edi, ecx
call fcn.0040aa40
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + eax*4 + 0x11950], 0
je 0x40a203
mov eax, 1
add dword [esp + 0x44], eax
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jl 0x40a1d6
mov edi, dword [esp + 0x40]
mov ebx, ecx
mov cl, byte [esp + 0x1b]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
mov byte [edi + esi + 0x3070], cl
mov dword [eax - 0x24], edx
mov edx, dword [esp + 0x20]
mov dword [eax], edx
test cl, cl
je 0x40a521
mov eax, dword [edi + 0x30c8]
mov edx, dword [edi + 0x30c4]
lea ecx, [esi + eax*8]
add ecx, eax
push ecx
push edx
mov eax, ebx
call fcn.00475a28
push 0xffffffffffffffff
add eax, 4
push 0
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
call fcn.00404790
xor eax, eax
mov dword [esp + 0xec], eax
test byte [ebx + 0xfbc], 4
je 0x40a33d
cmp dword [ebx + 0x350], eax
jne 0x40a33d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 0xf
push eax
mov byte [ecx + 4], al
lea eax, [esp + 0xc8]
push eax
call fcn.00404790
lea ecx, [esp + 0xdc]
push ecx
push ebx
call fcn.00476c37
mov ebx, dword [esp + 0x1c]
push 0
push 1
mov byte [esp + 0xf4], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x140]
push 0x15
lea eax, [esp + 0xcc]
push eax
mov ecx, ebx
call edx
mov ecx, dword [edi + 0x3188]
mov byte [esi + ecx], al
mov byte [esp + 0xec], 0
cmp dword [esp + 0xd8], 0x10
mov byte [esp + 0x1b], al
jb 0x40a337
mov edx, dword [esp + 0xc4]
push edx
call fcn.0046efcb
mov al, byte [esp + 0x1f]
add esp, 4
test al, al
jne 0x40a35b
jmp 0x40a341
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x140]
push 0
push 1
push 0x15
lea ecx, [esp + 0xb0]
push ecx
mov ecx, ebx
call edx
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x44], eax
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fmul qword [0x6a1f18]
fadd qword [0x6a1f40]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.00631650
fild dword [esp + 0x44]
mov ebx, eax
fmul qword [0x6a1ae8]
fadd qword [0x6a1f38]
fmulp st(1)
call fcn.00631650
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x2c]
push ebx
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
mov ecx, ebp
call eax
mov dword [esp + 0xec], 0xffffffff
cmp dword [esp + 0xbc], 0x10
jb 0x40a440
cmp byte [0xf6273d], 0
je 0x40a3f6
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0062da20
add esp, 4
jmp 0x40a440
mov edx, dword [esp + 0xa8]
mov esi, dword [0xf62698]
push edx
call fcn.0046ee0e
cmp dword [0xf62670], 0
jne 0x40a43c
mov ecx, dword [0xf62698]
mov byte [0xf6273d], 1
test ecx, ecx
je 0x40a42b
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [0xf62698], 0
mov byte [0xf6273d], 0
mov esi, dword [esp + 0x4c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call edx
mov eax, dword [eax]
add eax, dword [esp + 0x2c]
lea ecx, [esp + 0x94]
mov dword [esp + 0x64], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, ebp
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x30]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push ecx
mov ecx, ebp
call edx
fild dword [eax]
fmul dword [esp + 0x28]
call fcn.00631650
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, ebp
call edx
mov ebx, dword [eax]
mov eax, dword [ebp]
add ebx, dword [esp + 0x34]
mov edx, dword [eax + 0x34]
add ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebp
call edx
fild dword [eax + 4]
fmul dword [esp + 0x28]
call fcn.00631650
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x84]
push ecx
mov ecx, ebp
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
add eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x70], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, ebp
call edx
jmp 0x40a5be
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x44], eax
lea eax, [eax + eax*2]
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fmul qword [0x6a1f18]
fadd qword [0x6a1f40]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.00631650
fild dword [esp + 0x44]
mov ebx, eax
fmul qword [0x6a1ae8]
fadd qword [0x6a1f38]
fmulp st(1)
call fcn.00631650
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x2c]
push ebx
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x7c]
mov ecx, ebp
call eax
jmp 0x40a440
add edi, 0x25c8
mov ebx, esi
call fcn.0041c2c0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
mov edx, dword [ebp]
mov eax, 0xffffd8f1
mov ecx, eax
push ecx
push eax
mov eax, dword [edx + 0x2c]
mov ecx, ebp
call eax
mov edi, dword [esp + 0x40]
add dword [esp + 0x54], 4
add dword [esp + 0x1c], 0x94
inc esi
add ebp, 0x78
mov dword [esp + 0x4c], esi
cmp esi, 9
jb 0x40a140
push edi
call fcn.004328b0
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0062c8b8
add esp, 0xdc
ret 4