Function at 0x401940
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.004020b0
mov eax, dword [0x4179d8]
mov dword [esp], 0x41329c
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 [0x417a68]
push eax
call fcn.004020c0
mov edx, dword [0x4179d8]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x58]
call fcn.00401de0
lea ecx, [esp + 0x7c]
call fcn.00402240
lea eax, [esp + 0x58]
lea ecx, [esp + 0x60]
push eax
push ecx
push 0x4179e0
mov dword [esp + 0x64], 0x413290
mov dword [esp + 0x80], 0x41328c
mov dword [esp + 0x84], 0x413288
call fcn.00402380
mov eax, dword [0x4179e8]
push 0
push 0x4024e0
push 0
push 0x82
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
jne 0x401a35
lea ecx, [esp + 0x58]
lea edx, [esp + 0x7c]
neg ecx
sbb ecx, ecx
and ecx, edx
call fcn.00402470
lea ecx, [esp + 0x10]
call fcn.00402350
lea ecx, [esp + 4]
call fcn.00402350
xor eax, eax
add esp, 0x98
ret
push ebx
push ebp
push esi
push 0
call fcn.004017f0
mov eax, dword [esp + 0x6c]
add esp, 4
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 0x401ab1
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 0x401aea
push 0
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
call ebp
test eax, eax
jne 0x401aea
mov eax, esi
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
inc esi
call dword [eax + 4]
test eax, eax
jne 0x401ac2
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 0x401abe
test eax, eax
je 0x401b4a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call dword [eax]
test eax, eax
jne 0x401b2d
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.004023c0
add esp, 4
test eax, eax
je 0x401abe
mov ebx, 1
xor esi, esi
jmp 0x401abe
mov esi, dword [esp + 0x30]
cmp esi, 1
jne 0x401b61
push esi
call fcn.004017f0
add esp, 4
call fcn.004016f0
mov ecx, dword [0x4179d8]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x417a68]
push eax
call fcn.00402140
mov edx, dword [0x4179d8]
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.00402470
lea ecx, [esp + 0xc]
call fcn.00401da0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret