Function at 0x506250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push esi
push edi
lea edi, [ebp - 0x138]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x65a628
call fcn.0053954a
mov eax, dword [ebp + 8]
cmp dword [eax], 0x3e9
jne 0x5062a8
cmp dword [ebp + 0xc], 0
jne 0x50629b
mov dword [ebp + 0xc], 1
jmp 0x5062a8
cmp dword [ebp + 0xc], 1
jne 0x5062a8
mov dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov esi, esp
push 5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 2
jne 0x506358
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp esi, esp
call fcn.0053951b
mov esi, esp
push 0x14
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.0053951b
mov esi, esp
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, esp
call fcn.0053951b
mov esi, esp
push 0x16
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.0053951b
jmp 0x5067de
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_GetParent]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0x40], eax
mov esi, esp
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp esi, esp
call fcn.0053951b
mov esi, esp
push 0x14
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.0053951b
mov esi, esp
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, esp
call fcn.0053951b
mov esi, esp
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp esi, esp
call fcn.0053951b
mov esi, esp
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp esi, esp
call fcn.0053951b
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
mov dword [ebp - 0xb0], edx
cmp dword [0x642cc8], 0
jne 0x5064f1
mov dword [0x642cc8], 1
mov esi, esp
push 0xe81b
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x5064f1
mov esi, esp
push 0xe804
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x5064f1
mov esi, esp
push 4
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.0053951b
push 3
push str.USag
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0054db66
add esp, 0xc
test eax, eax
jne 0x5064f1
mov esi, esp
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp esi, esp
call fcn.0053951b
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x80]
mov dword [0x642cc4], ecx
xor edx, edx
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 4
ja case.0x506557.2
mov edx, dword [ebp - 0x138]
jmp dword [edx*4 + 0x506894]
mov dword [ebp - 0xf4], 0
mov eax, dword [0x642cc4]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xec], ecx
mov edx, dword [0x642cc4]
add edx, dword [ebp - 0xb0]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xac], ecx
jmp 0x50678c
mov dword [ebp - 0x104], 0
mov edx, dword [ebp - 0xa8]
sub edx, dword [ebp - 0xb0]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
jmp 0x50678c
mov dword [ebp - 0x114], 0
mov ecx, dword [0x642cc4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], edx
jmp 0x50678c
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xac]
mov dword [ebp - 0x124], eax
mov ecx, dword [0x642cc4]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], edx
jmp 0x50678c
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x134], eax
mov ecx, dword [0x642cc4]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x12c], edx
mov eax, dword [0x642cc4]
add eax, dword [ebp - 0xb0]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x90], ecx
mov esi, esp
push 0x14
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.0053951b
mov esi, esp
push 0x15
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.0053951b
push edx
mov ecx, ebp
push eax
lea edx, [0x50680c]
call fcn.005394c7
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
add esp, 0x138
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret