Function at 0x5521b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x5a], dx
mov esi, eax
mov byte [0x62cc04], 1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x5521e6
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x78], eax
jmp 0x55223c
mov ecx, dword [0x62f410]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d1f70]
call fcn.004d84a4
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.004da40c
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
call sub.user32.dll_SetWindowLongW
mov eax, esi
call fcn.00513bd4
lea eax, [ebp - 0x98]
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.0056afdc
mov dword [ebp - 0x1c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x5c]
mov eax, dword [eax + 0x44]
call fcn.0045f8dc
call fcn.0045a044
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.0045f8dc
call fcn.0045a044
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x1c]
call fcn.0045f8dc
call fcn.00459054
mov eax, dword [ebp - 0x1c]
call fcn.0045f8dc
call fcn.0045a044
mov edi, eax
push edi
call sub.gdi32.dll_SaveDC
mov ebx, eax
mov eax, esi
call fcn.00513518
push eax
mov eax, esi
call fcn.005134cc
lea ecx, [ebp - 0xa0]
pop edx
call fcn.0040ab70
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov eax, edi
call fcn.004b056c
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.00594f4c
push eax
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.00594f38
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.00510f24
cmp dword [esi + 0xbc], 0
je 0x5523d5
mov eax, esi
call fcn.00513518
push eax
mov eax, esi
call fcn.005134cc
lea ecx, [ebp - 0xa0]
pop edx
call fcn.0040ab70
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.00594f38
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x98]
xor edx, edx
call fcn.00594f4c
add eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
push 0x1fffffff
lea edx, [ebp - 0x88]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.0054a550
jmp 0x55240d
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb0]
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.0040ab40
lea edx, [ebp - 0xb0]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.0054a550
push ebx
push edi
call sub.gdi32.dll_RestoreDC
cmp dword [ebp - 0x1c], 0
je 0x55281e
mov eax, dword [ebp - 0x1c]
call fcn.0045f8dc
call fcn.00459158
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
lea ecx, [ebp - 0x74]
xor edx, edx
xor eax, eax
call fcn.0040ab70
cmp dword [ebp - 0x10], 0
jle 0x552470
mov byte [ebp - 0x52], 0
jmp 0x552477
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 0x5524ff
lea edx, [ebp - 0xb0]
mov eax, esi
call fcn.00516e60
mov edi, dword [ebp - 0xac]
mov eax, ebx
call fcn.005770e0
add edi, eax
xor edx, edx
mov eax, esi
call fcn.00512ee0
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x54]
call fcn.00576ffc
sub edi, eax
xor ecx, ecx
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0x54]
call fcn.00576ffc
push eax
mov eax, dword [esi + 0xbc]
call fcn.00577100
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0xb0]
mov eax, esi
call fcn.00516e60
add ebx, dword [ebp - 0xb0]
mov dword [ebp - 0x60], ebx
jmp 0x552506
xor edi, edi
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x88]
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 - 0x84]
sub ecx, edi
mov edx, dword [ebp - 0x88]
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 0x552566
mov dl, 3
mov eax, dword [ebp - 0x78]
call fcn.004da82c
or edi, 0xffffffff
jmp 0x552573
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.004bb0e0
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
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.0045f8dc
call fcn.0045a044
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
mov eax, dword [0x62ede4]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
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.004d9094
push eax
mov eax, dword [ebp - 0x78]
call fcn.004d9074
push eax
push edi
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
call sub.user32.dll_SetWindowPos
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.0056afdc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xb0]
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.0040ab40
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0045f8dc
call fcn.0045a044
xor ecx, ecx
pop edx
call fcn.005661d8
push 3
mov eax, dword [ebp - 0x58]
call fcn.0045f8dc
call fcn.0045a044
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x5526f1
push ebp
call fcn.00551e30
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x5526ea
push ebp
call fcn.00551f9c
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.0045f8dc
call fcn.0045a044
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
mov eax, dword [0x62ede4]
mov eax, dword [eax]
call eax
push ebp
call fcn.0055215c
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x5526e5
push 0xc
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x552693
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
push 0
push 0
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
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.004bb0e0
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.0045f8dc
call fcn.0045a044
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x78]
call fcn.004bb0e0
push eax
mov eax, dword [0x62ede4]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x58]
call fcn.0041ca80
push ebx
push 0
call sub.user32.dll_ReleaseDC
xor edx, edx
mov eax, esi
call fcn.00511438
push 0
push 1
push 0xb
mov eax, dword [esi + 0x54]
push eax
call sub.user32.dll_SendMessageW
mov byte [0x62cc04], 0
call fcn.005772c4
test al, al
je 0x55279a
push 0x30
call sub.kernel32.dll_Sleep_1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x5527d8
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.00511438
mov eax, dword [esi + 0xbc]
mov byte [eax + 0x28], 0
mov cl, 0xff
mov dl, 1
call fcn.005913b8
jmp 0x5527ea
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.004bb0e0
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x1c]
call fcn.0041ca80
cmp dword [esi + 0xbc], 0
jne 0x55281e
lea eax, [ebp - 0x78]
call fcn.0041ca80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4