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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x394
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1e0], edi
je 0x402337
mov al, byte [ebp + 8]
test al, al
je 0x402337
mov eax, dword [esi + 0xa8]
cmp eax, 7
je 0x401f5d
cmp eax, 5
je 0x401f5d
cmp eax, 4
je 0x401f5d
cmp eax, 6
je 0x401f5d
cmp eax, 3
jne 0x4024ff
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x50]
or ebx, 0xffffffff
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x28c4]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x28c4]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
fild dword [esp + 0x50]
lea eax, [esp + 0x58]
lea ecx, [esi + 0x2548]
push eax
push ecx
fidiv dword [esp + 0x88]
mov ecx, esi
mov dword [esp + 0x20], edi
fsub qword [0x46f2a0]
fmul qword [esi + 0xe0]
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
fild dword [esp + 0x5c]
fidiv dword [esp + 0x8c]
fsubr qword [0x46f2a0]
fmul qword [esi + 0xe8]
fmul qword [esi + 0xe0]
fadd qword [esp + 0x48]
fstp qword [esp + 0x48]
call fcn.00402510
lea edx, [esp + 0x190]
mov ecx, esi
push edx
mov dword [esp + 0x60], eax
call fcn.00402c60
mov eax, dword [esi + 0x1e0]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x4024ff
mov dword [esp + 0xc], edi
mov ecx, dword [esi + 0x1dc]
lea eax, [esp + 0x4c]
add ecx, edi
push eax
push ecx
mov ecx, esi
call fcn.00402510
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jne 0x40221d
mov edx, dword [esp + 0x5c]
push ecx
push eax
push edx
call fcn.0046e100
add esp, 0xc
test eax, eax
jne 0x40221d
mov eax, dword [esi + 0x1dc]
add eax, edi
fld qword [eax + 0x208]
fsubr qword [esp + 0x30]
fabs
fld qword [eax + 0x210]
fsubr qword [esp + 0x40]
fabs
fld st(1)
fcomp qword [0x46f2c0]
fnstsw ax
and eax, 0x4100
jne 0x4020b8
fld qword [0x46f2b8]
fsubrp st(2)
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
cmp ebx, 0xffffffff
faddp st(1)
fsqrt
fstp qword [esp + 0x20]
fstp st(0)
fstp st(0)
je 0x4020e4
fld qword [esp + 0x20]
fcomp qword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x40221d
call fcn.00401000
neg al
sbb eax, eax
add eax, 3
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
xor edi, edi
test eax, eax
jle 0x40220f
mov dword [esp + 0x60], str.360x180
mov dword [esp + 0x64], str.360_
mov dword [esp + 0x68], 0x4752a8
mov dword [esp + 0x6c], 0x4752a4
mov dword [esp + 0x70], 0x4752a0
mov dword [esp + 0x74], 0x47529c
call fcn.00401000
mov ecx, dword [esp + edi*4 + 0x6c]
push ecx
mov ecx, dword [esp + 0x10]
test al, al
mov eax, dword [esi + 0x1dc]
lea eax, [ecx + eax + 0x104]
mov ecx, dword [esp + edx*4 + 0x64]
push eax
push ecx
je 0x402178
lea edx, [esp + 0x19c]
lea eax, [esp + 0x94]
push edx
push str._s_s_s._s
push eax
call fcn.0046120f
add esp, 0x18
jmp 0x40218d
lea edx, [esp + 0x94]
push str._s_s._s
push edx
call fcn.0046120f
add esp, 0x14
lea eax, [esp + 0x88]
push eax
call fcn.00401020
add esp, 4
test al, al
je 0x4021b9
cmp edi, 2
jge 0x4021d0
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.0040ac70
test eax, eax
jge 0x4021d2
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x402134
mov ebx, dword [esp + 0x2c]
jmp 0x40220f
xor eax, eax
xor ecx, ecx
mov dl, byte [esp + ecx + 0x88]
mov byte [esp + ecx + 0x298], dl
inc ecx
test dl, dl
jne 0x4021d4
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
cmp edi, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edx
jl 0x40221d
mov edx, dword [esp + 0x10]
inc edx
cmp edx, 3
mov dword [esp + 0x10], edx
jl 0x4020fa
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0x1e0]
inc eax
add edi, 0x240
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
jl 0x402043
cmp ebx, 0xffffffff
je 0x4024ff
mov edx, dword [esi + 0x1dc]
lea ecx, [ebx + ebx*8]
shl ecx, 6
add ecx, edx
mov eax, dword [ecx + 0x208]
mov dword [esi + 0x70], eax
mov edx, dword [ecx + 0x20c]
mov dword [esi + 0x74], edx
mov eax, dword [ecx + 0x210]
mov dword [esi + 0x78], eax
mov edx, dword [ecx + 0x214]
mov dword [esi + 0x7c], edx
mov eax, dword [ecx + 0x218]
mov dword [esi + 0x80], eax
mov edx, dword [ecx + 0x21c]
mov dword [esi + 0x84], edx
mov eax, dword [ecx + 0x220]
mov dword [esi + 0x58], eax
mov edx, dword [ecx + 0x224]
mov dword [esi + 0x5c], edx
mov eax, dword [ecx + 0x228]
mov dword [esi + 0x60], eax
mov edx, dword [ecx + 0x22c]
mov dword [esi + 0x64], edx
fld qword [ecx + 0x230]
fst qword [esp + 0x20]
fstp qword [esi + 0x68]
fld qword [ecx + 0x238]
fcomp qword [0x46f2b0]
fnstsw ax
test ah, 0x44
jp 0x4022f6
fld qword [0x46f290]
fld qword [esi + 0x100]
call fcn.00461ba0
fmul qword [esp + 0x20]
fstp qword [esi + 0x88]
jmp 0x40230e
mov eax, dword [ecx + 0x238]
mov dword [esi + 0x88], eax
mov ecx, dword [ecx + 0x23c]
mov dword [esi + 0x8c], ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x298]
push edx
push 1
mov ecx, esi
push eax
mov dword [esi + 0xa8], 1
call fcn.00404110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00401aa0
call fcn.00401000
test al, al
jne 0x4024af
lea eax, [esi + 0x2548]
lea edx, [esp + 0x88]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40235a
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, ebx
jle 0x4023a2
lea ebx, [esp + 0x88]
dec ebx
movsx ecx, byte [ebx + edi]
push ecx
push 0x475284
call fcn.00461ae0
add esp, 8
test eax, eax
jne 0x4023a0
dec edi
test edi, edi
jg 0x402385
xor ebx, ebx
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str..360
lea edx, [esp + 0x9c]
push 0x475278
push edx
mov byte [esp + edi + 0xa4], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call fcn.00401040
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x28]
add esp, 0x1c
test ebx, ebx
jle 0x402437
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edi, [esi + 0x2548]
mov eax, dword [eax + ecx*4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x402421
test cl, cl
je 0x40241d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x402421
add eax, 2
add edi, 2
test cl, cl
jne 0x4023fd
xor eax, eax
jmp 0x402426
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402437
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x4023ec
mov edi, 1
cmp ebx, edi
jle 0x402469
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, edi
push 0
cdq
idiv ebx
push 1
mov edx, dword [ecx + edx*4]
mov ecx, esi
push edx
call fcn.00404110
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x402469
inc edi
cmp edi, ebx
jl 0x402440
test ebx, ebx
jle 0x40248a
mov eax, dword [esp + 0x10]
dec ebx
mov dword [esp + 0xc], ebx
mov ecx, dword [eax + ebx*4]
push ecx
call fcn.00461a52
mov ebx, dword [esp + 0x10]
add esp, 4
test ebx, ebx
jg 0x40246d
mov edx, dword [esp + 0x10]
dec ebx
push edx
mov dword [esp + 0x10], ebx
call fcn.00461a5d
mov eax, dword [esp + 0x1c]
push eax
call fcn.00461a5d
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.0040ad00
mov edx, dword [esi + 0x294]
mov ecx, dword [esi + 0x28c]
inc edx
mov eax, edx
mov dword [esi + 0x294], edx
cmp eax, ecx
jne 0x4024d6
mov dword [esi + 0x294], edi
mov eax, dword [esi + 0x294]
mov edx, dword [esi + 0x2a8]
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
lea eax, [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 0x118]
push ecx
push 1
mov ecx, esi
push eax
call fcn.00404110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4