Function at 0x51b900
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x62], dx
mov ebx, eax
mov byte [0x585f34], 1
mov esi, ebx
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x51b930
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x70], eax
jmp 0x51b949
push 0
mov ecx, dword [0x586b7c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x552fa0]
call fcn.0045da40
mov dword [ebp - 0x70], eax
mov eax, esi
call fcn.004ff6ec
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [esi + 0x38]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x5c]
call fcn.0052acdc
mov dword [ebp - 0x2c], eax
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x5c]
call fcn.00428ccc
call fcn.00424800
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00428ccc
call fcn.00424800
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x2c]
call fcn.00428ccc
call fcn.00424318
mov eax, dword [ebp - 0x2c]
call fcn.00428ccc
call fcn.00424800
mov edi, eax
push edi
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x74], eax
mov eax, esi
call fcn.004feea0
push eax
mov eax, esi
call fcn.004fee50
lea ecx, [ebp - 0xac]
pop edx
call fcn.0040735c
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
mov eax, edi
call fcn.00443b0c
lea eax, [ebp - 0xa4]
xor edx, edx
call fcn.00534010
push eax
lea eax, [ebp - 0xa4]
xor edx, edx
call fcn.00533ffc
push eax
push 0
push 0
push edi
call sub.gdi32.dll_IntersectClipRect
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x184]
mov ecx, edi
call fcn.004fcc8c
cmp dword [esi + 0x18c], 0
je 0x51bad9
mov eax, esi
call fcn.004feea0
push eax
mov eax, esi
call fcn.004fee50
lea ecx, [ebp - 0xac]
pop edx
call fcn.0040735c
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
xor edx, edx
call fcn.00533ffc
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0xa4]
xor edx, edx
call fcn.00534010
add eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
push 0x1fffffff
push 0
mov cl, 0xff
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x2c]
call fcn.00506f78
jmp 0x51bafe
push 0x1fffffff
push 0
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x2c]
call fcn.00533e9c
lea edx, [ebp - 0xbc]
mov cl, 0xff
mov eax, dword [ebp - 0x2c]
call fcn.00506f78
mov eax, dword [ebp - 0x74]
push eax
push edi
call sub.gdi32.dll_RestoreDC
cmp dword [ebp - 0x2c], 0
je 0x51bf93
mov eax, dword [ebp - 0x2c]
call fcn.00428ccc
call fcn.004246f8
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
call fcn.00533f5c
movzx eax, word [ebp - 0x62]
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x78], 0x718
cmp dword [ebp - 0x10], 0
jle 0x51bb53
lea eax, [ebp - 0x5c]
xor edx, edx
call fcn.005347cc
jmp 0x51bb5e
mov dl, byte [ebp - 0xc]
lea eax, [ebp - 0x5c]
call fcn.005347cc
cmp dword [esi + 0x18c], 0
je 0x51bbdd
lea edx, [ebp - 0xbc]
mov eax, esi
call fcn.005022a8
mov edi, dword [ebp - 0xb8]
mov eax, dword [ebx + 0x18c]
call fcn.004a8a94
add edi, eax
xor edx, edx
mov eax, esi
call fcn.004fe98c
sub edi, eax
mov edx, dword [esi + 0x18c]
mov eax, dword [esi + 0x38]
xor ecx, ecx
call fcn.004a88c0
sub edi, eax
mov edx, dword [esi + 0x18c]
mov eax, dword [esi + 0x38]
xor ecx, ecx
call fcn.004a88c0
push eax
mov eax, dword [esi + 0x18c]
call fcn.004a8ad4
pop edx
sub eax, edx
push eax
lea edx, [ebp - 0xbc]
mov eax, esi
call fcn.005022a8
pop eax
add eax, dword [ebp - 0xbc]
mov dword [ebp - 0x68], eax
jmp 0x51bbe4
xor edi, edi
xor eax, eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi + 0x38]
push eax
call sub.user32.dll_GetWindowRect
push 0xffffffffffffffec
mov eax, dword [esi + 0x38]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x51bc19
mov dl, 3
mov eax, dword [ebp - 0x70]
call fcn.0045f34c
mov dword [ebp - 0x84], 0xffffffff
jmp 0x51bc22
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x84], eax
cmp dword [esi + 0x18c], 0
jne 0x51bc40
mov eax, ebx
call fcn.004fceb4
mov eax, dword [esi + 0x180]
mov edx, dword [ebp - 0x2c]
call fcn.00519058
mov eax, dword [0x586c68]
cmp byte [eax], 0
je 0x51bc7d
call fcn.004cd1c4
test al, al
jne 0x51bc7d
call fcn.0053360c
test al, al
je 0x51bc7d
cmp dword [0x587ebc], 0
je 0x51bc7d
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
xor ecx, ecx
xor edx, edx
call fcn.004a6fc8
mov dword [ebp - 0x6c], eax
jmp 0x51bc82
xor eax, eax
mov dword [ebp - 0x6c], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x90]
sub ecx, edi
mov edx, dword [ebp - 0x94]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x70]
mov esi, dword [eax]
call dword [esi + 0x84]
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x2c]
call fcn.0051f414
push 4
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 0x78]
or eax, 8
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x80]
call fcn.0052acd0
mov dword [ebp - 0x60], eax
push 0
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x60]
call fcn.00533e9c
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x60]
call fcn.00428ccc
call fcn.00424800
xor ecx, ecx
pop edx
call fcn.00524110
push 3
mov eax, dword [ebp - 0x60]
call fcn.00428ccc
call fcn.00424800
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x51bde6
push ebp
call fcn.0051b33c
pop ecx
xor esi, esi
cmp esi, dword [ebp - 0x10]
jg 0x51bde0
call sub.kernel32.dll_GetTickCount
mov edi, eax
push ebp
call fcn.0051b528
pop ecx
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x60]
call fcn.0051f414
push ebp
call fcn.0051b7ec
pop ecx
test al, al
je 0x51bde0
inc esi
cmp dword [ebp - 0x10], 0
jle 0x51bddb
mov edx, 0xc
mov eax, edi
call fcn.00534780
cmp esi, dword [ebp - 0x10]
jle 0x51bd96
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x5a], al
push 0
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 0x78]
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x2c]
call fcn.0051f414
mov eax, dword [0x586c68]
cmp byte [eax], 0
je 0x51be5c
call fcn.004cd1c4
test al, al
je 0x51be5c
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
xor ecx, ecx
xor edx, edx
call fcn.004a6fc8
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
call fcn.0040f0a8
xor edx, edx
mov eax, ebx
call fcn.004fd0f4
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
mov esi, ebx
mov eax, dword [esi + 0x38]
push eax
call sub.user32.dll_SetWindowPos
push 0xfffffffffffffff0
mov edi, dword [ebx + 0x38]
push edi
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
push edi
call sub.user32.dll_SetWindowLongA
push 0
mov ecx, 1
mov edx, 0xb
mov eax, esi
call fcn.004e704c
mov byte [0x585f34], 0
mov eax, dword [esi + 0x18c]
test eax, eax
je 0x51becf
mov byte [eax + 0x26], 1
mov esi, ebx
mov eax, dword [esi + 0x68]
call fcn.005574bc
mov edx, dword [esi + 0x38]
xor eax, eax
call fcn.0051908c
mov eax, dword [esi + 0x68]
xor edx, edx
call fcn.005577b8
push 0x585
push 0
push 0
mov eax, dword [esi + 0x38]
push eax
call sub.user32.dll_RedrawWindow
cmp dword [esi + 0x18c], 0
je 0x51bf4a
xor edx, edx
mov eax, ebx
call fcn.004fd0f4
mov eax, dword [esi + 0x18c]
mov byte [eax + 0x26], 0
mov eax, dword [ebp - 0x78]
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x38]
push eax
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
xor edx, edx
mov eax, ebx
call fcn.004fd0f4
jmp 0x51bf76
mov eax, dword [ebp - 0x78]
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x38]
push eax
mov eax, dword [ebp - 0x70]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x70]
call fcn.0040f0a8
cmp dword [ebp - 0x6c], 0
je 0x51bf8b
push 0x14
call sub.kernel32.dll_Sleep
mov eax, dword [ebp - 0x6c]
call fcn.00403d64
lea eax, [ebp - 0x2c]
call fcn.0040f0a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4