Function at 0x405e60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x408
mov eax, dword [0x42f5ac]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
push 0xffffffffffffffeb
push esi
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x424]
mov eax, dword [eax + 8]
cmp eax, 0xffffff31
je 0x405ffe
cmp eax, 0xffffff32
je 0x405f4b
cmp eax, 0xffffff38
jne 0x4061b1
cmp dword [edi + 0x18], ebp
je 0x405eca
cmp dword [edi + 0x34], ebp
je 0x405eca
push 3
jmp 0x405ecc
push 1
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 0
push 0x470
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x4308e0]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0x7e
push edx
call ebx
lea eax, [esp + 0x14]
push eax
push 2
push esi
call edi
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x4308e0]
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0x7d
push edx
call ebx
lea eax, [esp + 0x14]
push eax
push 0x3024
push esi
call edi
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
jmp 0x4061b3
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0x3f0
push esi
call ebp
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call ebx
lea eax, [esp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405f73
sub eax, ecx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x20]
call fcn.004015a0
push 0x400
lea eax, [esp + 0x18]
push eax
push 0x3f2
push esi
call ebp
push eax
call ebx
lea eax, [esp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405fa6
sub eax, ecx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0x58]
call fcn.004015a0
push 0x400
lea edx, [esp + 0x18]
push edx
push 0x3ee
push esi
call ebp
push eax
call ebx
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405fe0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 4]
call fcn.004015a0
xor eax, eax
jmp 0x4061b3
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0x3f0
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x14]
push 0x2f
push edx
call fcn.00411160
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x406091
inc ebp
cmp byte [ebp], 0x3a
jne 0x40605c
lea edx, [ebp + 1]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406041
sub eax, ebx
push eax
push edx
lea ecx, [edi + 0x20]
call fcn.004015a0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x406074
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406061
sub eax, edx
push eax
push ebp
lea ecx, [edi + 0x20]
call fcn.004015a0
lea eax, [esp + 0x14]
mov byte [ebp - 1], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406080
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
jmp 0x406106
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.00411160
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4060e1
inc ebp
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060b0
sub eax, edx
push eax
push ebp
lea ecx, [edi + 0x20]
call fcn.004015a0
lea eax, [esp + 0x14]
mov byte [ebp - 1], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060d0
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x406106
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060e8
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x20]
call fcn.004015a0
push 0
push 0x42663e
lea ecx, [edi + 0x3c]
call fcn.004015a0
push 0x400
lea ecx, [esp + 0x18]
push ecx
push 0x3f2
push esi
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call ebp
lea eax, [esp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406130
sub eax, ecx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x58]
call fcn.004015a0
push 0x400
lea eax, [esp + 0x18]
push eax
push 0x3ee
push esi
call ebx
push eax
call ebp
lea eax, [esp + 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406163
sub eax, ecx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.004015a0
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00405c40
add esp, 8
test eax, eax
je 0x405f44
push 0x3f0
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, 1
jmp 0x4061b3
mov eax, ebp
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004107c5
add esp, 0x408
ret