Function at 0x401740
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x47c
mov edx, dword [ebp + 0x10]
mov dword [esp], 0
mov esi, dword [ebp + 8]
mov dword [esp + 4], edx
call fcn.00403270
test eax, eax
mov edx, 1
jne 0x401777
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], 4
mov dword [esp], 0
call fcn.00403da0
mov dword [0x406018], eax
mov dword [esp + 4], 0xb
mov dword [esp], 0
call fcn.00403da0
mov dword [0x406014], eax
mov ecx, dword [0x406018]
test ecx, ecx
jne 0x4017bb
test eax, eax
je 0x401a37
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x8000000e
mov dword [esp + 8], 0x401280
mov dword [esp + 4], 0x401281
mov dword [esp], pe_nt_image_headers32
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x406070], eax
sub esp, 0x30
mov eax, dword [0x406018]
test eax, eax
je 0x401a00
movzx edx, byte [0x401288]
xor eax, eax
lea edi, [ebp - 0x27]
cld
mov ecx, 2
lea ebx, [ebp - 0x28]
mov byte [ebp - 0x28], dl
rep stosd dword es:[edi], eax
mov byte [edi], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 6
mov dword [esp], 0
call fcn.00403d10
test eax, eax
jne 0x401880
mov dword [esp], 0x4012a0
call fcn.00403c60
mov edx, 1
jmp 0x40176b
mov dword [esp], ebx
call sub.msvcrt.dll_atoi
mov dword [0x406080], eax
dec eax
cmp eax, 0x383
jbe 0x40189e
mov dword [esp], 0x4012e0
jmp 0x401871
mov dword [esp + 4], 7
mov dword [esp], 0
call fcn.00403da0
mov dword [0x406090], eax
mov dword [esp + 8], 0x405000
mov dword [esp + 4], 5
mov dword [esp], 0
call fcn.00403d10
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_LoadImageA]
sub esp, 0x18
test eax, eax
je 0x401b30
mov dword [esp + 0xc], eax
mov ecx, dword [0x406070]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [0x406070]
lea edx, [ebp - 0x38]
sub esp, 0x10
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [ebp - 0x30]
mov edi, eax
sub esp, 4
mov dword [esp], 1
mov eax, dword [ebp - 0x38]
sub esi, eax
sub edi, esi
mov ecx, edi
shr ecx, 0x1f
lea esi, [ecx + edi]
sar esi, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [0x406070]
sub esp, 4
sub edi, edx
sub eax, edi
mov dword [esp], ecx
mov ebx, eax
shr ebx, 0x1f
mov dword [esp + 8], esi
add eax, ebx
sar eax, 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [ebp + 0x14]
mov esi, dword [0x406070]
sub esp, 0x1c
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [0x406070]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
sub esp, 4
lea esi, [esi]
mov dword [esp + 0xc], 0x401b80
mov edi, dword [0x406070]
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 1
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, 1
sub esp, 0x10
test eax, eax
je 0x40176b
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [esp], 1
call fcn.00404190
mov dword [0x406060], eax
inc eax
je 0x401acd
mov eax, dword [0x406018]
test eax, eax
jne 0x401a75
mov edi, dword [0x406014]
test edi, edi
jne 0x401a75
xor edx, edx
jmp 0x40176b
lea ebx, [ebp - 0x458]
nop
lea esi, [esi]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetMessageA]
sub esp, 0x10
test eax, eax
je 0x401ac2
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DispatchMessageA]
sub esp, 4
jmp 0x401a80
mov edx, dword [0x406010]
jmp 0x40176b
cld
mov esi, 0x401320
lea edi, [ebp - 0x438]
mov ecx, 0xc
lea edx, [ebp - 0x407]
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [0x401350]
lea esi, [ebp - 0x438]
mov byte [edi], cl
mov dword [esp], edx
mov dword [esp + 8], 0x3cf
mov dword [esp + 4], 0
call sub.msvcrt.dll_memset
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
mov dword [esp], ebx
call sub.msvcrt.dll_strerror
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
mov dword [esp], esi
jmp 0x401871
mov dword [esp], 0x401720
jmp 0x401871