Function at 0x403360
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467625
push eax
mov dword fs:[0], esp
sub esp, 0x440
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4036b1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x18], ebx
jne 0x4036b1
mov edi, dword [0x486664]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], ecx
push edx
push eax
mov ecx, 0x486660
call fcn.004062e0
cmp dword [esp + 0x14], edi
jne 0x403680
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push ecx
push 0x1f4
push ebx
push edx
push 0x3fc
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4036b1
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00405c50
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405aa0
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x458], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..wins
lea ecx, [esp + 0x24]
call fcn.004057e0
push 0x90
call fcn.00460f0e
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov byte [esp + 0x458], 1
je 0x4035f8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 0x46c630
cmp eax, ebx
je 0x4034a7
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x12]
push eax
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.00404d60
lea ecx, [esp + 0x30]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x45c], 2
call fcn.00404d60
lea ebx, [esi + 0x20]
lea edx, [esp + 0x33]
push edx
mov ecx, ebx
mov byte [esp + 0x45c], 3
call fcn.00404d60
lea eax, [esp + 0x32]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x45c], 4
call fcn.00404d60
lea edx, [esp + 0x31]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x45c], 5
call fcn.00404d60
lea eax, [esp + 0x13]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x45c], 6
call fcn.00404d60
lea ecx, [esi + 0x6c]
mov byte [esp + 0x458], 7
call fcn.004019f0
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00405aa0
mov edx, dword [esp + 0x34]
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
mov ecx, ebp
call fcn.00405aa0
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
mov ecx, ebx
call fcn.00405aa0
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
lea ecx, [esi + 0x30]
call fcn.00405aa0
mov edi, 0x4868b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4868b4
lea ecx, [esi + 0x40]
call fcn.00405aa0
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
jmp 0x4035fa
xor esi, esi
test esi, esi
mov byte [esp + 0x458], 0
je 0x403668
mov ecx, esi
call fcn.00404cc0
mov eax, dword [0x46c634]
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
lea ecx, [esi + 0x20]
call fcn.004058a0
mov edi, str.0.0.0.0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.0.0.0.0
lea ecx, [esi + 0x10]
call fcn.00405aa0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, 0x486660
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
call fcn.004050f0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00405c50
jmp 0x4036b1
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, 0x486638
call fcn.00406e60
mov eax, dword [0x48663c]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
je 0x4036b1
push ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0x486638
call fcn.00406990
call fcn.00402a80
mov ecx, dword [0x48663c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x403900
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x486660
call fcn.004062e0
mov eax, dword [0x486664]
mov esi, dword [esp + 0x18]
cmp esi, eax
je 0x4038dd
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x4038cd
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str..wins
mov ecx, ebp
call fcn.00405b40
cmp eax, dword [0x46c634]
je 0x403866
mov edx, dword [ebp + 0x64]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
sub edx, 0x3e8
push 0x200
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.00405c50
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.00407310
test al, al
je 0x4037aa
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.004072f0
mov esi, dword [esp + 0x18]
or ebx, 0xffffffff
mov edi, str..wins
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x458], 8
push ecx
push str..wins
lea ecx, [esp + 0x24]
call fcn.004057e0
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x4037e3
mov eax, 0x46c630
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jne 0x4037f0
mov ecx, 0x46c630
push eax
push ecx
call fcn.004439d0
mov ecx, dword [esp + 0x28]
add esp, 8
test eax, eax
mov dword [esp + 0x458], ebx
jne 0x40383a
cmp ecx, edi
je 0x403829
mov al, byte [ecx - 1]
test al, al
je 0x40381f
cmp al, 0xff
je 0x40381f
dec al
mov byte [ecx - 1], al
jmp 0x403829
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jmp 0x4038e5
cmp ecx, edi
je 0x40385a
mov al, byte [ecx - 1]
test al, al
je 0x403850
cmp al, 0xff
je 0x403850
dec al
mov byte [ecx - 1], al
jmp 0x40385a
dec ecx
push ecx
call fcn.00460f37
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, ebp
call fcn.00404ce0
push ebp
call fcn.00402e90
mov eax, dword [0x486648]
add esp, 4
cmp eax, ebp
jne 0x403889
mov dword [0x486648], 0
push 1
lea ecx, [ebp + 0x50]
call fcn.00405c50
push 1
lea ecx, [ebp + 0x40]
call fcn.00405c50
push 1
lea ecx, [ebp + 0x30]
call fcn.00405c50
push 1
lea ecx, [ebp + 0x20]
call fcn.00405c50
push 1
lea ecx, [ebp + 0x10]
call fcn.00405c50
push 1
mov ecx, ebp
call fcn.00405c50
push ebp
call fcn.00460f37
add esp, 4
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, 0x486660
call fcn.00405ee0
push 0
call dword [0x46c208]
lea ecx, [esp + 0x38]
call fcn.004083e0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x48663c]
cmp eax, ecx
jne 0x4036ca
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x44c
ret