Function at 0x404a58
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xb4
mov ecx, dword [ebp + 0x78]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
mov ebx, eax
lea eax, [ebp + 0x78]
push eax
lea esi, [ebp + 0x64]
call fcn.00401d41
test al, al
je 0x40507d
mov edx, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x64]
push edx
mov eax, ecx
call fcn.00401b5b
mov dword [ebp + 0x78], eax
mov eax, edi
mov ecx, dword [eax + ecx*4 + 0x44c]
mov esi, dword [ecx + edx*4 + 0x44]
or dword [ebx], 0xffffffff
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 0x68], eax
movzx eax, byte [esi + 0x78]
cmp eax, 0x11
mov dword [ebp + 0x60], ecx
jg 0x404de6
je 0x404d1e
cmp eax, 0xa
jg 0x404ba3
je 0x404b65
xor esi, esi
sub eax, esi
je 0x404b2f
dec eax
je 0x404af1
sub eax, 7
jne 0x404ec8
push esi
push esi
push 0x408
jmp 0x405098
push esi
push esi
push 0x188
push dword [ebp + 0x68]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ec8
push esi
push ebx
push 0x18a
push dword [ebp + 0x68]
call edi
inc eax
push eax
call fcn.0043f7a8
pop ecx
mov esi, eax
push esi
push ebx
push 0x189
push dword [ebp + 0x68]
call edi
jmp 0x404e64
push esi
push esi
push 0x147
push dword [ebp + 0x68]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ec8
push esi
push ebx
push 0x149
push dword [ebp + 0x68]
call edi
inc eax
push eax
call fcn.0043f7a8
pop ecx
mov esi, eax
push esi
push ebx
push 0x148
jmp 0x404b25
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x130b
push dword [ebp + 0x68]
call esi
cmp byte [ebp + 0x7c], 0
mov dword [ebx], eax
je 0x4050a3
lea ecx, [ebp - 0x48]
push ecx
push eax
push 0x1305
push dword [ebp + 0x68]
mov dword [ebp - 0x48], 8
call esi
mov eax, dword [ebp - 0x30]
jmp 0x4050a1
cmp eax, 0xc
je 0x40507d
cmp eax, 0xd
jle 0x404ec6
cmp eax, 0xf
jle 0x404c4d
cmp eax, 0x10
jne 0x404ec6
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push 9
push 0x110a
push dword [ebp + 0x68]
mov dword [ebx], edi
call esi
cmp eax, edi
je 0x4050a3
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x38], 4
je 0x404c2e
push 0x1000
call fcn.0043f7a8
pop ecx
mov ebx, eax
lea eax, [ebp + 0x38]
push eax
push edi
push 0x110c
push dword [ebp + 0x68]
mov dword [ebp + 0x38], 1
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0xfff
call esi
jmp 0x404d7b
push ebx
jmp 0x404f99
lea eax, [ebp + 0x38]
push eax
push edi
push 0x110c
push dword [ebp + 0x68]
call esi
test eax, eax
je 0x4050a3
mov eax, dword [ebp + 0x5c]
jmp 0x4050a1
cmp dword [ecx + 0x4150], 0
jne 0x404c63
cmp dword [ecx + 0x4154], 0
jne 0x4050a3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x4050a3
mov edi, 0x104
push edi
call fcn.0043f7a8
cmp byte [ebp + 0x7c], 0
pop ecx
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x2c], 0x2c
je 0x404cc5
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp + 0x78]
mov dword [ebp - 0x28], 0x10
push dword [esi + 4]
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
jne 0x404cbd
and dword [ebx], eax
push dword [ebp + 0x74]
jmp 0x404f99
mov eax, dword [ebp + 0x74]
jmp 0x4050a5
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp + 0x78]
xor edi, edi
push dword [esi + 4]
inc edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x404cb5
mov eax, dword [ebp - 0x20]
mov cl, al
and cl, 3
neg cl
mov dword [ebx], eax
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
test ax, 0x8080
je 0x404d01
or ecx, 0x100
test al, 8
je 0x404d09
or ecx, edi
jmp 0x404d0c
or ecx, 4
test ah, 0x10
je 0x404d17
or ecx, 0x200
mov dword [ebx], ecx
jmp 0x4050a3
mov eax, dword [esi + 8]
xor edi, edi
push 0xfffffffffffffff0
mov dword [ebx], edi
push dword [esi + 0x24]
mov dword [ebp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp byte [ebp + 0x7c], 0
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x38], 8
mov dword [ebp + 0x44], 0xf000
je 0x404d8a
push 0x1000
call fcn.0043f7a8
pop ecx
mov ebx, eax
lea eax, [ebp + 0x38]
push eax
push edi
push 0x110c
push dword [esi + 0x24]
mov dword [ebp + 0x38], 1
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0xfff
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x404c28
mov eax, ebx
jmp 0x4050a5
lea eax, [ebp + 0x38]
push eax
push edi
push 0x110c
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4050a3
mov ecx, dword [ebp + 0x40]
mov eax, 0x100
test dword [ebp + 0x78], eax
je 0x404dc4
mov edx, ecx
shr edx, 0xc
dec edx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 4
mov dword [ebx], edx
test cl, 2
je 0x404dcb
or dword [ebx], eax
test cl, 0x20
je 0x404dd4
or byte [ebx + 1], 4
test cl, 0x10
je 0x4050a3
or byte [ebx + 1], 2
jmp 0x4050a3
cmp eax, 0x12
je 0x40508f
cmp eax, 0x13
je 0x405031
cmp eax, 0x14
je 0x404f13
cmp eax, 0x15
je 0x404eef
cmp eax, 0x18
jle 0x404ec6
cmp eax, 0x1a
jle 0x404e6b
cmp eax, 0x1c
jne 0x404ec6
lea eax, [ebp]
push eax
push 0
push 0x1001
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40507d
push 0xb
call fcn.0043f7a8
mov esi, eax
movzx eax, word [ebp + 6]
push eax
movzx eax, word [ebp + 2]
push eax
movzx eax, word [ebp]
push eax
push str._d__02d__02d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, esi
jmp 0x4050a5
cmp byte [ebp + 0x7c], 0
push 0
push 0
je 0x404ea3
push 0xe
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
inc esi
push esi
call fcn.0043f7a8
pop ecx
push esi
mov edi, eax
push edi
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x404ee8
and dword [ebx], eax
push edi
jmp 0x404f99
push 0xf0
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [ebx], eax
jne 0x4050a3
mov dword [ebx], 4
jmp 0x4050a3
xor esi, esi
push esi
push esi
push 0xe
push dword [ebp + 0x68]
call edi
mov esi, eax
inc esi
push esi
call fcn.0043f7a8
pop ecx
push esi
mov edi, eax
push edi
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x4050a5
add esi, 0x50
mov eax, esi
call fcn.00416f92
test al, al
je 0x404f07
call fcn.00415a00
jmp 0x4050a5
mov eax, esi
call fcn.00415ad5
jmp 0x4050a1
mov eax, dword [esi + 0x24]
or dword [ebx], 0xffffffff
push 0xffffffffffffffec
push eax
mov dword [ebp + 0x68], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x1000
mov dword [ebp + 0x64], eax
call fcn.0043f7a8
mov edi, eax
push 0x28
lea eax, [ebp + 0x10]
push 0
push eax
mov dword [ebp + 0x78], edi
call fcn.0043f7c0
movsx eax, word [esi + 0x70]
add esp, 0x10
test byte [ebp + 0x64], 4
mov dword [ebp + 0x14], eax
je 0x404fa4
cmp byte [ebp + 0x7c], 0
je 0x404fa4
lea eax, [ebp + 0x10]
push eax
push 0
push 0x1005
push dword [ebp + 0x68]
mov dword [ebp + 0x10], 8
mov dword [ebp + 0x20], 0xf000
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x404f96
mov eax, dword [ebp + 0x1c]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x4050a1
push dword [ebp + 0x78]
call fcn.0043f3aa
pop ecx
jmp 0x4050a3
xor ebx, ebx
cmp byte [esi + 0x7b], bl
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x28], 0xfff
jbe 0x405012
lea eax, [ebp + 0x10]
push eax
push 0
push 0x1005
push dword [esi + 0x24]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x24], edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call fcn.0043f830
pop ecx
mov ecx, 0xffe
sub ecx, eax
test ecx, ecx
mov dword [ebp + 0x28], ecx
jle 0x40502c
push dword [ebp + 0x78]
call fcn.0043f830
add eax, dword [ebp + 0x78]
pop ecx
mov ecx, dword [ebp + 0x74]
mov cl, byte [ecx + 0x14]
push eax
mov byte [eax], cl
mov byte [eax + 1], 0
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
movzx eax, byte [esi + 0x7b]
inc ebx
cmp ebx, eax
jl 0x404fb9
lea eax, [ebp + 0x10]
push eax
push 0
push 0x1005
push dword [esi + 0x24]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x24], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x78]
jmp 0x4050a5
mov edi, dword [ebp + 0x68]
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x60]
push 3
mov dword [ebx], eax
mov edx, dword [ecx + 0x14]
pop esi
cmp edx, esi
mov dword [ebp + 0x7c], esi
jl 0x40507d
lea esi, [ecx + 0x50]
mov ecx, dword [esi]
test ecx, ecx
je 0x405072
cmp byte [ecx + 0x78], 0x14
jne 0x405072
cmp dword [ecx + 0x24], edi
jne 0x405072
movsx ecx, word [ecx + 0x70]
cmp ecx, eax
je 0x405082
inc dword [ebp + 0x7c]
add esi, 4
cmp dword [ebp + 0x7c], edx
jle 0x405059
and dword [ebx], 0
jmp 0x4050a3
push dword [ebp + 0x7c]
mov eax, dword [ebp + 0x64]
call fcn.00401b5b
jmp 0x4050a1
push 0
push 0
push 0x400
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc