Function at 0x401803
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov esi, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00404890
cmp eax, 0xb7
jne 0x40185a
call fcn.0040173c
mov dword [esp + 4], 5
mov dword [esp], eax
mov ebx, eax
call sub.user32.dll_ShowWindow
push edi
push edi
mov dword [esp], ebx
call sub.user32.dll_SetForegroundWindow
push eax
call fcn.00401d21
mov eax, 2
jmp 0x401c4b
dec eax
jne 0x401b35
mov dword [esp], 4
call fcn.00402168
xor edx, edx
test eax, eax
je 0x40188a
mov dword [esp + 4], section..xvlk_2
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
mov dword [esp], 0x1f
mov dword [0x41000c], edx
call fcn.00402168
mov edx, 1
test eax, eax
mov dword [0x410008], eax
jne 0x4018d3
mov dword [esp], 0xb
call fcn.00402168
xor edx, edx
test eax, eax
je 0x4018d3
mov dword [esp + 4], 0x40d010
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
cmp dword [0x41000c], 0
mov dword [0x410010], edx
jne 0x4018ea
test edx, edx
je 0x401af4
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], 0x40d020
mov dword [esp + 4], 0x40d021
mov dword [esp], pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
sub esp, 0x30
cmp dword [0x41000c], 0
mov dword [0x410a24], eax
je 0x401af4
xor eax, eax
mov ecx, 0xa
lea edi, [ebp - 0x3e]
rep stosb byte es:[edi], al
lea edi, [ebp - 0x3e]
mov dword [esp + 4], edi
mov dword [esp], 6
call fcn.0040206e
test eax, eax
je 0x4019a1
mov dword [esp], edi
call sub.msvcrt.dll_atoi
mov edx, 0x3c
lea ecx, [eax - 1]
cmp ecx, 0x384
cmovb edx, eax
mov dword [section..xvlk_1], edx
imul eax, dword [section..xvlk_1], 0x3e8
mov dword [esp], 7
mov dword [section..xvlk_1], eax
call fcn.00402168
xor edx, edx
test eax, eax
je 0x4019d9
mov dword [esp + 4], 0x40d028
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
mov dword [esp], 5
mov dword [0x410a28], edx
call fcn.00402168
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
mov dword [0x410a20], eax
call sub.user32.dll_LoadImageA
sub esp, 0x18
test eax, eax
je 0x401b35
mov dword [esp + 0xc], eax
mov eax, dword [0x410a24]
mov ebx, 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [0x410a24]
mov dword [esp], eax
call sub.user32.dll_GetWindowRect
push eax
push eax
mov dword [esp], 0
call sub.user32.dll_GetSystemMetrics
add eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
push edx
cdq
idiv ebx
mov dword [esp], 1
mov esi, eax
call sub.user32.dll_GetSystemMetrics
add eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x28]
push ecx
cdq
idiv ebx
mov dword [esp + 8], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x410a24]
mov dword [esp], eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp + 0x14]
sub esp, 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x410a24]
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x410a24]
push ebx
push ebx
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
push esi
lea ebx, [ebp - 0x34]
cmp dword [0x41000c], 0
jne 0x401b09
cmp dword [0x410010], 0
je 0x401b44
mov eax, dword [0x410a24]
mov dword [esp + 0xc], 0x4015d0
mov dword [esp + 8], 0x64
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.user32.dll_SetTimer
sub esp, 0x10
test eax, eax
jne 0x401b44
call fcn.00401f36
mov eax, 1
jmp 0x401c4b
mov dword [esp + 4], 0x410014
mov dword [esp], 0
call fcn.00403a11
test eax, eax
je 0x401b35
cmp dword [0x41000c], 0
jne 0x401b98
cmp dword [0x410010], 0
jne 0x401b98
mov eax, dword [0x410a2c]
test eax, eax
je 0x401b87
mov dword [esp + 4], eax
mov dword [esp], 0x40d03c
call sub.msvcrt.dll_fputs
call fcn.004039ed
call fcn.00401d21
xor eax, eax
jmp 0x401c4b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.user32.dll_GetMessageA
sub esp, 0x10
test eax, eax
je 0x401bd3
mov dword [esp], ebx
call sub.user32.dll_TranslateMessage
push esi
mov dword [esp], ebx
call sub.user32.dll_DispatchMessageA
push edi
jmp 0x401b98
cmp dword [0x410008], 0
je 0x401c03
mov edx, dword [0x410014]
test edx, edx
je 0x401c03
mov eax, dword [0x410a2c]
test eax, eax
je 0x401c03
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40d04a
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
call fcn.004039ed
cmp dword [0x410008], 0
je 0x401c1e
cmp dword [0x410014], 0
jne 0x401af7
mov eax, dword [0x410a2c]
test eax, eax
je 0x401c41
mov edx, dword [0x410014]
mov dword [esp + 4], 0x40d076
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
call fcn.00401d21
mov eax, dword [0x410014]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10