Function at 0x404fe5
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414d4c
call fcn.0040a32c
sub esp, 0x140
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x46c], 0
je 0x4050ad
push 0x4181c0
lea ecx, [ebp - 0x18]
call fcn.0040102d
mov edi, eax
and dword [ebp - 4], 0
lea eax, [esi + 0x47c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x470]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00401451
push edi
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.00401451
add esp, 0x18
lea ebx, [esi + 0x50c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004010c2
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004010b2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
jmp 0x405205
cmp byte [esi + 0x23c], 0
je 0x405163
push 0x4183c4
lea ecx, [ebp - 0x48]
call fcn.0040102d
mov edi, eax
lea eax, [esi + 0x47c]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 5
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x470]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call fcn.00401451
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.00401451
add esp, 0x18
lea ebx, [esi + 0x50c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.004010c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004010b2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
jmp 0x405205
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0040102d
mov edi, eax
lea eax, [esi + 0x47c]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 0xa
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x470]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push eax
call fcn.00401451
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
call fcn.00401451
add esp, 0x18
lea ebx, [esi + 0x50c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.004010c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.004010b2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004010b2
and byte [ebp - 0x14c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x14b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14c]
push eax
push dword [esi + 0x4f0]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040102d
push ebx
push eax
mov dword [ebp - 4], 0xf
call fcn.00401427
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov byte [ebp + 0xb], al
lea ecx, [ebp - 0x18]
call fcn.004010b2
cmp byte [ebp + 0xb], 0
je 0x405281
mov ecx, ebx
call fcn.00401170
push eax
push dword [esi + 0x4f0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4