Function at 0x505c90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0050650c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x506437
mov eax, dword [0x576340]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x506437
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x506437
cmp dword [ebp - 0x44], 0
je 0x506437
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x54], 0
jne 0x506437
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4ee4d8]
call fcn.00403c78
test al, al
je 0x505e7d
mov eax, dword [ebx + 0x54]
mov ax, word [eax + 0x4e]
and ax, 0x800
cmp ax, 0x800
je 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004f06a8
test al, al
jne 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x18], 0
jne 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x78], 0
je 0x506437
mov eax, dword [0x5765f4]
mov eax, dword [eax]
cmp word [eax + 0x8c], 1
je 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test byte [eax + 0x1c], 8
jne 0x505d9a
mov edx, dword [eax + 0x22c]
test byte [edx + 0x1c], 8
je 0x505da6
xor edx, edx
call fcn.00501c5c
jmp 0x506437
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.004505e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x505dfb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x20c]
test ebx, ebx
je 0x505dd9
cmp ebx, 0x8000
jne 0x505dfb
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x35], 1
jmp 0x506437
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x505e36
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowPos
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x505e57
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x22f], 3
jne 0x505e52
xor eax, eax
mov dword [ebp - 0x3c], eax
jmp 0x505e57
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x505e76
call fcn.004f0550
test al, al
je 0x505e76
mov dword [ebp - 0x1c], 5
jmp 0x505edf
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x505edf
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x506437
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
push 0xffffffffffffffec
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
mov ebx, eax
and ebx, 8
cmp ebx, 8
jne 0x505ed5
call sub.user32.dll_GetActiveWindow
cmp eax, dword [ebp - 0x44]
jne 0x505ecc
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowPos
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x505eda
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00506b8c
test eax, 0x1180
jne 0x505efc
mov eax, dword [0x576638]
cmp byte [eax], 0
je 0x50605e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x35], 0
je 0x505f10
mov eax, dword [ebp - 4]
call fcn.0050664c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4ee4d8]
call fcn.00403c78
test al, al
je 0x505f3d
mov edx, ebx
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
call fcn.004f00c8
jmp 0x506076
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x506057
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call fcn.004da698
push 0xcc0020
mov esi, dword [ebp - 0x50]
push esi
mov ebx, dword [ebp - 0x54]
push ebx
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.00509310
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.005092fc
push eax
mov eax, dword [ebp - 4]
call fcn.005064b8
add eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.00506480
add eax, ebx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
call fcn.0042e194
call fcn.00429900
push eax
call sub.gdi32.dll_BitBlt
push 0
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.00509310
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.005064b8
add eax, dword [ebp - 0x50]
add ebx, eax
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
xor edx, edx
call fcn.005092fc
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00506480
add eax, dword [ebp - 0x54]
add ebx, eax
push ebx
mov eax, dword [ebp - 4]
call fcn.005064b8
add eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.00506480
add eax, dword [ebp - 0x54]
pop edx
pop ecx
call fcn.00407208
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov cl, 0xff
call fcn.004ca884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506076
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_ReleaseDC
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp byte [eax + 0x35], 0
je 0x506076
mov eax, dword [ebp - 4]
call fcn.0050664c
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x4ee4d8]
call fcn.00403c78
test al, al
je 0x5060b6
cmp byte [ebx + 0x1ec], 0
je 0x5060b6
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00506564
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.004f0424
add ebx, eax
add ebx, 4
mov dword [ebp - 0x14], ebx
jmp 0x5060c1
mov eax, dword [ebp - 4]
call fcn.005064b8
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
call fcn.004f037c
push eax
mov eax, dword [ebp - 4]
call fcn.004f0404
mov ebx, eax
pop eax
sub ebx, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00506564
add ebx, dword [ebp - 0x74]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
cmp dword [ebp - 0x3c], 0
jne 0x506146
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x506130
mov eax, dword [ebp - 4]
call fcn.00506b8c
and eax, 1
cmp eax, 1
jne 0x506140
push 3
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x3c], eax
jmp 0x506146
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov ebx, 0x610
cmp byte [ebp - 5], 0
jne 0x506167
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x48]
jne 0x506167
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp edi, dword [eax + 0x4c]
je 0x50616d
mov byte [ebp - 0x35], 1
jmp 0x506174
or ebx, 1
mov byte [ebp - 0x35], 0
cmp byte [ebp - 5], 0
jne 0x50617d
or ebx, 8
lea ecx, [ebp - 0xe]
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x18]
call fcn.00407224
call fcn.004dc3c4
and al, byte [ebp - 0x35]
je 0x50640b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x50640b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
xor edx, edx
xor eax, eax
call fcn.00407224
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x4ee4d8]
call fcn.00403c78
test al, al
je 0x50621b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x50621b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
mov al, byte [eax + 0x2e1]
mov byte [ebp - 0x3e], al
jmp 0x506221
mov al, byte [ebp - 6]
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3d], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp esi, dword [eax + 0x48]
jne 0x50623d
cmp edi, dword [eax + 0x4c]
je 0x506256
push esi
sub edi, dword [ebp - 0x1c]
push edi
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x18]
mov esi, dword [eax]
call dword [esi + 0x84]
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00506a64
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
mov eax, esi
mov edx, dword [0x4ee4d8]
call fcn.00403c78
test al, al
je 0x506305
mov eax, dword [esi + 0x22c]
cmp byte [eax + 0x22b], 2
jne 0x506305
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov esi, dword [eax + 0x40]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00506564
sub edi, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x22c]
call fcn.004505e0
mov cl, 1
mov edx, dword [ebp - 4]
call fcn.004f037c
mov edx, edi
sub edx, eax
sub edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.00449578
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x24], eax
push 2
lea eax, [ebp - 0x40]
push eax
push 0x1fffffff
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x40]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x10000000
cmp eax, 0x10000000
je 0x5063e5
cmp byte [ebp - 6], 0
jne 0x50639f
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowLongA
push 0x253
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
cmp byte [ebp - 6], 0
jne 0x506430
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
mov eax, dword [ebp - 0x44]
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x506430
or ebx, 1
or ebx, 2
push ebx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
jmp 0x506430
or ebx, 1
push ebx
push 0
push 0
mov eax, dword [ebp - 0xa]
push eax
mov eax, dword [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret