Function at 0x51fcb0
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
push esi
mov esi, dword [eax + 0x54]
test esi, esi
mov dword [esp + 4], ecx
je 0x520144
push ebx
push ebp
test edx, edx
mov edx, dword [esp + 0x64]
push edi
je 0x51ff73
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
imul edx, edx, 0x5c
add eax, edx
mov dword [esp + 0x68], eax
mov eax, dword [eax + 0x38]
lea esi, [eax + 0x2d]
cmp eax, esi
mov dword [0x5a0bc0], 0
mov dword [esp + 0x14], esi
mov edi, eax
jge 0x51fd97
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x51fd10
mov ecx, dword [esp + 0x10]
nop
push edi
push ecx
call ebx
test eax, eax
mov edx, dword [0x5a0bc0]
lea ecx, [edx*8 + 0x5a0a30]
mov dword [ecx], eax
je 0x51fd97
mov dword [edx*8 + 0x5a0a34], edi
mov edx, dword [ecx]
mov ecx, dword [esp + 0x10]
push edi
call fcn.0051fbd0
test eax, eax
jne 0x51fd83
mov eax, dword [0x5a0bc0]
mov esi, dword [eax*8 + 0x5a0a30]
push 0x5a0630
push 0x3e7
push 0xd
push esi
call ebp
test eax, eax
jle 0x51fd7f
push 1
push 0x5a0630
call fcn.00563730
add esp, 8
test eax, eax
je 0x51fd7f
push 0x5a0630
push 0
push 0xc
push esi
mov byte [eax], 0x26
call ebp
mov esi, dword [esp + 0x14]
mov eax, dword [0x5a0bc0]
inc eax
inc edi
cmp edi, esi
mov dword [0x5a0bc0], eax
jl 0x51fd0b
mov edx, dword [0x5a0a30]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
push 0x66
push ecx
call ebx
push eax
call ebp
mov eax, dword [0x5a0bc0]
xor edi, edi
test eax, eax
jle 0x51fe2f
jmp 0x51fdd0
mov eax, dword [edi*8 + 0x5a0a30]
lea edx, [esp + 0x50]
push edx
push eax
call ebp
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x24]
cmp eax, esi
jge 0x51fdf1
mov esi, eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x2c]
jle 0x51fdff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jge 0x51fe11
mov ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
cmp eax, edx
jle 0x51fe23
mov edx, eax
mov dword [esp + 0x28], edx
mov eax, dword [0x5a0bc0]
inc edi
cmp edi, eax
jl 0x51fdd0
jmp 0x51fe3b
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0x48]
mov eax, dword [esp + 0x48]
test edi, edi
mov edi, dword [esp + 0x40]
je 0x51fe8c
mov ebx, dword [esp + 0x68]
sub eax, edi
sub eax, edx
add eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x4c]
sub ecx, edi
mov edi, dword [esp + 0x2c]
dec ecx
mov ebp, ecx
mov ecx, dword [esp + 0x44]
sub eax, ecx
sub eax, edi
mov edi, dword [ebx + 0x40]
add eax, esi
cdq
sub eax, edx
sar eax, 1
sub esi, eax
sub esi, edi
sub esi, ecx
sub esi, 3
jmp 0x51feb0
sub eax, edi
sub eax, edx
add eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x68]
sub ecx, dword [eax + 0x3c]
sub ecx, edi
dec ecx
mov ebp, ecx
mov ecx, dword [eax + 0x40]
mov eax, dword [esp + 0x44]
sub esi, ecx
sub esi, eax
mov eax, dword [0x5a0bc0]
xor edi, edi
test eax, eax
jle 0x51ff32
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [edi*8 + 0x5a0a30]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x24], eax
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub eax, ebp
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push edx
sub ecx, esi
push eax
mov dword [esp + 0x24], ecx
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [edi*8 + 0x5a0a30]
push 0x15
push 0
push 0
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x5a0bc0]
inc edi
cmp edi, eax
jl 0x51fec1
mov eax, dword [0x5a0bc0]
xor esi, esi
test eax, eax
jle 0x51ff59
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi*8 + 0x5a0a30]
push 8
push ecx
call edi
mov eax, dword [0x5a0bc0]
inc esi
cmp esi, eax
jl 0x51ff43
mov eax, dword [esp + 0x10]
push eax
mov dword [0x5a0a2c], eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x50
ret 8
imul edx, edx, 0x5c
mov esi, dword [edx + eax + 0x38]
mov eax, dword [0x5a0a2c]
test eax, eax
lea ebp, [esi + 0x64]
je 0x51ffce
cmp eax, ecx
je 0x51ffce
xor ecx, ecx
cmp esi, ebp
mov dword [0x5a0bc0], ecx
jge 0x51ffd4
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea esp, [esp]
mov ebx, dword [esp + 0x10]
push esi
push ebx
call edi
test eax, eax
mov ecx, dword [0x5a0bc0]
mov dword [ecx*8 + 0x5a0a30], eax
je 0x51ffd8
mov dword [ecx*8 + 0x5a0a34], esi
inc ecx
inc esi
cmp esi, ebp
mov dword [0x5a0bc0], ecx
jl 0x51ffa0
jmp 0x51ffd8
mov ecx, dword [0x5a0bc0]
mov ebx, dword [esp + 0x10]
xor esi, esi
test ecx, ecx
jle 0x520072
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi*8 + 0x5a0a30]
test eax, eax
je 0x52006e
push 0
push eax
call ebp
mov ecx, dword [esi*8 + 0x5a0a30]
lea eax, [esp + 0x30]
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
push 2
lea edx, [esp + 0x34]
push edx
push eax
push 0
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, 2
add ecx, eax
sub edx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
add ecx, 4
sub edx, eax
mov dword [esp + 0x38], ecx
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x5a0bc0]
inc esi
cmp esi, ecx
jl 0x51fff4
mov ebx, dword [esp + 0x10]
xor ebp, ebp
test ecx, ecx
jle 0x520134
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x520090
mov edx, dword [ebp*8 + 0x5a0a30]
test edx, edx
je 0x520134
mov eax, dword [0x59b070]
test eax, eax
je 0x5200d9
cmp eax, ebx
jne 0x5200d9
mov eax, dword [ebp*8 + 0x5a0a34]
cmp eax, 0x198
jg 0x5200cd
je 0x52012b
sub eax, 0x68
je 0x52012b
sub eax, 0xb3
je 0x52012b
sub eax, 0x3b
jmp 0x5200d7
sub eax, 0x215
je 0x52012b
sub eax, 2
je 0x52012b
push 0
push 0
push 0xc1
push edx
call edi
test eax, eax
jg 0x520125
mov esi, dword [ebp*8 + 0x5a0a30]
push 0x5a0630
push 0x3e7
push 0xd
push esi
call edi
test eax, eax
jle 0x520125
push 0x26
push 0x5a0630
call fcn.00563730
add esp, 8
test eax, eax
je 0x520125
push 0x5a0630
push 0
push 0xc
push esi
mov byte [eax], 1
call edi
mov ecx, dword [0x5a0bc0]
inc ebp
cmp ebp, ecx
jl 0x520090
push ebx
mov dword [0x5a0a2c], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x50
ret 8