Function at 0x405010
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e0c6e
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 0x4053e5
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 0x4053e5
mov edi, dword [0x51891c]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push edx
push eax
mov ecx, 0x518918
call fcn.004078e0
cmp dword [esp + 0x14], edi
jne 0x4053b4
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 0x4053e5
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00407180
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 + 0x2c]
call fcn.00406da0
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 + 0x2c]
call fcn.00406ae0
push 0xc0
call fcn.004d456e
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
cmp esi, ebx
mov byte [esp + 0x45c], 1
je 0x405331
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0x4ea894
cmp eax, ebx
je 0x405157
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x12]
push ebx
mov ecx, esi
mov dword [esp + 0x24], edx
mov byte [esi], al
call fcn.00407180
lea ecx, [esp + 0x12]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x460], 2
call fcn.004062d0
lea edx, [esp + 0x3b]
lea ecx, [esi + 0x20]
push edx
mov byte [esp + 0x460], 3
call fcn.004062d0
lea eax, [esp + 0x37]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x460], 4
call fcn.004062d0
lea edx, [esp + 0x38]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x460], 5
call fcn.004062d0
lea eax, [esp + 0x39]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x460], 6
call fcn.004062d0
lea edx, [esp + 0x3a]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x460], 7
call fcn.004062d0
lea eax, [esp + 0x13]
lea ecx, [esi + 0x70]
push eax
mov byte [esp + 0x460], 8
call fcn.004062d0
lea ecx, [esi + 0x8c]
mov byte [esp + 0x45c], 9
call fcn.00404c50
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.00406da0
mov edx, dword [esp + 0x20]
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
mov ecx, ebp
call fcn.00406da0
or ecx, 0xffffffff
mov edi, 0x5188e8
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esi + 0x20]
call fcn.00406da0
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esi + 0x70]
call fcn.00406da0
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esi + 0x30]
call fcn.00406da0
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esi + 0x40]
call fcn.00406da0
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esi + 0x60]
call fcn.00406da0
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
jmp 0x405333
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x45c], 0
je 0x40539c
mov ecx, esi
call fcn.00402e20
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x24]
push eax
push ebx
push ecx
lea ecx, [esi + 0x20]
call fcn.00406ba0
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.00406da0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, 0x518918
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
call fcn.00406630
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x460], 0xffffffff
call fcn.00407180
jmp 0x4053e5
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, 0x518900
call fcn.004083e0
mov eax, dword [0x518904]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x4053e5
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x518900
call fcn.00407f10
call fcn.00404d80
mov ecx, dword [0x518904]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x3c], eax
je 0x405767
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x518918
call fcn.004078e0
mov eax, dword [0x51891c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x405745
mov ebp, dword [ecx + 0x10]
cmp ebp, ebx
je 0x405735
mov edi, str..wins
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push str..wins
mov ecx, ebp
call fcn.00407000
cmp eax, dword [0x4ea898]
je 0x40557c
mov edx, dword [ebp + 0x84]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x54]
sub edx, 0x3e8
push 0x200
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.00407180
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 + 0x28]
push ebx
call fcn.00408590
test al, al
je 0x4054dc
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x54]
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 + 0x28]
call fcn.00408570
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], 0xa
push ecx
push str..wins
lea ecx, [esp + 0x2c]
call fcn.00406ae0
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x405515
mov eax, 0x4ea894
mov ecx, dword [esp + 0x28]
cmp ecx, edi
jne 0x405522
mov ecx, 0x4ea894
push eax
push ecx
call fcn.004b0a20
add esp, 8
mov dword [esp + 0x45c], ebx
test eax, eax
jne 0x405549
push 1
lea ecx, [esp + 0x28]
call fcn.00407180
xor ebx, ebx
jmp 0x40574c
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40556e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405565
cmp al, 0xff
je 0x405565
dec al
mov byte [ecx], al
jmp 0x40556e
push ecx
call fcn.004d4597
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
xor ebx, ebx
mov eax, dword [ebp + 0x24]
lea esi, [ebp + 0x20]
cmp eax, ebx
jne 0x40558b
mov eax, 0x4ea894
push str.xmp.exe
push eax
call fcn.004b0a20
add esp, 8
test eax, eax
jne 0x405647
mov ecx, dword [ebp + 0xa0]
cmp ecx, ebx
je 0x405647
cmp dword [ebp + 0xa4], ebx
je 0x405647
call fcn.00402e80
mov ecx, dword [ebp + 0xa0]
call fcn.00402ed0
test eax, eax
jbe 0x4055de
mov ecx, dword [ebp + 0xa0]
push ecx
call fcn.00404c60
add esp, 4
mov ecx, dword [ebp + 0xa4]
call fcn.00402e80
mov ecx, dword [ebp + 0xa4]
call fcn.00402ed0
test eax, eax
jbe 0x405607
mov edx, dword [ebp + 0xa4]
push edx
call fcn.00404c60
add esp, 4
mov edi, dword [ebp + 0xa4]
cmp edi, ebx
je 0x405621
mov ecx, edi
call fcn.00405790
push edi
call fcn.004d4597
add esp, 4
mov edi, dword [ebp + 0xa0]
cmp edi, ebx
je 0x40563b
mov ecx, edi
call fcn.00405790
push edi
call fcn.004d4597
add esp, 4
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
mov ecx, ebp
call fcn.00402e80
push ebp
call fcn.00404c60
mov eax, dword [0x518958]
add esp, 4
cmp eax, ebp
jne 0x405666
mov dword [0x518958], ebx
mov dword [esp + 0x20], ebp
mov ecx, dword [ebp + 0xa0]
mov dword [esp + 0x45c], 0x12
cmp ecx, ebx
je 0x405686
push 1
call fcn.00405910
mov ecx, dword [ebp + 0xa4]
cmp ecx, ebx
je 0x405697
push 1
call fcn.00405910
push 1
lea ecx, [ebp + 0x70]
mov byte [esp + 0x460], 0x11
call fcn.00407180
push 1
lea ecx, [ebp + 0x60]
mov byte [esp + 0x460], 0x10
call fcn.00407180
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x460], 0xf
call fcn.00407180
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x460], 0xe
call fcn.00407180
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x460], 0xd
call fcn.00407180
push 1
mov ecx, esi
mov byte [esp + 0x460], 0xc
call fcn.00407180
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x460], 0xb
call fcn.00407180
push 1
mov ecx, ebp
mov dword [esp + 0x460], 0xffffffff
call fcn.00407180
push ebp
call fcn.004d4597
mov ecx, dword [esp + 0x1c]
add esp, 4
lea eax, [esp + 0x44]
push ecx
push eax
mov ecx, 0x518918
call fcn.00407410
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x3c]
call fcn.00409da0
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x518904]
cmp eax, ecx
jne 0x4053fe
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