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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b134
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 0x4033ec
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x3c], ebx
jne 0x4033ec
mov edi, dword [0x4906bc]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], ecx
push edx
push eax
mov ecx, 0x4906b8
call fcn.004050e0
cmp dword [eax], edi
jne 0x4033bc
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 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 0x4033ec
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00404a20
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.004046b0
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.004043f0
push 0xa0
call fcn.0045fe04
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov byte [esp + 0x458], 1
je 0x40332c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], 0x4717b4
cmp eax, ebx
je 0x4031a5
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x12]
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00403c60
lea ecx, [esp + 0x33]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x45c], 2
call fcn.00403c60
lea ebx, [esi + 0x20]
lea edx, [esp + 0x36]
push edx
mov ecx, ebx
mov byte [esp + 0x45c], 3
call fcn.00403c60
lea eax, [esp + 0x35]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x45c], 4
call fcn.00403c60
lea edx, [esp + 0x37]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x45c], 5
call fcn.00403c60
lea eax, [esp + 0x34]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x45c], 6
call fcn.00403c60
lea edx, [esp + 0x13]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x45c], 7
call fcn.00403c60
lea ecx, [esi + 0x7c]
mov byte [esp + 0x458], 8
call fcn.00402e60
mov edi, dword [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x40]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.004046b0
mov ecx, dword [esp + 0x14]
mov edi, 0x490728
mov dword [esi + 0x74], ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x70], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
mov ecx, ebp
call fcn.004046b0
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
mov ecx, ebx
call fcn.004046b0
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esi + 0x30]
call fcn.004046b0
mov edi, 0x490728
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esi + 0x40]
call fcn.004046b0
xor eax, eax
mov edi, 0x490728
or ecx, 0xffffffff
mov dword [esi + 0x78], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x88], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x490728
lea ecx, [esi + 0x60]
call fcn.004046b0
jmp 0x40332e
xor esi, esi
test esi, esi
mov byte [esp + 0x458], 0
je 0x4033a4
mov ecx, esi
call fcn.00401ec0
mov edx, dword [0x4717b8]
lea eax, [esp + 0x1c]
push edx
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.004044b0
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.004046b0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x1c], 0
call fcn.00404070
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, 0x4906b8
call fcn.00403f80
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00404a20
jmp 0x4033ec
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x4906a0
call fcn.004059f0
mov eax, dword [eax]
mov ecx, dword [0x4906a4]
cmp eax, ecx
je 0x4033ec
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, 0x4906a0
call fcn.00405520
call fcn.00402f90
mov ecx, dword [0x4906a4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x40368e
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x4906b8
mov dword [esp + 0x1c], eax
call fcn.004050e0
mov esi, dword [eax]
mov eax, dword [0x4906bc]
cmp esi, eax
mov dword [esp + 0x18], esi
je 0x40366b
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x40365b
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.00404910
cmp eax, dword [0x4717b8]
je 0x4035a8
mov edx, dword [ebp + 0x74]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
sub edx, 0x3e8
push 0x200
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00404a20
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.00405bc0
test al, al
je 0x4034e7
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00405ba0
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], 9
push ecx
push str..wins
lea ecx, [esp + 0x24]
call fcn.004043f0
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x403520
mov eax, 0x4717b4
mov ecx, dword [esp + 0x20]
cmp ecx, edi
jne 0x40352d
mov ecx, 0x4717b4
push eax
push ecx
call fcn.00448080
add esp, 8
mov dword [esp + 0x458], ebx
test eax, eax
jne 0x403577
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x403566
mov al, byte [ecx - 1]
test al, al
je 0x40355c
cmp al, 0xff
je 0x40355c
dec al
mov byte [ecx - 1], al
jmp 0x403566
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jmp 0x403673
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x40359c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403593
cmp al, 0xff
je 0x403593
dec al
mov byte [ecx], al
jmp 0x40359c
push ecx
call fcn.0045fe2d
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, ebp
call fcn.00401ee0
push ebp
call fcn.00402e70
mov eax, dword [0x4906f8]
add esp, 4
cmp eax, ebp
jne 0x4035cb
mov dword [0x4906f8], 0
mov dword [esp + 0x18], ebp
push 1
lea ecx, [ebp + 0x60]
mov dword [esp + 0x45c], 0xf
call fcn.00404a20
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x45c], 0xe
call fcn.00404a20
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x45c], 0xd
call fcn.00404a20
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x45c], 0xc
call fcn.00404a20
push 1
lea ecx, [ebp + 0x20]
mov byte [esp + 0x45c], 0xb
call fcn.00404a20
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x45c], 0xa
call fcn.00404a20
push 1
mov ecx, ebp
mov dword [esp + 0x45c], 0xffffffff
call fcn.00404a20
push ebp
call fcn.0045fe2d
add esp, 4
lea eax, [esp + 0x40]
push esi
push eax
mov ecx, 0x4906b8
call fcn.00404ce0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x38]
call fcn.00407320
mov ecx, dword [0x4906a4]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x403405
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