Function at 0x522d20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x5a43ec], 1
mov eax, dword [esi + 0xac]
test eax, eax
je 0x522d4c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x6c], eax
jmp 0x522da2
mov ecx, dword [0x5a4a1c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4c86ec]
call fcn.004cec20
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [eax + 0xc], 0xffffff9e
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.004d0b88
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowLongW
mov eax, esi
call fcn.0050fb98
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
pop edx
call fcn.0051eef8
mov dword [0x5aa96c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0x38]
call fcn.0045bfa4
call fcn.0045670c
push eax
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.0045670c
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.0045571c
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.0045670c
mov dword [0x5a43e4], eax
mov eax, dword [0x5a43e4]
push eax
call sub.gdi32.dll_SaveDC
mov ebx, eax
mov eax, esi
call fcn.0050f49c
push eax
mov eax, esi
call fcn.0050f450
lea ecx, [ebp - 0x94]
pop edx
call fcn.004324d8
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x5a43e4]
call fcn.004a6d3c
lea eax, [ebp - 0x8c]
xor edx, edx
call fcn.0057b0d4
push eax
lea eax, [ebp - 0x8c]
xor edx, edx
call fcn.0057b0c0
push eax
push 0
push 0
mov eax, dword [0x5a43e4]
push eax
call sub.gdi32.dll_IntersectClipRect
mov ecx, dword [0x5a43e4]
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x194]
call fcn.0050d8b0
cmp dword [esi + 0xac], 0
je 0x522f3d
mov eax, esi
call fcn.0050f49c
push eax
mov eax, esi
call fcn.0050f450
lea ecx, [ebp - 0x94]
pop edx
call fcn.004324d8
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x8c]
xor edx, edx
call fcn.0057b0c0
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x8c]
xor edx, edx
call fcn.0057b0d4
add eax, dword [ebp - 0x78]
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x7c]
mov cl, 0xff
mov eax, dword [0x5aa96c]
call fcn.00530050
jmp 0x522f76
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00432508
lea edx, [ebp - 0xa4]
mov cl, 0xff
mov eax, dword [0x5aa96c]
call fcn.00530050
push ebx
mov eax, dword [0x5a43e4]
push eax
call sub.gdi32.dll_RestoreDC
cmp dword [0x5aa96c], 0
je 0x523352
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.00455820
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xa
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0x718
lea ecx, [ebp - 0x68]
xor edx, edx
xor eax, eax
call fcn.004324d8
cmp dword [ebp - 0x10], 0
jle 0x522fe6
mov byte [ebp - 0x4a], 0
jmp 0x522fed
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x4b], 0
mov byte [ebp - 0x49], 1
mov ebx, dword [esi + 0xac]
test ebx, ebx
je 0x523075
lea edx, [ebp - 0xa4]
mov eax, esi
call fcn.00512bec
mov edi, dword [ebp - 0xa0]
mov eax, ebx
call fcn.00564338
add edi, eax
xor edx, edx
mov eax, esi
call fcn.0050ee98
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 0x4c]
call fcn.005642d0
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xac]
mov eax, dword [esi + 0x4c]
call fcn.005642d0
push eax
mov eax, dword [esi + 0xac]
call fcn.00564358
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0xa4]
mov eax, esi
call fcn.00512bec
add ebx, dword [ebp - 0xa4]
mov dword [ebp - 0x54], ebx
jmp 0x52307c
xor edi, edi
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [0x5aa96c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x78]
sub ecx, edi
mov edx, dword [ebp - 0x7c]
sub edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x98]
push 0xffffffffffffffec
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_GetWindowLongW
and eax, 8
cmp eax, 8
jne 0x5230d7
mov dl, 3
mov eax, dword [ebp - 0x6c]
call fcn.004d0fa8
or edi, 0xffffffff
jmp 0x5230e4
push 3
mov eax, dword [esi + 0x4c]
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 - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowLongW
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x1fffffff
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.0045670c
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
mov eax, dword [0x5a4658]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 0x58]
or eax, 8
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x6c]
call fcn.004cf810
push eax
mov eax, dword [ebp - 0x6c]
call fcn.004cf7f0
push eax
push edi
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowPos
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
call fcn.0051eef8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00432508
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x50]
call fcn.0045bfa4
call fcn.0045670c
xor ecx, ecx
pop edx
call fcn.0051853c
cmp dword [ebp - 0x10], 0
jle 0x52324f
push ebp
call fcn.005229a8
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x523248
push ebp
call fcn.00522b10
pop ecx
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x1fffffff
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x50]
call fcn.0045bfa4
call fcn.0045670c
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
mov eax, dword [0x5a4658]
mov eax, dword [eax]
call eax
push ebp
call fcn.00522cc4
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x523243
push 0xa
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x5231f1
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x4a], al
mov eax, dword [ebp - 0x58]
or eax, 4
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowPos
push 2
lea eax, [ebp - 0x4c]
push eax
push 0x1fffffff
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x5aa96c]
call fcn.0045bfa4
call fcn.0045670c
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
mov eax, dword [0x5a4658]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x50]
call fcn.0041a9ac
push ebx
push 0
call sub.user32.dll_ReleaseDC
push 0
push 1
push 0xb
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageW
mov byte [0x5a43ec], 0
cmp dword [esi + 0xac], 0
jne 0x5232e4
xor edx, edx
mov eax, esi
call fcn.0050ddb0
push 0
push 0
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_InvalidateRect
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_UpdateWindow
push 0x585
push 0
push 0
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_RedrawWindow
mov eax, dword [ebp - 0x58]
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [ebp - 0x6c]
call fcn.004b18ac
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
mov dword [0x5a43e4], eax
mov eax, 0x5aa96c
call fcn.0041a9ac
cmp dword [esi + 0xac], 0
jne 0x523352
lea eax, [ebp - 0x6c]
call fcn.0041a9ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4