Function at 0x4015d0
Capabilities:
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00404e5f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xb7
jne 0x40162f
call fcn.00401b07
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetForegroundWindow]
call eax
sub esp, 4
call fcn.00401e9a
mov eax, 2
jmp 0x401b03
cmp dword [ebp - 0xc], 1
je 0x401644
call fcn.00402104
mov eax, 1
jmp 0x401b03
mov dword [esp], 4
call fcn.004023e4
test eax, eax
je 0x401672
mov dword [esp + 4], str.__l4j_no_splash
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401672
mov eax, 1
jmp 0x401677
mov eax, 0
mov dword [0x40b010], eax
mov dword [esp], 0x1f
call fcn.004023e4
mov dword [0x40b014], eax
mov eax, dword [0x40b014]
test eax, eax
jne 0x4016bd
mov dword [esp], 0xb
call fcn.004023e4
test eax, eax
je 0x4016c4
mov dword [esp + 4], str.__l4j_dont_wait
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x4016c4
mov eax, 1
jmp 0x4016c9
mov eax, 0
mov dword [0x40b00c], eax
mov eax, dword [0x40b010]
test eax, eax
jne 0x4016e4
mov eax, dword [0x40b00c]
test eax, eax
je 0x401964
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
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], 0x409020
mov dword [esp + 4], str.STATIC
mov dword [esp], pe_nt_image_headers32
mov eax, dword [sym.imp.user32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [0x40b074], eax
mov eax, dword [0x40b010]
test eax, eax
je 0x401964
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x22], 0
mov word [ebp - 0x1e], 0
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], 6
call fcn.00402279
test eax, eax
je 0x4017b8
lea eax, [ebp - 0x26]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [section..data], eax
mov eax, dword [section..data]
test eax, eax
jle 0x4017ae
mov eax, dword [section..data]
cmp eax, 0x384
jle 0x4017b8
mov dword [section..data], 0x3c
mov eax, dword [section..data]
imul eax, eax, 0x3e8
mov dword [section..data], eax
mov dword [esp], 7
call fcn.004023e4
test eax, eax
je 0x4017f6
mov dword [esp + 4], str.__l4j_no_splash_err
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x4017f6
mov eax, 1
jmp 0x4017fb
mov eax, 0
mov dword [0x40b078], eax
mov dword [esp], 5
call fcn.004023e4
mov dword [0x40b070], eax
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 eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_LoadImageA]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401861
call fcn.00402104
mov eax, 1
jmp 0x401b03
mov edx, dword [ebp - 0x14]
mov eax, dword [0x40b074]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [0x40b074]
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowRect]
call eax
sub esp, 8
mov dword [esp], 0
mov eax, dword [sym.imp.user32.dll_GetSystemMetrics]
call eax
sub esp, 4
mov ecx, eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub edx, eax
mov eax, edx
add eax, ecx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov dword [esp], 1
mov eax, dword [sym.imp.user32.dll_GetSystemMetrics]
call eax
sub esp, 4
mov ecx, eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub edx, eax
mov eax, edx
add eax, ecx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40b074]
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetWindowPos]
call eax
sub esp, 0x1c
mov eax, dword [0x40b074]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [0x40b074]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_UpdateWindow]
call eax
sub esp, 4
mov eax, dword [0x40b010]
test eax, eax
jne 0x401976
mov eax, dword [0x40b00c]
test eax, eax
je 0x4019b3
mov eax, dword [0x40b074]
mov dword [esp + 0xc], 0x401c74
mov dword [esp + 8], 0x64
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetTimer]
call eax
sub esp, 0x10
test eax, eax
jne 0x4019b3
call fcn.00402104
mov eax, 1
jmp 0x401b03
mov dword [esp + 4], 0x40b008
mov dword [esp], 0
call fcn.00405126
test eax, eax
jne 0x4019da
call fcn.00402104
mov eax, 1
jmp 0x401b03
mov eax, dword [0x40b010]
test eax, eax
jne 0x401a2e
mov eax, dword [0x40b00c]
test eax, eax
jne 0x401a2e
mov eax, dword [0x40b080]
test eax, eax
je 0x401a1a
mov eax, dword [0x40b080]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.Exit_code:_t0_n
call sub.msvcrt.dll_fwrite
call fcn.004050fa
call fcn.00401e9a
mov eax, 0
jmp 0x401b03
jmp 0x401a50
lea eax, [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
jne 0x401a30
mov eax, dword [0x40b014]
test eax, eax
je 0x401ab6
mov eax, dword [0x40b008]
test eax, eax
je 0x401ab6
mov eax, dword [0x40b080]
test eax, eax
je 0x401ab6
mov edx, dword [0x40b008]
mov eax, dword [0x40b080]
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.004050fa
mov eax, dword [0x40b014]
test eax, eax
je 0x401ad1
mov eax, dword [0x40b008]
test eax, eax
jne 0x401964
mov eax, dword [0x40b080]
test eax, eax
je 0x401af9
mov edx, dword [0x40b008]
mov eax, dword [0x40b080]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Exit_code:_t_d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
call fcn.00401e9a
mov eax, dword [0x40b008]
leave
ret 0x10