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

Disassembly:
push 0xffffffffffffffff
push 0x68ec49
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x70c004]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70c004]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x138d4]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
mov ecx, dword [ecx + 0x138d8]
mov dword [esp + 0x28], ecx
fdiv qword [0x6cfc58]
mov eax, dword [eax + 8]
lea edx, [esp + 0x68]
push edx
lea ecx, [eax + 0x80918]
fstp dword [esp + 0x24]
call fcn.0046f4f8
mov ecx, eax
call fcn.00474569
mov eax, dword [esi + 8]
mov edi, dword [eax + 8]
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [edi + 0x28da0]
push ebx
push eax
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.00404d30
mov dword [esp + 0xb0], ebx
mov eax, dword [edi + 0x766bc]
mov edx, dword [edi + 0x766c8]
mov ecx, dword [edi + 0x766c0]
mov ebp, dword [edi + 0x766b8]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x766d0]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x766e8]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x766d8]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x766e0]
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x40], edx
mov eax, ebp
mov edx, 0x84
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0060a958
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0xb0], 1
cmp eax, ebx
je 0x413b05
push fcn.004c3654
push fcn.004c35e7
push ebp
lea edi, [eax + 4]
push 0x84
push edi
mov dword [eax], ebp
call fcn.00649b22
mov eax, edi
jmp 0x413b07
xor eax, eax
push ebx
mov byte [esp + 0xb4], bl
mov edx, dword [esi + 0x5ed28]
mov edx, dword [edx + 0x140]
push 1
lea edi, [esi + 0x5ed28]
mov dword [esi + 0x5edbc], eax
push 0x15
lea eax, [esp + 0x94]
push eax
mov ecx, edi
mov dword [esi + 0x5ed24], ebp
call edx
mov eax, 5
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
lea ecx, [esi + 0x5edf4]
call fcn.004c3ce9
xor ebp, ebp
cmp dword [esi + 0x5ed24], ebx
jle 0x413cee
fld dword [0x6d0364]
mov dword [esp + 0x74], 4
fst dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld dword [0x6d0360]
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x84], 5
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fld dword [0x6d0238]
mov dword [esp + 0x50], edx
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
xor edi, edi
mov edx, dword [esi + 0x5edbc]
mov eax, dword [esp + ebp*4 + 0x30]
lea ecx, [edx + edi]
mov edx, dword [esp + 0x74]
push edx
push eax
mov ebx, dword [ecx]
mov edx, 3
push edx
push eax
mov edx, 2
push edx
push eax
mov edx, 1
push edx
push eax
xor edx, edx
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0xac]
push eax
push edx
lea eax, [esi + 0x5ed28]
push eax
mov eax, dword [ebx + 0x84]
call eax
mov ecx, dword [esi + 0x5edbc]
mov edx, dword [ecx + edi]
mov eax, dword [edx + 0x18]
add ecx, edi
xor ebx, ebx
push ebx
call eax
mov ecx, dword [esi + 0x5edbc]
mov edx, dword [ecx + edi]
mov eax, dword [edx + 8]
add ecx, edi
push 1
call eax
mov ecx, dword [esi + 0x5edbc]
mov edx, dword [ecx + edi]
mov eax, dword [edx + 0xc]
add ecx, edi
push ebx
call eax
mov eax, dword [esi + 0x5ed24]
sub eax, 1
je 0x413c70
sub eax, 1
jne 0x413ca6
fld dword [esp + ebp*8 + 0x4c]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.0064b350
fmul dword [esp + ebp*8 + 0x50]
mov dword [esp + 0x18], eax
call fcn.0064b350
push eax
mov eax, dword [esp + 0x1c]
jmp 0x413c95
fld dword [esp + ebp*8 + 0x4c]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.0064b350
fmul dword [esp + ebp*8 + 0x50]
mov dword [esp + 0x78], eax
call fcn.0064b350
push eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x5edbc]
mov edx, dword [ecx + edi]
mov edx, dword [edx + 0x2c]
add ecx, edi
push eax
call edx
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x68]
push eax
push ecx
push ecx
mov ecx, dword [esi + 0x5edbc]
fstp dword [esp]
add ecx, edi
call fcn.004c32e5
mov edx, dword [esi + 0x5edbc]
push ebx
add edx, edi
push edx
lea eax, [esi + 0x5edc0]
push eax
call fcn.0044e770
inc ebp
add edi, 0x84
cmp ebp, dword [esi + 0x5ed24]
jl 0x413bb9
mov eax, dword [esi + 8]
mov dword [esi + 0x5edec], 2
mov eax, dword [eax + 8]
push 0x14
mov edi, 0xf
push str.MsgWinSquareFilename
lea ecx, [esp + 0x38]
mov dword [esi + 0x5edc8], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004051a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0xb8], 2
call fcn.0046f7b8
mov ecx, eax
call fcn.004704b6
push ebx
push 1
mov byte [esp + 0xb8], 3
mov edx, dword [esi + 0x5ebfc]
lea ecx, [esi + 0x5ebfc]
push 0x15
push eax
mov eax, dword [edx + 0x140]
call eax
mov ebp, 0x10
cmp dword [esp + 0x64], ebp
jb 0x413d7d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0045c06d
add esp, 4
mov byte [esp + 0xb0], bl
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x48], ebp
jb 0x413da3
mov edx, dword [esp + 0x34]
push edx
call fcn.0045c06d
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x80118]
mov eax, dword [eax + 0xe8]
mov edx, dword [eax + 0xe8]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [eax + 0x1c]
call fcn.004c4ae4
fild dword [esp + 0x24]
fld dword [esp + 0x20]
fld qword [0x6d0358]
fmul st(1)
fsubp st(2)
fxch st(1)
call fcn.0064b350
fild dword [esp + 0x28]
fld st(1)
mov edi, eax
fmul qword [0x6d0350]
mov dword [esp + 0x24], edi
fsubp st(1)
call fcn.0064b350
push eax
push edi
push ecx
add esi, 0x5ef80
fstp dword [esp]
mov dword [esp + 0x34], eax
call fcn.00454c70
cmp dword [esp + 0xa0], ebp
jb 0x413e29
mov edx, dword [esp + 0x8c]
push edx
call fcn.0045c06d
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00649a98
add esp, 0xa0
ret