Function at 0x403318
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov esi, eax
sub esi, 0x10
call fcn.00402cf8
mov eax, esi
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov edx, dword [eax + 0xc]
test dl, 8
jne 0x402de5
push 0x8000
push 0
push esi
call sub.user32.dll_ShowWindow
test eax, eax
je 0x402de0
xor edi, edi
jmp 0x402e1f
or edi, 0xffffffff
jmp 0x402e1f
mov ebx, esi
mov ebp, edx
and ebp, 0xfffffff0
xor edi, edi
push 0x1c
lea eax, [esp + 0xc]
push eax
push ebx
call sub.user32.dll_SetWindowLongW
push 0x8000
push 0
push ebx
call sub.user32.dll_ShowWindow
test eax, eax
jne 0x402e11
or edi, 0xffffffff
jmp 0x402e1f
mov esi, dword [esp + 0x14]
cmp ebp, esi
jbe 0x402e1f
sub ebp, esi
add ebx, esi
jmp 0x402dee
test edi, edi
jne 0x402e36
mov eax, dword [esp + 4]
mov edx, dword [esp]
mov dword [eax], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [eax + 4], edx
mov byte [0x578acc], 0
mov eax, edi
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
mov edx, dword [eax - 4]
test dl, 7
mov ecx, eax
push ebx
mov bl, byte [0x576055]
jne 0x403410
test bl, bl
mov ebx, dword [edx]
jne 0x403394
sub dword [edx + 0xc], 1
mov eax, dword [edx + 8]
je 0x403368
test eax, eax
mov dword [edx + 8], ecx
lea eax, [eax + 1]
mov dword [ecx - 4], eax
je 0x403350
xor eax, eax
mov byte [ebx], al
pop ebx
ret
mov ecx, dword [ebx + 4]
mov dword [edx + 0x14], ebx
mov dword [edx + 4], ecx
mov dword [ecx + 0x14], edx
mov dword [ebx + 4], edx
mov byte [ebx], 0
xor eax, eax
pop ebx
ret
test eax, eax
je 0x40337f
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov dword [ecx + 0x14], eax
xor eax, eax
cmp dword [ebx + 0x10], edx
jne 0x403382
mov dword [ebx + 0xc], eax
mov byte [ebx], al
mov eax, edx
mov edx, dword [edx - 4]
mov bl, byte [0x576055]
jmp 0x403419
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x403333
pause
cmp byte [0x5768dd], 0
jne 0x403394
push ecx
push edx
push 0
call sub.user32.dll_SystemParametersInfoW
pop edx
pop ecx
mov eax, 0x100
lock cmpxchg byte [ebx], ah
je 0x403333
push ecx
push edx
push 0xa
call sub.user32.dll_SystemParametersInfoW
pop edx
pop ecx
jmp 0x403394
mov eax, 0x100
lock cmpxchg byte [0x576a3c], ah
je 0x403425
pause
cmp byte [0x5768dd], 0
jne 0x4033d4
push 0
call sub.user32.dll_SystemParametersInfoW
mov eax, 0x100
lock cmpxchg byte [0x576a3c], ah
je 0x403425
push 0xa
call sub.user32.dll_SystemParametersInfoW
jmp 0x4033d4
test dl, 5
jne 0x403500
and edx, 0xfffffff0
test bl, bl
mov ebx, edx
push esi
mov esi, eax
jne 0x4033d4
test dword [ebx + esi - 4], 1
mov ecx, dword [ebx + esi - 4]
jne 0x403468
or ecx, 8
mov dword [ebx + esi - 4], ecx
test byte [esi - 4], 8
jne 0x403480
cmp ebx, 0x13ffe0
je 0x403498
lea eax, [ebx + 3]
mov dword [esi - 4], eax
mov dword [ebx + esi - 8], ebx
mov eax, esi
mov edx, ebx
call fcn.00402bb4
mov byte [0x576a3c], 0
xor eax, eax
pop esi
pop ebx
ret
lea eax, [ebx + esi]
and ecx, 0xfffffff0
add ebx, ecx
cmp ecx, 0xb30
jb 0x40343a
call fcn.00402b74
jmp 0x40343a
mov ecx, dword [esi - 8]
sub esi, ecx
add ebx, ecx
cmp ecx, 0xb30
jb 0x403440
mov eax, esi
call fcn.00402b74
jmp 0x403440
cmp dword [0x576a44], 0x13ffe0
jne 0x4034d0
sub esi, 0x10
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov dword [edx], eax
mov byte [0x576a3c], 0
push 0x8000
push 0
push esi
call sub.user32.dll_ShowWindow
cmp eax, 1
sbb eax, eax
pop esi
pop ebx
ret
lea ebx, [esi + 0x13ffe0]
call fcn.00402c14
mov dword [ebx - 4], 2
mov dword [0x576a44], 0x13ffe0
mov dword [0x576a40], ebx
mov byte [0x576a3c], 0
xor eax, eax
pop esi
pop ebx
ret
pop ebx
test dl, 3
je 0x402da4
mov eax, 0xffffffff
ret