Function at 0x406150
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x60]
mov ebp, eax
mov eax, dword [0x40e224]
push 0x30
push edx
xor edi, edi
lea ecx, [esp + 0x68]
push 0x5d
push eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ecx
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0x101b
push ebp
mov dword [esp + 0x30], 0x82
mov dword [esp + 0x3c], edi
call esi
cmp eax, 0xffffffff
jne 0x4061ce
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [0x40e224]
lea edx, [esp + 0x60]
push 0x30
push edx
push 0x5e
push eax
call ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0xb4
push ecx
push 1
push 0x101b
push ebp
mov dword [esp + 0x3c], 1
call esi
cmp eax, 0xffffffff
jne 0x406210
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [0x40e224]
lea edx, [esp + 0x60]
push 0x30
push edx
push 0x5f
push eax
call ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x32
push ecx
push 2
push 0x101b
push ebp
mov dword [esp + 0x3c], 2
call esi
cmp eax, 0xffffffff
jne 0x406252
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [0x40e224]
lea edx, [esp + 0x60]
push 0x30
push edx
push 0x60
push eax
call ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x3c
push ecx
push 3
push 0x101b
push ebp
mov dword [esp + 0x3c], 3
call esi
cmp eax, 0xffffffff
jne 0x406294
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [0x40e224]
lea edx, [esp + 0x60]
push 0x30
push edx
push 0x61
push eax
call ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x51
push ecx
push 4
push 0x101b
push ebp
mov dword [esp + 0x3c], 4
call esi
cmp eax, 0xffffffff
jne 0x4062d6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
push 0x20
push edi
push 0x1036
push ebp
call esi
mov dword [esp + 0x38], 0xd
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x10], edi
mov ebx, 0x40e240
cmp dword [ebx + 0x288], edi
je 0x40641f
push 0x140
call fcn.00407340
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [ebx + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [edx + 0x40]
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x250]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x80]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x188]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xc0]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x1ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x100]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], edx
push ecx
push 0
push 0x1007
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x406458
xor edi, edi
mov edx, dword [esp + 0x10]
add ebx, 0x28c
inc edx
cmp ebx, 0x40f414
mov dword [esp + 0x10], edx
jl 0x406302
mov edx, dword [esp + 0x94]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret