Function at 0x401190
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x30]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
sub eax, esi
mov edi, 0x413208
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x18], esi
je 0x401245
mov eax, dword [esp + 0x44]
mov ebp, dword [eax + 8]
test ebp, ebp
jbe 0x401240
cmp esi, ebp
ja 0x401240
movsx edx, byte [0x413208]
mov ebx, dword [eax + 4]
mov ecx, 1
sub ecx, esi
add ebp, ecx
push ebp
push edx
push ebx
call fcn.004041b0
add esp, 0xc
test eax, eax
je 0x401240
jmp 0x401212
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edi, 0x413208
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40126a
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x413208]
push ebp
push eax
push ebx
call fcn.004041b0
add esp, 0xc
test eax, eax
jne 0x40120e
mov eax, dword [0x40e254]
cmp eax, dword [0x40e254]
jne 0x40138b
mov edi, 0x413004
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x401273
jmp 0x4012e1
mov ecx, dword [esp + 0x44]
sub eax, dword [ecx + 4]
jmp 0x401245
mov eax, dword [esp + 0x44]
mov ebp, dword [eax + 8]
test ebp, ebp
jbe 0x4012dc
cmp esi, ebp
ja 0x4012dc
mov ebx, dword [eax + 4]
mov edx, 1
movsx eax, byte [0x413004]
sub edx, esi
add ebp, edx
push ebp
push eax
push ebx
call fcn.004041b0
add esp, 0xc
test eax, eax
je 0x4012dc
jmp 0x4012aa
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edi, 0x413004
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40137f
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x413004]
push ebp
push eax
push ebx
call fcn.004041b0
add esp, 0xc
test eax, eax
jne 0x4012a6
mov eax, dword [0x40e254]
cmp eax, dword [0x40e254]
jne 0x40138b
mov edx, dword [0x413520]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
and eax, 0xfff7ffff
push eax
mov eax, dword [0x413520]
push 0xffffffffffffffec
push eax
call edi
mov ecx, dword [0x413520]
push 0xfffffffffffffff0
push ecx
call esi
mov edx, dword [0x413520]
or eax, 0xc40000
push eax
push 0xfffffffffffffff0
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x413520]
push 1
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x413520]
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x413520]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x410084], 1
call fcn.004010d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
sub eax, dword [ecx + 4]
jmp 0x4012e1
mov eax, dword [0x413528]
test eax, eax
je 0x4014b1
mov edx, dword [0x413520]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push edx
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0x80000
push eax
mov eax, dword [0x413520]
push 0xffffffffffffffec
push eax
call edi
mov ecx, dword [0x413520]
push 0xfffffffffffffff0
push ecx
call esi
mov edx, dword [0x413520]
and eax, 0xff3bffff
push eax
push 0xfffffffffffffff0
push edx
call edi
mov eax, dword [0x413520]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x413520]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x410088]
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [0x41008c]
sub eax, ecx
mov dword [esp + 0x20], ecx
cdq
sub eax, edx
mov dword [esp + 0x24], esi
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [esp + 0x18], ebx
cdq
sub eax, edx
mov dword [esp + 0x1c], ebx
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [0x413548]
cmp eax, ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0xff
mov byte [esp + 0x47], 1
jne 0x401462
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [0x413548], eax
mov edx, dword [0x413544]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x413548]
lea eax, [esp + 0x44]
push 2
push eax
lea ecx, [esp + 0x20]
push ebx
push ecx
lea eax, [esp + 0x30]
push edx
mov edx, dword [0x413520]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edi
push edx
call dword [0x413528]
test eax, eax
jne 0x4014a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x410084], ebx
call fcn.004010d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret