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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dfc21
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 0x404ec9
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 0x404ec9
mov edi, dword [0x51737c]
lea ecx, [esi + 0x3e8]
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
push edx
push eax
mov ecx, 0x517378
call fcn.00407210
cmp dword [esp + 0x14], edi
jne 0x404e98
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 0x404ec9
mov al, byte [esp + 0x12]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00406ab0
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 + 0x2c]
call fcn.00406740
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 + 0x2c]
call fcn.00406480
push 0xac
call fcn.004d35be
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov byte [esp + 0x458], 1
je 0x404e14
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 0x4e9894
cmp eax, ebx
je 0x404c77
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x12]
push ebx
mov ecx, esi
mov dword [esp + 0x1c], edx
mov byte [esi], al
call fcn.00406ab0
lea ecx, [esp + 0x12]
lea ebp, [esi + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x45c], 2
call fcn.00405c70
lea ebx, [esi + 0x20]
lea edx, [esp + 0x37]
push edx
mov ecx, ebx
mov byte [esp + 0x45c], 3
call fcn.00405c70
lea eax, [esp + 0x36]
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x45c], 4
call fcn.00405c70
lea edx, [esp + 0x35]
lea ecx, [esi + 0x40]
push edx
mov byte [esp + 0x45c], 5
call fcn.00405c70
lea eax, [esp + 0x34]
lea ecx, [esi + 0x50]
push eax
mov byte [esp + 0x45c], 6
call fcn.00405c70
lea edx, [esp + 0x13]
lea ecx, [esi + 0x60]
push edx
mov byte [esp + 0x45c], 7
call fcn.00405c70
lea ecx, [esi + 0x7c]
mov byte [esp + 0x458], 8
call fcn.004047e0
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.00406740
mov ecx, dword [esp + 0x18]
mov edi, 0x517348
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 0x517348
mov ecx, ebp
call fcn.00406740
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
mov ecx, ebx
call fcn.00406740
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
lea ecx, [esi + 0x30]
call fcn.00406740
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
lea ecx, [esi + 0x40]
call fcn.00406740
xor ebx, ebx
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
lea ecx, [esi + 0x60]
call fcn.00406740
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
jmp 0x404e16
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x458], 0
je 0x404e80
mov ecx, esi
call fcn.00402d50
mov edx, dword [0x4e9898]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
lea ecx, [esi + 0x20]
call fcn.00406540
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.00406740
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x40]
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
push edx
push eax
mov ecx, 0x517378
mov dword [esp + 0x4c], ebx
call fcn.00405fd0
mov eax, dword [eax]
mov dword [eax + 0x10], esi
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x45c], 0xffffffff
call fcn.00406ab0
jmp 0x404ec9
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x517360
call fcn.00407d10
mov eax, dword [0x517364]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x404ec9
lea eax, [esp + 0x3c]
push ecx
push eax
mov ecx, 0x517360
call fcn.00407840
call fcn.00404910
mov ecx, dword [0x517364]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x4052e4
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, 0x517378
mov dword [esp + 0x50], eax
call fcn.00407210
mov eax, dword [0x51737c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x4052c2
mov ebp, dword [ecx + 0x10]
cmp ebp, ebx
je 0x4052b2
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.004069a0
cmp eax, dword [0x4e9898]
je 0x40505d
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 ebx
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call fcn.00406ab0
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 + 0x28]
push ebx
call fcn.00407ec0
test al, al
je 0x404fbd
mov edi, dword [esp + 0x28]
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 + 0x28]
call fcn.00407ea0
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 + 0x2c]
call fcn.00406480
mov eax, dword [ebp + 4]
xor esi, esi
cmp eax, esi
jne 0x404ff6
mov eax, 0x4e9894
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jne 0x405003
mov ecx, 0x4e9894
push eax
push ecx
call fcn.004af770
add esp, 8
mov dword [esp + 0x458], ebx
test eax, eax
jne 0x40502a
push 1
lea ecx, [esp + 0x28]
call fcn.00406ab0
xor ebx, ebx
jmp 0x4052c9
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x40504f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x405046
cmp al, 0xff
je 0x405046
dec al
mov byte [ecx], al
jmp 0x40504f
push ecx
call fcn.004d35e7
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
xor ebx, ebx
mov eax, dword [ebp + 0x24]
lea edi, [ebp + 0x20]
cmp eax, ebx
jne 0x40506c
mov eax, 0x4e9894
push str.xmp.exe
push eax
call fcn.004af770
add esp, 8
test eax, eax
jne 0x4051d6
mov ecx, dword [ebp + 0x90]
cmp ecx, ebx
je 0x4051d6
cmp dword [ebp + 0x94], ebx
je 0x4051d6
call fcn.00402db0
mov ecx, dword [ebp + 0x90]
call fcn.00402e00
test eax, eax
jbe 0x4050bf
mov eax, dword [ebp + 0x90]
push eax
call fcn.004047f0
add esp, 4
mov ecx, dword [ebp + 0x94]
call fcn.00402db0
mov ecx, dword [ebp + 0x94]
call fcn.00402e00
test eax, eax
jbe 0x4050e8
mov ecx, dword [ebp + 0x94]
push ecx
call fcn.004047f0
add esp, 4
mov esi, dword [ebp + 0x94]
cmp esi, ebx
je 0x405102
mov ecx, esi
call fcn.00405310
push esi
call fcn.004d35e7
add esp, 4
mov esi, dword [ebp + 0x90]
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x4051ca
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x458], 0x10
cmp ecx, ebx
je 0x405130
push 1
call fcn.00405480
mov ecx, dword [esi + 0x94]
cmp ecx, ebx
je 0x405141
push 1
call fcn.00405480
push 1
lea ecx, [esi + 0x60]
mov byte [esp + 0x45c], 0xf
call fcn.00406ab0
push 1
lea ecx, [esi + 0x50]
mov byte [esp + 0x45c], 0xe
call fcn.00406ab0
push 1
lea ecx, [esi + 0x40]
mov byte [esp + 0x45c], 0xd
call fcn.00406ab0
push 1
lea ecx, [esi + 0x30]
mov byte [esp + 0x45c], 0xc
call fcn.00406ab0
push 1
lea ecx, [esi + 0x20]
mov byte [esp + 0x45c], 0xb
call fcn.00406ab0
push 1
lea ecx, [esi + 0x10]
mov byte [esp + 0x45c], 0xa
call fcn.00406ab0
push 1
mov ecx, esi
mov dword [esp + 0x45c], 0xffffffff
call fcn.00406ab0
push esi
call fcn.004d35e7
add esp, 4
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
mov ecx, ebp
call fcn.00402db0
push ebp
call fcn.004047f0
mov eax, dword [0x5173b8]
add esp, 4
cmp eax, ebp
jne 0x4051f5
mov dword [0x5173b8], ebx
mov dword [esp + 0x18], ebp
mov ecx, dword [ebp + 0x90]
mov dword [esp + 0x458], 0x17
cmp ecx, ebx
je 0x405215
push 1
call fcn.00405480
mov ecx, dword [ebp + 0x94]
cmp ecx, ebx
je 0x405226
push 1
call fcn.00405480
push 1
lea ecx, [ebp + 0x60]
mov byte [esp + 0x45c], 0x16
call fcn.00406ab0
push 1
lea ecx, [ebp + 0x50]
mov byte [esp + 0x45c], 0x15
call fcn.00406ab0
push 1
lea ecx, [ebp + 0x40]
mov byte [esp + 0x45c], 0x14
call fcn.00406ab0
push 1
lea ecx, [ebp + 0x30]
mov byte [esp + 0x45c], 0x13
call fcn.00406ab0
push 1
mov ecx, edi
mov byte [esp + 0x45c], 0x12
call fcn.00406ab0
push 1
lea ecx, [ebp + 0x10]
mov byte [esp + 0x45c], 0x11
call fcn.00406ab0
push 1
mov ecx, ebp
mov dword [esp + 0x45c], 0xffffffff
call fcn.00406ab0
push ebp
call fcn.004d35e7
mov ecx, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, 0x517378
call fcn.00406d40
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x38]
call fcn.004096d0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x517364]
cmp eax, ecx
jne 0x404ee2
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