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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468d34
push eax
mov dword fs:[0], esp
sub esp, 0x444
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 0x4033ef
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x1c], ebx
jne 0x4033ef
mov edi, dword [0x48e41c]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [esp + 0x30], ecx
push edx
push eax
mov ecx, 0x48e418
call fcn.004050d0
cmp dword [esp + 0x18], edi
jne 0x4033be
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 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 + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4033ef
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00404a40
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x28]
call fcn.004046d0
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x45c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..wins
lea ecx, [esp + 0x28]
call fcn.00404410
push 0xa0
call fcn.0045da09
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
cmp esi, ebx
mov byte [esp + 0x45c], 1
je 0x40332e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 0x46f7ac
cmp eax, ebx
je 0x4031a7
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x13]
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00403c40
lea ecx, [esp + 0x37]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x460], 2
call fcn.00403c40
lea ebx, [esi + 0x20]
lea edx, [esp + 0x3a]
push edx
mov ecx, ebx
mov byte [esp + 0x460], 3
call fcn.00403c40
lea eax, [esp + 0x3b]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x460], 4
call fcn.00403c40
lea edx, [esp + 0x39]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x460], 5
call fcn.00403c40
lea eax, [esp + 0x38]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x460], 6
call fcn.00403c40
lea edx, [esp + 0x12]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x460], 7
call fcn.00403c40
lea ecx, [esi + 0x7c]
mov byte [esp + 0x45c], 8
call fcn.00402e60
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.004046d0
mov ecx, dword [esp + 0x14]
mov edi, 0x48e488
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 0x48e488
mov ecx, ebp
call fcn.004046d0
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
mov ecx, ebx
call fcn.004046d0
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esi + 0x30]
call fcn.004046d0
mov edi, 0x48e488
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48e488
lea ecx, [esi + 0x40]
call fcn.004046d0
xor eax, eax
mov edi, 0x48e488
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 0x48e488
lea ecx, [esi + 0x60]
call fcn.004046d0
jmp 0x403330
xor esi, esi
test esi, esi
mov byte [esp + 0x45c], 0
je 0x4033a6
mov ecx, esi
call fcn.00401ec0
mov edx, dword [0x46f7b0]
lea eax, [esp + 0x20]
push edx
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.004044d0
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.004046d0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], 0
call fcn.00404090
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, 0x48e418
call fcn.00403fa0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], 0xffffffff
call fcn.00404a40
jmp 0x4033ef
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x48e400
call fcn.00405990
mov eax, dword [0x48e404]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x4033ef
lea eax, [esp + 0x40]
push ecx
push eax
mov ecx, 0x48e400
call fcn.004054c0
call fcn.00402f90
mov ecx, dword [0x48e404]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x3c], eax
je 0x40368f
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x48e418
mov dword [esp + 0x4c], eax
call fcn.004050d0
mov eax, dword [0x48e41c]
mov esi, dword [esp + 0x1c]
cmp esi, eax
je 0x40366c
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x40365c
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.00404930
cmp eax, dword [0x46f7b0]
je 0x4035a9
mov edx, dword [ebp + 0x74]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
sub edx, 0x3e8
push 0x200
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov cl, byte [esp + 0x12]
push 0
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call fcn.00404a40
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00405b60
test al, al
je 0x4034e8
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x54]
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 + 0x24]
call fcn.00405b40
mov esi, dword [esp + 0x1c]
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 + 0x45c], 9
push ecx
push str..wins
lea ecx, [esp + 0x28]
call fcn.00404410
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x403521
mov eax, 0x46f7ac
mov ecx, dword [esp + 0x24]
cmp ecx, edi
jne 0x40352e
mov ecx, 0x46f7ac
push eax
push ecx
call fcn.00445c80
add esp, 8
mov dword [esp + 0x45c], ebx
test eax, eax
jne 0x403578
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x403567
mov al, byte [ecx - 1]
test al, al
je 0x40355d
cmp al, 0xff
je 0x40355d
dec al
mov byte [ecx - 1], al
jmp 0x403567
dec ecx
push ecx
call fcn.0045da32
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
jmp 0x403674
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x40359d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403594
cmp al, 0xff
je 0x403594
dec al
mov byte [ecx], al
jmp 0x40359d
push ecx
call fcn.0045da32
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov ecx, ebp
call fcn.00401ee0
push ebp
call fcn.00402e70
mov eax, dword [0x48e458]
add esp, 4
cmp eax, ebp
jne 0x4035cc
mov dword [0x48e458], 0
mov dword [esp + 0x14], ebp
push 1
lea ecx, [ebp + 0x60]
mov dword [esp + 0x460], 0xf
call fcn.00404a40
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x460], 0xe
call fcn.00404a40
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x460], 0xd
call fcn.00404a40
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x460], 0xc
call fcn.00404a40
push 1
lea ecx, [ebp + 0x20]
mov byte [esp + 0x460], 0xb
call fcn.00404a40
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x460], 0xa
call fcn.00404a40
push 1
mov ecx, ebp
mov dword [esp + 0x460], 0xffffffff
call fcn.00404a40
push ebp
call fcn.0045da32
add esp, 4
lea eax, [esp + 0x4c]
push esi
push eax
mov ecx, 0x48e418
call fcn.00404cd0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x3c]
call fcn.00407270
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x48e404]
cmp eax, ecx
jne 0x403408
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x450
ret