Function at 0x506450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x51
push 0
push 0
dec ecx
jne 0x506458
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, 0x5cae0c
xor eax, eax
push ebp
push 0x506bf4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
push 0xff
lea eax, [ebp - 0x214]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x506b39
xor edx, edx
push ebp
push 0x506b2f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x506b1e
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x42f5e4]
call fcn.0043b514
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x42f5e4]
call fcn.0043b514
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x42f5e4]
call fcn.0043b514
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x42f5e4]
call fcn.0043b514
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x218]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov ecx, dword [ebp - 0x218]
mov edx, 0x506c18
mov eax, dword [esi]
call fcn.00505d44
test eax, eax
jle 0x506611
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
mov edx, 0x506c48
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x21c]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x506611
mov eax, dword [esi]
add eax, 0x30
xor edx, edx
call fcn.004077d0
push 0xff
lea eax, [ebp - 0x214]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov eax, dword [esi]
add eax, 0x30
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, eax
push 0
push 0x506060
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
je 0x506611
lea ecx, [ebp - 0x224]
mov edx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x224]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x228]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x228]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, ebx
mov eax, dword [esi]
call fcn.00506f40
test al, al
je 0x506810
mov eax, dword [esi]
call fcn.00506dd0
cmp eax, 6
jne 0x5066f2
call sub.user32.dll_GetForegroundWindow
cmp ebx, eax
jne 0x5066f2
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x230]
mov edx, 0x506c74
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x22c]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x5066f2
lea ecx, [ebp - 0x234]
mov edx, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x234]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x238]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x23c]
call fcn.004150ec
mov edx, dword [ebp - 0x23c]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi]
call fcn.00506dd0
cmp eax, 7
je 0x50670e
mov eax, dword [esi]
call fcn.00506dd0
cmp eax, 8
jne 0x506810
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x244]
mov edx, 0x506c74
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x240]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x506810
mov eax, dword [esi]
add eax, 0x30
xor edx, edx
call fcn.004077d0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, eax
push 0xff
lea eax, [ebp - 0x214]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov eax, dword [esi]
add eax, 0x30
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
push 0
push 0x5061c8
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
je 0x506810
lea ecx, [ebp - 0x248]
mov edx, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x248]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xff
lea eax, [ebp - 0x214]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x24c]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov ecx, dword [ebp - 0x250]
mov edx, 0x506c94
mov eax, dword [esi]
call fcn.00505d44
test eax, eax
jle 0x5069cb
mov eax, ebx
call fcn.00505348
cmp eax, 0xa
jl 0x5068ed
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x258]
mov edx, 0x506cb0
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x254]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x5069cb
lea ecx, [ebp - 0x25c]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x25c]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x260]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5069cb
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x268]
mov edx, 0x506cb0
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x268]
lea eax, [ebp - 0x264]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x264]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x5069cb
mov eax, dword [esi]
add eax, 0x30
xor edx, edx
call fcn.004077d0
mov eax, dword [esi]
add eax, 0x30
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, eax
push 0
push 0x505f34
push ebx
call sub.user32.dll_EnumChildWindows
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
je 0x5069cb
lea ecx, [ebp - 0x26c]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x26c]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x270]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x274]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov ecx, dword [ebp - 0x274]
mov edx, 0x506cc8
mov eax, dword [esi]
call fcn.00505d44
test eax, eax
jle 0x506a8f
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x27c]
mov edx, 0x506cec
mov eax, dword [esi]
call fcn.00505c3c
mov edx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov ecx, 0
call fcn.00407a24
mov edx, dword [ebp - 0x278]
mov ecx, 0x506c64
mov eax, dword [esi]
call fcn.00505d80
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x506a8f
lea ecx, [ebp - 0x280]
mov edx, 1
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x280]
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x284]
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
lea eax, [ebp - 0x288]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov ecx, dword [ebp - 0x288]
mov edx, 0x506d0c
mov eax, dword [esi]
call fcn.00505d44
test eax, eax
jle 0x506af0
push 0
push 0x5062e8
push ebx
call sub.user32.dll_EnumChildWindows
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x28c]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506b25
mov eax, dword [ebp - 8]
call fcn.00405764
mov eax, dword [ebp - 0x10]
call fcn.00405764
mov eax, dword [ebp - 0xc]
call fcn.00405764
mov eax, dword [ebp - 0x14]
call fcn.00405764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506bfe
lea eax, [ebp - 0x28c]
mov edx, 5
call fcn.004077c8
lea eax, [ebp - 0x278]
call fcn.00406a40
lea eax, [ebp - 0x274]
mov edx, 4
call fcn.004077c8
lea eax, [ebp - 0x264]
call fcn.00406a40
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.004077c8
lea eax, [ebp - 0x254]
call fcn.00406a40
lea eax, [ebp - 0x250]
mov edx, 4
call fcn.004077c8
lea eax, [ebp - 0x240]
call fcn.00406a40
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.004077c8
lea eax, [ebp - 0x22c]
call fcn.00406a40
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.004077c8
lea eax, [ebp - 0x21c]
call fcn.00406a40
lea eax, [ebp - 0x218]
call fcn.004077c0
ret