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 esi, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00404120
cmp eax, 0xb7
jne 0x401852
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.00401d11
mov eax, 2
jmp 0x401c43
dec eax
jne 0x401b2d
mov dword [esp], 4
call fcn.00402158
xor edx, edx
test eax, eax
je 0x401882
mov dword [esp + 4], str.__l4j_no_splash
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
mov dword [esp], 0x1f
mov dword [0x40b00c], edx
call fcn.00402158
mov edx, 1
test eax, eax
mov dword [0x40b008], eax
jne 0x4018cb
mov dword [esp], 0xb
call fcn.00402158
xor edx, edx
test eax, eax
je 0x4018cb
mov dword [esp + 4], str.__l4j_dont_wait
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
cmp dword [0x40b00c], 0
mov dword [0x40b010], edx
jne 0x4018e2
test edx, edx
je 0x401aec
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], 0x408020
mov dword [esp + 4], str.STATIC
mov dword [esp], pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
sub esp, 0x30
cmp dword [0x40b00c], 0
mov dword [0x40b074], eax
je 0x401aec
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.0040205e
test eax, eax
je 0x401999
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..data], edx
imul eax, dword [section..data], 0x3e8
mov dword [esp], 7
mov dword [section..data], eax
call fcn.00402158
xor edx, edx
test eax, eax
je 0x4019d1
mov dword [esp + 4], str.__l4j_no_splash_err
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
sete dl
mov dword [esp], 5
mov dword [0x40b078], edx
call fcn.00402158
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 [0x40b070], eax
call sub.user32.dll_LoadImageA
sub esp, 0x18
test eax, eax
je 0x401b2d
mov dword [esp + 0xc], eax
mov eax, dword [0x40b074]
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 [0x40b074]
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 [0x40b074]
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 [0x40b074]
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x40b074]
push ebx
push ebx
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
push esi
lea ebx, [ebp - 0x34]
cmp dword [0x40b00c], 0
jne 0x401b01
cmp dword [0x40b010], 0
je 0x401b3c
mov eax, dword [0x40b074]
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 0x401b3c
call fcn.00401f26
mov eax, 1
jmp 0x401c43
mov dword [esp + 4], 0x40b014
mov dword [esp], 0
call fcn.00404357
test eax, eax
je 0x401b2d
cmp dword [0x40b00c], 0
jne 0x401b90
cmp dword [0x40b010], 0
jne 0x401b90
mov eax, dword [0x40b07c]
test eax, eax
je 0x401b7f
mov dword [esp + 4], eax
mov dword [esp], str.Exit_code:_t0_n
call sub.msvcrt.dll_fputs
call fcn.00404333
call fcn.00401d11
xor eax, eax
jmp 0x401c43
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 0x401bcb
mov dword [esp], ebx
call sub.user32.dll_TranslateMessage
push esi
mov dword [esp], ebx
call sub.user32.dll_DispatchMessageA
push edi
jmp 0x401b90
cmp dword [0x40b008], 0
je 0x401bfb
mov edx, dword [0x40b014]
test edx, edx
je 0x401bfb
mov eax, dword [0x40b07c]
test eax, eax
je 0x401bfb
mov dword [esp + 8], edx
mov dword [esp + 4], str.Exit_code:_t_d__restarting_the_application__n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
call fcn.00404333
cmp dword [0x40b008], 0
je 0x401c16
cmp dword [0x40b014], 0
jne 0x401aef
mov eax, dword [0x40b07c]
test eax, eax
je 0x401c39
mov edx, dword [0x40b014]
mov dword [esp + 4], str.Exit_code:_t_d_n
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
call fcn.00401d11
mov eax, dword [0x40b014]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10