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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x54], 0
je 0x5105e1
cmp dword [ebp + 0xc], 0
je 0x5103dc
xor edx, edx
mov dword [0x56c5f4], edx
imul ecx, dword [ebp + 0x14], 0x17
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + ecx*4 + 0x38]
lea ebx, [eax + 0x2d]
mov esi, eax
cmp ebx, esi
jle 0x510116
push esi
push edi
call sub.USER32.dll_GetDlgItem
mov edx, dword [0x56c5f4]
mov dword [edx*8 + 0x586f80], eax
mov eax, dword [0x56c5f4]
cmp dword [eax*8 + 0x586f80], 0
je 0x510116
mov ecx, dword [0x56c5f4]
mov dword [ecx*8 + 0x586f84], esi
mov eax, dword [0x55ddc4]
test eax, eax
je 0x51003a
cmp edi, eax
jne 0x51003a
mov edx, dword [0x56c5f4]
mov ecx, dword [edx*8 + 0x586f84]
sub ecx, 0xbb
jne 0x51008e
inc dword [0x56c5f4]
jmp 0x51010d
mov eax, dword [0x56a0e4]
test eax, eax
je 0x51008e
cmp edi, eax
jne 0x51008e
mov edx, dword [0x56c5f4]
mov ecx, dword [edx*8 + 0x586f84]
cmp ecx, 0x1a7
jg 0x510072
je 0x510086
sub ecx, 0x116
je 0x510086
sub ecx, 0x3b
je 0x510086
sub ecx, 0x42
je 0x510086
jmp 0x51008e
sub ecx, 0x1e7
je 0x510086
sub ecx, 0x54
je 0x510086
sub ecx, 2
je 0x510086
jmp 0x51008e
inc dword [0x56c5f4]
jmp 0x51010d
push 0
push 0
push 0xc1
mov eax, dword [0x56c5f4]
push dword [eax*8 + 0x586f80]
call sub.USER32.dll_SendMessageA
test eax, eax
jle 0x5100b4
inc dword [0x56c5f4]
jmp 0x51010d
push 0x587110
push 0x3e7
push 0xd
mov edx, dword [0x56c5f4]
push dword [edx*8 + 0x586f80]
call sub.USER32.dll_SendMessageA
test eax, eax
jle 0x510107
push 1
push 0x587110
call fcn.0054c230
add esp, 8
test eax, eax
je 0x510107
mov byte [eax], 0x26
push 0x587110
push 0
push 0xc
mov ecx, dword [0x56c5f4]
push dword [ecx*8 + 0x586f80]
call sub.USER32.dll_SendMessageA
inc dword [0x56c5f4]
inc esi
cmp ebx, esi
jg 0x50ffd9
lea eax, [ebp - 0x24]
push eax
push dword [0x586f80]
call sub.USER32.dll_GetWindowRect
lea edx, [ebp - 0x34]
push edx
push 0x69
push edi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_GetWindowRect
xor esi, esi
mov ebx, 0x586f80
jmp 0x51017e
lea eax, [ebp - 0x44]
push eax
push dword [ebx]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x20]
jge 0x510156
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x18]
jle 0x510161
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
jge 0x51016c
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x1c]
jle 0x51017a
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
inc esi
add ebx, 8
cmp esi, dword [0x56c5f4]
jl 0x510140
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x48], 0
je 0x5101eb
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
sub edx, ecx
sar edx, 1
jns 0x5101a4
adc edx, 0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x34]
sub eax, edx
imul edx, dword [ebp + 0x14], 0x17
mov ecx, dword [ebp + 0x10]
sub eax, dword [ecx + edx*4 + 0x3c]
dec eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 1
jns 0x5101d0
adc eax, 0
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x30]
sub ecx, eax
imul eax, dword [ebp + 0x14], 0x17
mov edx, dword [ebp + 0x10]
sub ecx, dword [edx + eax*4 + 0x40]
add ecx, 0xfffffffd
mov dword [ebp - 8], ecx
jmp 0x51022b
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 1
jns 0x510200
adc ecx, 0
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x34]
sub edx, ecx
imul ecx, dword [ebp + 0x14], 0x17
mov eax, dword [ebp + 0x10]
sub edx, dword [eax + ecx*4 + 0x3c]
dec edx
mov dword [ebp - 4], edx
imul edx, dword [ebp + 0x14], 0x17
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
sub eax, dword [ecx + edx*4 + 0x40]
mov dword [ebp - 8], eax
xor esi, esi
mov ebx, 0x586f80
jmp 0x510284
lea eax, [ebp - 0x24]
push eax
push dword [ebx]
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x10]
push ecx
push edi
call sub.USER32.dll_ScreenToClient
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x10]
push ecx
push edi
call sub.USER32.dll_ScreenToClient
push 0x15
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push dword [ebx]
call sub.USER32.dll_SetWindowPos
inc esi
add ebx, 8
cmp esi, dword [0x56c5f4]
jl 0x510234
xor esi, esi
mov ebx, 0x586f84
jmp 0x5103bf
mov eax, dword [0x55ddc4]
test eax, eax
je 0x5102bf
cmp edi, eax
jne 0x5102bf
cmp dword [ebx], 0x79
je 0x5103bb
cmp dword [ebx], 0x8b
je 0x5103bb
jmp 0x5103b1
mov eax, dword [0x56a0e4]
test eax, eax
je 0x51036e
cmp edi, eax
jne 0x51036e
mov edx, dword [ebx]
cmp edx, 0x1e8
je 0x5103bb
xor eax, eax
cmp edx, 0x190
jne 0x5102f3
mov eax, 1
jmp 0x51035a
cmp edx, 0x191
jne 0x510302
mov eax, 1
jmp 0x51035a
cmp edx, 0x194
jne 0x510311
mov eax, 1
jmp 0x51035a
cmp edx, 0x18f
jne 0x510320
mov eax, 1
jmp 0x51035a
cmp edx, 0x21e
jne 0x51032f
mov eax, 1
jmp 0x51035a
cmp edx, 0x21f
jne 0x51033e
mov eax, 1
jmp 0x51035a
cmp edx, 0x1c3
jne 0x51034d
mov eax, 1
jmp 0x51035a
cmp edx, 0x1c8
jne 0x51035a
mov eax, 2
test eax, eax
je 0x5103b1
cmp dword [0x55cfd0], 0
jne 0x5103b1
cmp eax, 2
je 0x5103bb
jmp 0x5103b1
mov eax, dword [0x55eae0]
test eax, eax
je 0x5103b1
cmp edi, eax
jne 0x5103b1
cmp dword [ebx], 0x87
jne 0x5103b1
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x8055
push eax
call sub.USER32.dll_SendMessageA
push dword [ebp - 0x14]
call fcn.00412773
test eax, eax
je 0x5103b1
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1a09], 1
jne 0x5103bb
push 8
push dword [ebx - 4]
call sub.USER32.dll_ShowWindow
inc esi
add ebx, 8
cmp esi, dword [0x56c5f4]
jl 0x510298
mov dword [0x56c5f0], edi
push edi
call sub.USER32.dll_UpdateWindow
jmp 0x5105e1
imul edx, dword [ebp + 0x14], 0x17
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + edx*4 + 0x38]
lea ebx, [eax + 0x64]
cmp dword [0x56c5f0], 0
je 0x510444
cmp edi, dword [0x56c5f0]
je 0x510444
xor edx, edx
mov dword [0x56c5f4], edx
mov esi, eax
cmp ebx, esi
jle 0x510444
push esi
push edi
call sub.USER32.dll_GetDlgItem
mov edx, dword [0x56c5f4]
mov dword [edx*8 + 0x586f80], eax
mov eax, dword [0x56c5f4]
cmp dword [eax*8 + 0x586f80], 0
je 0x510444
mov ecx, dword [0x56c5f4]
mov dword [ecx*8 + 0x586f84], esi
inc dword [0x56c5f4]
inc esi
cmp ebx, esi
jg 0x510409
xor esi, esi
mov ebx, 0x586f80
jmp 0x510494
mov eax, dword [ebx]
test eax, eax
je 0x51049c
push 0
push eax
call sub.USER32.dll_ShowWindow
lea edx, [ebp - 0x54]
push edx
push dword [ebx]
call sub.USER32.dll_GetWindowRect
push 2
lea ecx, [ebp - 0x54]
push ecx
push edi
push 0
call sub.USER32.dll_MapWindowPoints
sub dword [ebp - 0x50], 2
add dword [ebp - 0x48], 2
sub dword [ebp - 0x54], 2
add dword [ebp - 0x4c], 4
push 0
lea eax, [ebp - 0x54]
push eax
push edi
call sub.USER32.dll_InvalidateRect
inc esi
add ebx, 8
cmp esi, dword [0x56c5f4]
jl 0x51044d
xor esi, esi
mov ebx, 0x586f80
jmp 0x5105c9
cmp dword [ebx], 0
je 0x5105d5
mov eax, dword [0x55ddc4]
test eax, eax
je 0x5104d2
cmp edi, eax
jne 0x5104d2
mov edx, dword [ebx + 4]
sub edx, 0xbb
je 0x5105c5
jmp 0x510574
mov eax, dword [0x56a0e4]
test eax, eax
je 0x510574
cmp edi, eax
jne 0x510574
mov edx, dword [ebx + 4]
cmp edx, 0x1e7
jg 0x510521
je 0x5105c5
sub edx, 0x116
je 0x5105c5
sub edx, 0x3b
je 0x5105c5
sub edx, 0x42
je 0x5105c5
sub edx, 0x14
je 0x5105c5
jmp 0x510574
sub edx, 0x1e8
je 0x51053d
sub edx, 0x53
je 0x5105c5
sub edx, 2
je 0x5105c5
jmp 0x510574
lea ecx, [ebp - 0x64]
push ecx
push 0x1e8
push edi
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_GetWindowRect
push 2
lea eax, [ebp - 0x64]
push eax
push edi
push 0
call sub.USER32.dll_MapWindowPoints
push 1
lea edx, [ebp - 0x64]
push edx
push edi
call sub.USER32.dll_InvalidateRect
push edi
call sub.USER32.dll_UpdateWindow
jmp 0x5105c5
push 0
push 0
push 0xc1
push dword [ebx]
call sub.USER32.dll_SendMessageA
test eax, eax
jg 0x5105c5
push 0x587110
push 0x3e7
push 0xd
push dword [ebx]
call sub.USER32.dll_SendMessageA
test eax, eax
jle 0x5105c5
push 0x26
push 0x587110
call fcn.0054c230
add esp, 8
test eax, eax
je 0x5105c5
mov byte [eax], 1
push 0x587110
push 0
push 0xc
push dword [ebx]
call sub.USER32.dll_SendMessageA
inc esi
add ebx, 8
cmp esi, dword [0x56c5f4]
jl 0x5104a8
mov dword [0x56c5f0], edi
push edi
call sub.USER32.dll_UpdateWindow
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10