Function at 0x405020
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e0dce
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 0x4053f5
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 0x4053f5
mov edi, dword [0x51893c]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
push edx
push eax
mov ecx, 0x518938
call fcn.004078f0
cmp dword [esp + 0x14], edi
jne 0x4053c4
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 0x4053f5
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00407190
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.00406db0
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.00406af0
push 0xc0
call fcn.004d46ce
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
cmp esi, ebx
mov byte [esp + 0x45c], 1
je 0x405341
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0x4ea894
cmp eax, ebx
je 0x405167
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.00407190
lea ecx, [esp + 0x12]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x460], 2
call fcn.004062e0
lea edx, [esp + 0x3b]
lea ecx, [esi + 0x20]
push edx
mov byte [esp + 0x460], 3
call fcn.004062e0
lea eax, [esp + 0x37]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x460], 4
call fcn.004062e0
lea edx, [esp + 0x38]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x460], 5
call fcn.004062e0
lea eax, [esp + 0x39]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x460], 6
call fcn.004062e0
lea edx, [esp + 0x3a]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x460], 7
call fcn.004062e0
lea eax, [esp + 0x13]
lea ecx, [esi + 0x70]
push eax
mov byte [esp + 0x460], 8
call fcn.004062e0
lea ecx, [esi + 0x8c]
mov byte [esp + 0x45c], 9
call fcn.00404c60
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.00406db0
mov edx, dword [esp + 0x20]
mov edi, 0x518908
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 0x518908
mov ecx, ebp
call fcn.00406db0
or ecx, 0xffffffff
mov edi, 0x518908
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esi + 0x20]
call fcn.00406db0
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esi + 0x70]
call fcn.00406db0
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esi + 0x30]
call fcn.00406db0
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esi + 0x40]
call fcn.00406db0
mov edi, 0x518908
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 0x518908
lea ecx, [esi + 0x60]
call fcn.00406db0
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
jmp 0x405343
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x45c], 0
je 0x4053ac
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.00406bb0
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.00406db0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, 0x518938
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
call fcn.00406640
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x460], 0xffffffff
call fcn.00407190
jmp 0x4053f5
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, 0x518920
call fcn.004083f0
mov eax, dword [0x518924]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x4053f5
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x518920
call fcn.00407f20
call fcn.00404d90
mov ecx, dword [0x518924]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x3c], eax
je 0x405777
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x518938
call fcn.004078f0
mov eax, dword [0x51893c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x405755
mov ebp, dword [ecx + 0x10]
cmp ebp, ebx
je 0x405745
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.00407010
cmp eax, dword [0x4ea898]
je 0x40558c
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.00407190
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.004085a0
test al, al
je 0x4054ec
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.00408580
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.00406af0
mov eax, dword [ebp + 4]
xor edi, edi
cmp eax, edi
jne 0x405525
mov eax, 0x4ea894
mov ecx, dword [esp + 0x28]
cmp ecx, edi
jne 0x405532
mov ecx, 0x4ea894
push eax
push ecx
call fcn.004b0b80
add esp, 8
mov dword [esp + 0x45c], ebx
test eax, eax
jne 0x405559
push 1
lea ecx, [esp + 0x28]
call fcn.00407190
xor ebx, ebx
jmp 0x40575c
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40557e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405575
cmp al, 0xff
je 0x405575
dec al
mov byte [ecx], al
jmp 0x40557e
push ecx
call fcn.004d46f7
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 0x40559b
mov eax, 0x4ea894
push str.xmp.exe
push eax
call fcn.004b0b80
add esp, 8
test eax, eax
jne 0x405657
mov ecx, dword [ebp + 0xa0]
cmp ecx, ebx
je 0x405657
cmp dword [ebp + 0xa4], ebx
je 0x405657
call fcn.00402e80
mov ecx, dword [ebp + 0xa0]
call fcn.00402ed0
test eax, eax
jbe 0x4055ee
mov ecx, dword [ebp + 0xa0]
push ecx
call fcn.00404c70
add esp, 4
mov ecx, dword [ebp + 0xa4]
call fcn.00402e80
mov ecx, dword [ebp + 0xa4]
call fcn.00402ed0
test eax, eax
jbe 0x405617
mov edx, dword [ebp + 0xa4]
push edx
call fcn.00404c70
add esp, 4
mov edi, dword [ebp + 0xa4]
cmp edi, ebx
je 0x405631
mov ecx, edi
call fcn.004057a0
push edi
call fcn.004d46f7
add esp, 4
mov edi, dword [ebp + 0xa0]
cmp edi, ebx
je 0x40564b
mov ecx, edi
call fcn.004057a0
push edi
call fcn.004d46f7
add esp, 4
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
mov ecx, ebp
call fcn.00402e80
push ebp
call fcn.00404c70
mov eax, dword [0x518978]
add esp, 4
cmp eax, ebp
jne 0x405676
mov dword [0x518978], ebx
mov dword [esp + 0x20], ebp
mov ecx, dword [ebp + 0xa0]
mov dword [esp + 0x45c], 0x12
cmp ecx, ebx
je 0x405696
push 1
call fcn.00405920
mov ecx, dword [ebp + 0xa4]
cmp ecx, ebx
je 0x4056a7
push 1
call fcn.00405920
push 1
lea ecx, [ebp + 0x70]
mov byte [esp + 0x460], 0x11
call fcn.00407190
push 1
lea ecx, [ebp + 0x60]
mov byte [esp + 0x460], 0x10
call fcn.00407190
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x460], 0xf
call fcn.00407190
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x460], 0xe
call fcn.00407190
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x460], 0xd
call fcn.00407190
push 1
mov ecx, esi
mov byte [esp + 0x460], 0xc
call fcn.00407190
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x460], 0xb
call fcn.00407190
push 1
mov ecx, ebp
mov dword [esp + 0x460], 0xffffffff
call fcn.00407190
push ebp
call fcn.004d46f7
mov ecx, dword [esp + 0x1c]
add esp, 4
lea eax, [esp + 0x44]
push ecx
push eax
mov ecx, 0x518938
call fcn.00407420
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x3c]
call fcn.00409db0
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x518924]
cmp eax, ecx
jne 0x40540e
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