Function at 0x4017f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x98
lea ecx, [esp + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00401f50
mov eax, dword [0x417978]
mov dword [esp], 0x413294
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x417a08]
push eax
call fcn.00401f60
mov edx, dword [0x417978]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x58]
call fcn.00401c80
lea ecx, [esp + 0x7c]
call fcn.004020e0
lea eax, [esp + 0x58]
lea ecx, [esp + 0x60]
push eax
push ecx
push 0x417980
mov dword [esp + 0x64], 0x413288
mov dword [esp + 0x80], 0x413284
mov dword [esp + 0x84], 0x413280
call fcn.00402220
mov eax, dword [0x417988]
push 0
push 0x402380
push 0
push 0x82
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
jne 0x4018e5
lea ecx, [esp + 0x58]
lea edx, [esp + 0x7c]
neg ecx
sbb ecx, ecx
and ecx, edx
call fcn.00402310
lea ecx, [esp + 0x10]
call fcn.00402160
lea ecx, [esp + 4]
call fcn.00402160
xor eax, eax
add esp, 0x98
ret
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x44]
push 0
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x401957
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
sub eax, ecx
mov ecx, dword [esp + 0x58]
push 0x11
sub ecx, ebx
push 0
add ecx, esi
add eax, ebp
push 0
mov dword [esp + 0x54], ecx
push ecx
mov ecx, dword [esp + 0x78]
push eax
push 0
push ecx
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x401990
push 0
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
call ebp
test eax, eax
jne 0x401990
mov eax, esi
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
inc esi
call dword [eax + 4]
test eax, eax
jne 0x401968
xor ebx, ebx
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x401964
test eax, eax
je 0x4019f0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call dword [eax]
test eax, eax
jne 0x4019d3
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x28]
push eax
call fcn.00402260
add esp, 4
test eax, eax
je 0x401964
mov ebx, 1
xor esi, esi
jmp 0x401964
mov esi, dword [esp + 0x30]
cmp esi, 1
jne 0x4019fe
call fcn.004016f0
mov ecx, dword [0x417978]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x417a08]
push eax
call fcn.00401fe0
mov edx, dword [0x417978]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x64]
lea eax, [esp + 0x88]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.00402310
lea ecx, [esp + 0xc]
call fcn.00401c40
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret