Function at 0x401801
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], 1
mov esi, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004048b8
cmp eax, 0xb7
jne 0x401858
call fcn.0040173a
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.00401d49
mov eax, 2
jmp 0x401c74
dec eax
jne 0x401b24
mov dword [esp], 4
call fcn.00402190
xor edx, edx
test eax, eax
je 0x401888
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 [0x41100c], edx
call fcn.00402190
mov edx, 1
test eax, eax
mov dword [0x411008], eax
jne 0x4018d1
mov dword [esp], 0xb
call fcn.00402190
xor edx, edx
test eax, eax
je 0x4018d1
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 [0x41100c], 0
mov dword [0x411010], edx
jne 0x4018e8
test edx, edx
je 0x401ae3
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], 0x40e020
mov dword [esp + 4], str.STATIC
mov dword [esp], pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
sub esp, 0x30
cmp dword [0x41100c], 0
mov dword [0x419c44], eax
je 0x401ae3
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.00402096
test eax, eax
je 0x40199f
mov dword [esp], edi
call sub.msvcrt.dll_atoi
mov dword [section..data], eax
dec eax
cmp eax, 0x383
jbe 0x40199f
mov dword [section..data], 0x3c
mov dword [esp], 7
call fcn.00402190
xor edx, edx
test eax, eax
je 0x4019c8
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 [0x419c48], edx
call fcn.00402190
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 [0x419c40], eax
call sub.user32.dll_LoadImageA
sub esp, 0x18
test eax, eax
je 0x401b24
mov dword [esp + 0xc], eax
mov eax, dword [0x419c44]
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 [0x419c44]
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 [0x419c44]
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 [0x419c44]
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x419c44]
push ebx
push ebx
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
push esi
lea ebx, [ebp - 0x34]
cmp dword [0x41100c], 0
jne 0x401af8
cmp dword [0x411010], 0
je 0x401b33
mov eax, dword [0x419c44]
mov dword [esp + 0xc], 0x4015d0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.user32.dll_SetTimer
sub esp, 0x10
test eax, eax
jne 0x401b33
call fcn.00401f5e
mov eax, 1
jmp 0x401c74
cmp dword [0x419c4c], 0
je 0x401b52
call fcn.00403b6e
mov dword [esp + 4], eax
mov eax, dword [0x419c4c]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
call fcn.00403b82
mov edi, eax
call fcn.00403b78
mov esi, eax
call fcn.00403b6e
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00404b97
mov dword [esp], 0x411014
call fcn.00405105
test eax, eax
je 0x401b24
cmp dword [0x41100c], 0
jne 0x401bc1
cmp dword [0x411010], 0
jne 0x401bc1
mov eax, dword [0x419c4c]
test eax, eax
je 0x401bb0
mov dword [esp + 4], eax
mov dword [esp], str.Exit_code:_t0_n
call sub.msvcrt.dll_fputs
call fcn.00403a15
call fcn.00401d49
xor eax, eax
jmp 0x401c74
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 0x401bfc
mov dword [esp], ebx
call sub.user32.dll_TranslateMessage
push esi
mov dword [esp], ebx
call sub.user32.dll_DispatchMessageA
push edi
jmp 0x401bc1
cmp dword [0x411008], 0
je 0x401c2c
mov edx, dword [0x411014]
test edx, edx
je 0x401c2c
mov eax, dword [0x419c4c]
test eax, eax
je 0x401c2c
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.00403a15
cmp dword [0x411008], 0
je 0x401c47
cmp dword [0x411014], 0
jne 0x401ae6
mov eax, dword [0x419c4c]
test eax, eax
je 0x401c6a
mov edx, dword [0x411014]
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.00401d49
mov eax, dword [0x411014]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10