Function at 0x512fdc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x244], 0
je 0x5137c7
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_IsIconic
test eax, eax
jne 0x5137c7
mov byte [0x57e224], 1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
test eax, eax
je 0x51306c
cmp dword [eax + 0x28], 0
jne 0x51303b
call fcn.005534ec
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowRgn
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.00552ea8
jmp 0x51308d
mov eax, dword [ebp - 0x5c]
call fcn.0053ea38
push 0
mov ecx, dword [0x57ebe0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48dae0]
call fcn.00469678
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x244]
mov esi, dword [eax + 0x48]
test esi, esi
je 0x5137c7
mov eax, esi
call fcn.0050b1ac
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
call fcn.0042bf5c
call fcn.00427438
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x25c]
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
call fcn.00512538
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x28c], 0
jne 0x513102
push 0x1fffffff
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x3c]
call fcn.005573ec
lea edx, [ebp - 0x9c]
mov cl, 0xff
mov eax, dword [ebp - 0x3c]
call fcn.0049a634
cmp dword [ebp - 0x3c], 0
je 0x5137c7
mov eax, dword [ebp - 0x3c]
call fcn.0042bf5c
call fcn.00427820
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x3c]
call fcn.00557454
movzx eax, bx
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x60], 0x718
lea ecx, [ebp - 0x74]
xor edx, edx
xor eax, eax
call fcn.005574a0
cmp dword [ebp - 0x10], 0
jle 0x513158
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.00557b64
jmp 0x513163
mov dl, byte [ebp - 0xc]
lea eax, [ebp - 0x54]
call fcn.00557b64
xor eax, eax
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x28c], 0
je 0x513284
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.0044f9e4
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_IsZoomed
test eax, eax
je 0x5131ca
mov dl, 1
mov eax, dword [ebp - 0x5c]
call fcn.005394c0
mov ebx, eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.00537164
add eax, 4
cmp ebx, eax
jl 0x5131ce
xor ebx, ebx
jmp 0x5131d0
mov bl, 1
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0xcc], bl
test bl, bl
je 0x513228
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x28c]
xor ecx, ecx
call fcn.00537088
mov ebx, eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
call fcn.00543714
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.00537254
add esi, eax
add ebx, esi
mov dword [ebp - 0x78], ebx
jmp 0x513239
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.00552ce8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x28c]
xor ecx, ecx
call fcn.00537088
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.00537228
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
call fcn.00543714
add ebx, dword [ebp - 0x9c]
mov dword [ebp - 0x7c], ebx
jmp 0x5132b8
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x5c]
call fcn.00538120
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 0x3c]
call fcn.0051297c
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowLongA
push 0xffffffffffffffec
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x513341
mov dl, 3
mov eax, dword [ebp - 0x6c]
call fcn.0046af84
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.0044f800
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.0044f824
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowLongA
or esi, 0xffffffff
jmp 0x51336d
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
test byte [eax + 0x2f4], 8
je 0x51335d
mov dl, 3
mov eax, dword [ebp - 0x6c]
call fcn.0046af84
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
mov esi, eax
push 0
call sub.USER32.DLL_GetDC
mov ebx, eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
test eax, 0x80000
jne 0x5133b3
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowLongA
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042bf5c
call fcn.0042794c
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
mov eax, dword [0x57e864]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x8c]
sub edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x6c]
mov edi, dword [eax]
call dword [edi + 0x84]
push 0x65b
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowPos
push 4
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x40]
push eax
push esi
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowPos
lea eax, [ebp - 0x68]
call fcn.0050b1a0
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x58]
call fcn.005573ec
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042bf5c
call fcn.0042794c
xor ecx, ecx
pop edx
call fcn.00505bd8
push 3
mov eax, dword [ebp - 0x58]
call fcn.0042bf5c
call fcn.0042794c
push eax
call sub.GDI32.DLL_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x513535
push ebp
call fcn.005129b0
pop ecx
xor esi, esi
cmp esi, dword [ebp - 0x10]
jg 0x51352f
push ebp
call fcn.00512b8c
pop ecx
call sub.KERNEL32.DLL_GetTickCount_1
mov edi, eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042bf5c
call fcn.0042794c
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
mov eax, dword [0x57e864]
mov eax, dword [eax]
call eax
push ebp
call fcn.00512e48
pop ecx
inc esi
cmp dword [ebp - 0x10], 0
jle 0x51352a
mov edx, 0xc
mov eax, edi
call fcn.00557b24
cmp esi, dword [ebp - 0x10]
jle 0x5134cc
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
or eax, 4
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
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 - 0x3c]
call fcn.0042bf5c
call fcn.0042794c
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
mov eax, dword [0x57e864]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x58]
call fcn.0040ff68
push ebx
push 0
call sub.USER32.DLL_ReleaseDC
cmp dword [ebp - 0x5c], 0
je 0x5137c7
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x256], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
xor ecx, ecx
mov dl, 1
call fcn.005141c0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x57e234]
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_ShowWindow
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowPos
push ebp
call fcn.00512f3c
pop ecx
mov byte [0x57e224], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
test eax, eax
je 0x51364e
mov byte [eax + 0x24], 1
mov eax, dword [0x57e994]
cmp dword [eax], 6
jne 0x513694
mov eax, dword [0x57ec64]
cmp dword [eax], 0
jne 0x513694
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowLongA
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x28c], 0
je 0x5136ac
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 0x5c]
call fcn.00538284
push 0x585
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
call sub.USER32.DLL_RedrawWindow
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
test eax, eax
je 0x5136da
mov byte [eax + 0x24], 0
lea eax, [ebp - 0x3c]
call fcn.0040ff68
call fcn.00537388
test al, al
je 0x5136f2
push 0x18
call sub.KERNEL32.DLL_Sleep
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
call fcn.004568a4
push eax
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowPos
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x28c], 0
jne 0x513732
lea eax, [ebp - 0x6c]
call fcn.0040ff68
jmp 0x5137a9
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
xor ecx, ecx
xor edx, edx
call fcn.005532b4
push eax
mov eax, dword [ebp - 0x6c]
call fcn.004568a4
push eax
call sub.USER32.DLL_SetWindowRgn
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x244]
call fcn.005303a8
mov eax, dword [eax + 0x7894]
cmp byte [eax + 5], 0
jne 0x513790
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x244]
call fcn.005303a8
cmp dword [eax + 0x78b0], 0
jle 0x5137a2
mov eax, dword [0x57e8ac]
cmp dword [eax], 7
jle 0x5137a2
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
mov cl, 0xff
mov dl, 1
call fcn.00552170
push ebp
call fcn.00512f3c
pop ecx
mov eax, dword [ebp - 0x5c]
cmp word [eax + 0xaa], 0
je 0x5137c7
mov ebx, dword [ebp - 0x5c]
xor edx, edx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4