Function at 0x140004b40
Capabilities:
Accept command line arguments
Read .ini file
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x690]
sub rsp, 0x790
mov rax, qword [0x14000e0b8]
xor rax, rsp
mov qword [rbp + 0x680], rax
mov rsi, rcx
mov dword [rsp + 0x40], 0x100
lea rcx, str.user32.dll
mov r15d, r9d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SetProcessDPIAware
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004b9f
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14000e7f8], rsi
test rdi, rdi
je 0x140004bd7
mov r9d, 0x10
lea r8, str.Ghostscript
lea rdx, str.Cant_run_twice
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1400050ac
mov qword [rsp + 0x7c8], r14
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
xor ecx, ecx
mov rdi, rax
call fcn.140008440
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov r14, rax
test rax, rax
je 0x140004c11
mov rdx, rdi
mov rcx, rax
call fcn.140008440
mov rcx, rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
jne 0x140004c4f
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Insufficient_memory_in_WinMain___n
call fcn.140005230
lea eax, [rdi + 1]
jmp 0x1400050a4
movzx eax, byte [rbx]
test al, al
je 0x140004cf4
xor r9d, r9d
nop dword [rax]
cmp r9, 0x7f
jge 0x140004cf4
mov rdx, rcx
test al, al
je 0x140004cb0
cmp al, 0x20
je 0x140004cb0
cmp al, 0x22
jne 0x140004c99
movzx eax, byte [rbx + 1]
inc rbx
test al, al
je 0x140004c9e
cmp al, 0x22
je 0x140004c9e
inc rbx
mov byte [rcx], al
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x140004c84
jmp 0x140004c9e
mov byte [rcx], al
inc rcx
movzx eax, byte [rbx]
test al, al
je 0x140004cb0
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x140004c71
mov byte [rcx], 0
inc edi
movzx eax, byte [rbx]
inc rcx
mov qword [rsp + r9*8 + 0x50], rdx
movzx r8d, al
inc r9
test al, al
je 0x140004ceb
movzx edx, al
nop
movzx r8d, dl
cmp dl, 0x20
jne 0x140004ceb
movzx eax, byte [rbx + 1]
inc rbx
movzx edx, al
movzx r8d, al
test al, al
jne 0x140004cd0
test r8b, r8b
jne 0x140004c60
movsxd rax, edi
mov rcx, r14
mov qword [rsp + rax*8 + 0x50], 0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140004d15
test rax, rax
jne 0x140004d45
mov r8d, 0xff
lea rdx, [rbp + 0x580]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0x580]
mov qword [rsp + 0x50], rax
call fcn.140006d50
mov qword [0x14000e7f0], rax
test rax, rax
jne 0x140004d7a
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Ghostscript
lea rdx, str.Cant_create_text_window
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x1400050a4
mov edx, 0x32
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadIconA]
mov rcx, qword [0x14000e7f0]
mov rdx, rax
call fcn.140007840
lea rsi, str.gswin64.ini
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0x480]
lea r8, str.Courier_New
mov dword [rsp + 0x20], 0x100
lea rdx, str.FontName
lea rcx, str.Text
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r9, rsi
lea rdx, str.FontSize
mov r8d, 0xa
lea rcx, str.Text
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rcx, qword [0x14000e7f0]
lea rdx, [rbp + 0x480]
mov r8d, eax
mov ebx, eax
call fcn.140006960
mov r9, rsi
lea r8, [rbp + 0x480]
lea rdx, str.FontName
lea rcx, str.Text
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov r8d, ebx
lea rdx, [0x14000af64]
lea rcx, [rbp + 0x350]
call fcn.140001600
mov r9, rsi
lea r8, [rbp + 0x350]
lea rdx, str.FontSize
lea rcx, str.Text
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rcx, qword [0x14000e7f0]
mov edx, 0x50
mov r8d, edx
call fcn.140007910
mov rcx, qword [0x14000e7f0]
lea r8, str.__run_r
lea rdx, [0x14000afe4]
call fcn.140006640
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x380]
lea rcx, str.Text
call fcn.140008030
test eax, eax
jne 0x140004ef6
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea rdx, str._d__d__d__d
lea rcx, [rbp + 0x380]
call fcn.140004960
cmp eax, 4
jne 0x140004ef6
mov eax, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [0x14000e7f0]
mov dword [rsp + 0x20], eax
call fcn.1400078f0
mov rcx, qword [0x14000e7f0]
lea rdx, str.Ghostscript
mov r8d, r15d
call fcn.140006380
test eax, eax
je 0x140004f1c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x14000e7f0]
call fcn.140006b70
mov rcx, rax
mov qword [0x14000e718], rax
call fcn.1400047b0
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.1400052c0
mov ebx, eax
test eax, eax
je 0x140005022
mov rcx, qword [0x14000e7f0]
cmp dword [rcx + 0x64], 0
jne 0x140005029
lea rdx, str._nClose_this_window_with_the_close_button_on_the_title_bar_or_the_system_menu._n
call fcn.140007340
mov rcx, qword [0x14000e7f0]
call fcn.140006b70
mov rcx, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140004f9d
mov rcx, qword [0x14000e7f0]
call fcn.140006b70
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000e7f0]
call fcn.140006b70
mov rcx, rax
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [0x14000e7f0]
call fcn.140006b70
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_FlashWindow]
mov rcx, qword [0x14000e7f0]
cmp dword [rcx + 0x64], 0
jne 0x140005029
nop dword [rax]
xor r9d, r9d
lea rcx, [rbp + 0x350]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140005022
lea rcx, [rbp + 0x350]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x350]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rcx, qword [0x14000e7f0]
cmp dword [rcx + 0x64], 0
je 0x140004fe0
jmp 0x140005029
mov rcx, qword [0x14000e7f0]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
call fcn.140006d20
test eax, eax
jne 0x14000508b
mov eax, dword [rsp + 0x30]
lea rdx, str._d__d__d__d
mov r9d, dword [rsp + 0x38]
lea rcx, [rbp + 0x380]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
call fcn.140001600
lea rdx, [rbp + 0x380]
lea rcx, str.Text
call fcn.1400081b0
mov rcx, qword [0x14000e7f0]
call fcn.1400065a0
mov eax, ebx
mov qword [0x14000e7f0], 0
mov r14, qword [rsp + 0x7c8]
mov rcx, qword [rbp + 0x680]
xor rcx, rsp
call fcn.1400088e0
add rsp, 0x790
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret