Function at 0x418b50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3b53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xfc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
call fcn.00403f67
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
call fcn.00402b03
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x418bda
push str.::IsWindow_m_hWnd_
push 0x4b821c
push 0
push 0x89e
push 0x4b9b68
push 2
call fcn.00401b45
add esp, 0x18
cmp eax, 1
jne 0x418bda
int3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0xb0]
call fcn.004032b5
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0
jle 0x418cdd
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 1
push eax
lea ecx, [ebp - 0xb0]
call fcn.00403c74
jmp 0x418c35
mov dword [ebp - 4], 1
jmp 0x418c45
lea ecx, [ebp - 0xb0]
call fcn.00404098
test eax, eax
jne 0x418c87
mov dword [ebp - 0xf4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.0040251d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040145b
mov eax, dword [ebp - 0xf4]
jmp 0x418e2b
mov eax, dword [ebp - 0x2c]
add eax, 1
push eax
lea ecx, [ebp - 0xb0]
call fcn.00404098
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x418cdd
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.0040251d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040145b
mov eax, dword [ebp - 0xf8]
jmp 0x418e2b
lea ecx, [ebp - 0xb0]
call fcn.00404098
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x418d00
mov dword [ebp - 0x100], 0
jmp 0x418dad
mov eax, dword [ebp - 0x24]
push eax
call fcn.00401645
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
push 2
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004017ad
add esp, 0xc
test eax, eax
jge 0x418d34
mov dword [ebp - 0x104], 0
jmp 0x418da1
cmp dword [ebp - 0x18], 0x400
jg 0x418d6f
mov eax, dword [ebp - 0x18]
push eax
call fcn.00401f19
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x418d6f
mov eax, dword [ebp - 0x18]
call fcn.004048ea
mov dword [ebp - 0x108], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
jmp 0x418d81
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401474
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
shr edx, 1
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00401f46
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 0x2c], 0
jne 0x418dd1
mov dword [ebp - 0x100], 0
jmp 0x418dfb
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x418de5
mov dword [ebp - 0x104], 1
jmp 0x418def
mov dword [ebp - 0x104], 0
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.0040251d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040145b
mov eax, dword [ebp - 0xfc]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4