Function at 0x5103bc
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 + 0x25c], 0
je 0x510c0a
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x510c0a
mov byte [0x59d228], 1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x510455
cmp dword [eax + 0x28], 0
jne 0x51041b
call fcn.0055ad44
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x6c], eax
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowRgn
test eax, eax
jne 0x510445
call fcn.005164d0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
call fcn.0055a6f4
jmp 0x510476
mov eax, dword [ebp - 0x5c]
call fcn.005447c4
push 0
mov ecx, dword [0x59da60]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x482f48]
call fcn.0045fad8
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x25c]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x510c0a
mov eax, esi
call fcn.004ee624
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.00429244
call fcn.00424544
push 0
mov eax, dword [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x28c]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.0050f91c
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x2bc], 0
jne 0x510519
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x3c], 0
je 0x5104f6
push 0x1fffffff
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
call fcn.005485a0
lea edx, [ebp - 0x9c]
mov cl, 0xff
mov eax, dword [ebp - 0x2c]
call fcn.004fc238
jmp 0x510519
push 0x1fffffff
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x2c]
call fcn.0051724c
lea edx, [ebp - 0x9c]
mov cl, 0xff
mov eax, dword [ebp - 0x2c]
call fcn.004fc238
cmp dword [ebp - 0x2c], 0
je 0x510c0a
mov eax, dword [ebp - 0x2c]
call fcn.00429244
call fcn.00424924
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x2c]
call fcn.0051731c
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.00517368
cmp dword [ebp - 0x10], 0
jle 0x51056f
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.00517a80
jmp 0x51057a
mov dl, byte [ebp - 0xc]
lea eax, [ebp - 0x54]
call fcn.00517a80
xor eax, eax
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x2bc], 0
je 0x510697
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.00446b2c
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x5105dd
mov dl, 1
mov eax, dword [ebp - 0x5c]
call fcn.0053ed9c
mov ebx, eax
xor edx, edx
mov eax, dword [ebp - 0x5c]
call fcn.0053c238
add eax, 4
cmp ebx, eax
jl 0x5105e1
xor ebx, ebx
jmp 0x5105e3
mov bl, 1
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0xd5], bl
test bl, bl
je 0x51063b
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x2bc]
xor ecx, ecx
call fcn.0053c140
mov ebx, eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
call fcn.00549d48
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
call fcn.0053c350
add esi, eax
add ebx, esi
mov dword [ebp - 0x78], ebx
jmp 0x51064c
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
call fcn.0055a4d0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
mov edx, dword [ebp - 0x5c]
mov edx, dword [edx + 0x2bc]
xor ecx, ecx
call fcn.0053c140
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
call fcn.0053c32c
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x5c]
call fcn.00549d48
add ebx, dword [ebp - 0x9c]
mov dword [ebp - 0x7c], ebx
jmp 0x5106cb
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x5c]
call fcn.0053d234
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x234]
mov edx, dword [ebp - 0x2c]
call fcn.0050fd40
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowLongA
test eax, eax
jne 0x5106fa
call fcn.005164d0
push 0xffffffffffffffec
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x510766
mov dl, 3
mov eax, dword [ebp - 0x6c]
call fcn.004613e4
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.00446948
xor edx, edx
mov eax, dword [ebp - 0x6c]
call fcn.0044696c
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowLongA
test eax, eax
jne 0x510761
call fcn.005164d0
or esi, 0xffffffff
jmp 0x510792
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
test byte [eax + 0x2f4], 8
je 0x510782
mov dl, 3
mov eax, dword [ebp - 0x6c]
call fcn.004613e4
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
mov esi, eax
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
jne 0x5107e1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowLongA
test eax, eax
jne 0x5107e1
call fcn.005164d0
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00429244
call fcn.00424a50
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call dword [0x59eed8]
test al, al
jne 0x51081d
call fcn.005164d0
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 - 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.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
test eax, eax
jne 0x510872
call fcn.005164d0
push 4
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
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.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
test eax, eax
jne 0x5108b4
call fcn.005164d0
lea eax, [ebp - 0x68]
call fcn.004ee618
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x58]
call fcn.0051724c
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00429244
call fcn.00424a50
xor ecx, ecx
pop edx
call fcn.004e84c4
push 3
mov eax, dword [ebp - 0x58]
call fcn.00429244
call fcn.00424a50
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x510989
push ebp
call fcn.0050fd74
pop ecx
xor esi, esi
cmp esi, dword [ebp - 0x10]
jg 0x510983
push ebp
call fcn.0050ff3c
pop ecx
call sub.kernel32.dll_GetTickCount
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.00429244
call fcn.00424a50
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call dword [0x59eed8]
test al, al
jne 0x510960
call fcn.005164d0
push ebp
call fcn.00510200
pop ecx
test al, al
je 0x510983
inc esi
cmp dword [ebp - 0x10], 0
jle 0x51097e
mov edx, 0xc
mov eax, edi
call fcn.00517a34
cmp esi, dword [ebp - 0x10]
jle 0x510916
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.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
test eax, eax
jne 0x5109c5
call fcn.005164d0
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00429244
call fcn.00424a50
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call dword [0x59eed8]
test al, al
jne 0x510a01
call fcn.005164d0
lea eax, [ebp - 0x58]
call fcn.0040f078
push ebx
push 0
call sub.user32.dll_ReleaseDC
cmp dword [ebp - 0x5c], 0
je 0x510c0a
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x287], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
xor ecx, ecx
mov dl, 1
call fcn.00511610
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x59d238]
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_ShowWindow
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
test eax, eax
jne 0x510a9b
call fcn.005164d0
push ebp
call fcn.00510314
pop ecx
mov byte [0x59d228], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x510aba
mov byte [eax + 0x25], 1
mov eax, dword [0x59d8b8]
cmp dword [eax], 6
jne 0x510b09
mov eax, dword [0x59dabc]
cmp dword [eax], 0
jne 0x510b09
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowLongA
test eax, eax
jne 0x510b09
call fcn.005164d0
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x2bc], 0
je 0x510b21
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 0x5c]
call fcn.0053d41c
push 0x585
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28c]
call fcn.0044d9ac
push eax
call sub.user32.dll_RedrawWindow
test eax, eax
jne 0x510b47
call fcn.005164d0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x510b58
mov byte [eax + 0x25], 0
lea eax, [ebp - 0x2c]
call fcn.0040f078
call fcn.0053c484
test al, al
je 0x510b70
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 + 0x28c]
call fcn.0044d9ac
push eax
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
test eax, eax
jne 0x510ba3
call fcn.005164d0
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x2bc], 0
jne 0x510bb9
lea eax, [ebp - 0x6c]
call fcn.0040f078
jmp 0x510bec
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x2bc]
xor ecx, ecx
xor edx, edx
call fcn.0055ab0c
push eax
mov eax, dword [ebp - 0x6c]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowRgn
test eax, eax
jne 0x510be5
call fcn.005164d0
push ebp
call fcn.00510314
pop ecx
mov eax, dword [ebp - 0x5c]
cmp word [eax + 0xb2], 0
je 0x510c0a
mov ebx, dword [ebp - 0x5c]
xor edx, edx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4