Function at 0x51aaec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x5a], dx
mov esi, eax
mov byte [0x69ea28], 1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x51ab1a
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x78], eax
jmp 0x51ab70
mov ecx, dword [0x6a2020]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4e4dbc]
call fcn.004eb2f0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 0xc], 0xffffff9e
xor edx, edx
mov eax, dword [ebp - 0x78]
call fcn.004ed258
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowLongW
mov eax, esi
call fcn.00543fa0
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x30]
pop edx
call fcn.005bcb7c
mov dword [ebp - 0x1c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x44]
call fcn.00460284
call fcn.0045a64c
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045965c
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
mov edi, eax
push edi
call sub.gdi32.dll_SaveDC
mov ebx, eax
mov eax, esi
call fcn.0054388c
mov dword [ebp - 0x7c], eax
mov eax, esi
call fcn.005438d8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
mov eax, edi
call fcn.004c3360
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005df3b4
push eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005df3a0
push eax
push 0
push 0
push edi
call sub.gdi32.dll_IntersectClipRect
mov ecx, edi
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x1b8]
call fcn.0054125c
cmp dword [esi + 0xbc], 0
je 0x51ad1d
mov eax, esi
call fcn.0054388c
mov dword [ebp - 0x88], eax
mov eax, esi
call fcn.005438d8
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005df3a0
add eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xb8]
xor edx, edx
call fcn.005df3b4
add eax, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
push 0x1fffffff
lea edx, [ebp - 0xa8]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.005a01f0
jmp 0x51ad55
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ae20
lea edx, [ebp - 0xc8]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.005a01f0
push ebx
push edi
call sub.gdi32.dll_RestoreDC
cmp dword [ebp - 0x1c], 0
je 0x51b18b
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.00459760
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x68], eax
movzx eax, word [ebp - 0x5a]
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x64], 0x718
xor eax, eax
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x10], 0
jle 0x51adce
mov byte [ebp - 0x52], 0
jmp 0x51add5
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
mov ebx, dword [esi + 0xbc]
test ebx, ebx
je 0x51ae5d
lea edx, [ebp - 0xc8]
mov eax, esi
call fcn.005472c0
mov edi, dword [ebp - 0xc4]
mov eax, ebx
call fcn.005511c0
add edi, eax
xor edx, edx
mov eax, esi
call fcn.00543258
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x54]
call fcn.005510dc
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x54]
call fcn.005510dc
push eax
mov eax, dword [esi + 0xbc]
call fcn.005511e0
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0xc8]
mov eax, esi
call fcn.005472c0
add ebx, dword [ebp - 0xc8]
mov dword [ebp - 0x60], ebx
jmp 0x51ae64
xor edi, edi
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0xa4]
sub ecx, edi
mov edx, dword [ebp - 0xa8]
sub edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x98]
push 0xffffffffffffffec
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_GetWindowLongW
and eax, 8
cmp eax, 8
jne 0x51aec4
mov dl, 3
mov eax, dword [ebp - 0x78]
call fcn.004ed678
or edi, 0xffffffff
jmp 0x51aed1
push 3
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_GetWindow
mov edi, eax
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowLongW
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 0x64]
or eax, 8
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x78]
call fcn.004ebee0
push eax
mov eax, dword [ebp - 0x78]
call fcn.004ebec0
push eax
push edi
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.005bcb7c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ae20
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
xor ecx, ecx
pop edx
call fcn.005b7470
push 3
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x51b04f
push ebp
call fcn.0051a744
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x51b048
push ebp
call fcn.0051a89c
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
push ebp
call fcn.0051aa90
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x51b043
push 0xc
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x51aff1
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
push 0
push 0
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowRgn
mov edi, dword [ebp - 0x64]
or edi, 1
or edi, 2
push edi
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x58], edx
call fcn.004050e8
push ebx
push 0
call sub.user32.dll_ReleaseDC
xor edx, edx
mov eax, esi
call fcn.005417a0
push 0
push 1
push 0xb
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_SendMessageW
mov byte [0x69ea28], 0
call fcn.005513a4
test al, al
je 0x51b0fd
push 0x30
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x51b13b
mov byte [eax + 0x28], 1
push 0x585
push 0
push 0
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_RedrawWindow
xor edx, edx
mov eax, esi
call fcn.005417a0
mov eax, dword [esi + 0xbc]
mov byte [eax + 0x28], 0
mov cl, 0xff
mov dl, 1
call fcn.0056bd08
jmp 0x51b14d
push 0x585
push 0
push 0
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_RedrawWindow
push edi
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x54]
push eax
mov eax, dword [ebp - 0x78]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.004050e8
cmp dword [esi + 0xbc], 0
jne 0x51b18b
mov eax, dword [ebp - 0x78]
xor edx, edx
mov dword [ebp - 0x78], edx
call fcn.004050e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4