Function at 0x401172
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 8
lea eax, [ebp - 8]
push edi
mov dword [0x410038], esi
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
mov dword [ebp - 4], edi
xor edi, edi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
push 0x67
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], 0x2003
mov dword [ebp - 0x48], 0x4013ef
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
mov dword [ebp - 0x38], eax
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0x65
mov dword [ebp - 0x30], edi
call fcn.00406b66
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, 0x80000000
mov ecx, eax
cmp dword [0x413e04], eax
je 0x40121c
mov eax, dword [0x413e04]
mov ecx, dword [0x413e08]
sub eax, dword [0x413dfc]
sub ecx, dword [0x413e00]
push 0
push esi
push 0
push 0
push ecx
push eax
push dword [0x413e00]
push dword [0x413dfc]
push 0x2cf0000
push 2
call fcn.00406b66
push eax
push 1
call fcn.00406b66
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x412eb8], eax
mov edi, eax
mov ecx, 0x412eb8
call fcn.00405691
mov dword [0x412ed4], 0xffffffff
mov eax, dword [0x413df8]
push eax
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x413e18], 0
jne 0x401286
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x413e20], 0
je 0x4012ba
cmp dword [0x413e0c], 0
je 0x4012ba
mov ebx, dword [0x413e28]
mov ecx, 0x412eb8
mov dword [0x413e28], 0
call fcn.0040592d
mov dword [0x413e28], ebx
jmp 0x4012cd
push 0
push 0x9c51
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x66
xor ebx, ebx
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
cmp dword [0x412ec4], ebx
je 0x401388
mov eax, dword [0x412ec4]
cmp dword [eax + 4], ebx
je 0x401388
push ebx
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40135d
push ebx
lea eax, [ebp - 0x24]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013e3
lea eax, [ebp - 0x24]
push eax
push 0xfd
push ebx
push ebx
call fcn.00408962
test eax, eax
jne 0x4012da
cmp dword [ebp - 0x24], edi
jne 0x401344
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4012da
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012da
cmp dword [0x413e30], ebx
jne 0x40137d
cmp dword [0x413e34], ebx
je 0x40137d
mov ecx, dword [0x412ec4]
call fcn.0040803c
jmp 0x4012da
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x4012da
push ebx
lea eax, [ebp - 0x24]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013e3
lea eax, [ebp - 0x24]
push eax
push 0xfd
push ebx
push ebx
call fcn.00408962
test eax, eax
jne 0x4012da
cmp dword [ebp - 0x24], edi
jne 0x4013ca
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4012da
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012da
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10