Function at 0x140004b40
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x690]
sub rsp, 0x790
mov rax, qword [0x14002c0b8]
xor rax, rsp
mov qword [rbp + 0x680], rax
mov rsi, rcx
mov dword [rsp + 0x40], pe_nt_image_headers64
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 [0x14002ddb8], 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 0x14000509c
mov qword [rsp + 0x7c8], r14
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
xor ecx, ecx
mov rdi, rax
call fcn.140008470
movsxd rcx, eax
call fcn.14000c838
mov rbx, rax
mov r14, rax
test rax, rax
je 0x140004c10
mov rdx, rdi
mov rcx, rax
call fcn.140008470
mov rcx, rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd rcx, eax
call fcn.14000c838
mov rcx, rax
test rax, rax
jne 0x140004c4c
lea ecx, [rdi + 1]
call fcn.1400120ac
mov rcx, rax
lea rdx, str.Insufficient_memory_in_WinMain___n
call fcn.140005220
lea eax, [rdi + 1]
jmp 0x140005094
movzx eax, byte [rbx]
test al, al
je 0x140004cf4
xor r9d, r9d
nop word [rax + 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 fcn.14000c824
mov rcx, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140004d14
test rax, rax
jne 0x140004d44
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.140006d30
mov qword [0x14002ddb0], rax
test rax, rax
jne 0x140004d79
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 0x140005094
mov edx, 0x32
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadIconA]
mov rcx, qword [0x14002ddb0]
mov rdx, rax
call fcn.140007820
lea rsi, str.gswin64.ini
mov qword [rsp + 0x28], rsi
lea r9, [rbp + 0x480]
lea r8, str.Courier_New
mov dword [rsp + 0x20], pe_nt_image_headers64
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 [0x14002ddb0]
lea rdx, [rbp + 0x480]
mov r8d, eax
mov ebx, eax
call fcn.140006940
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, [0x140020fa4]
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 [0x14002ddb0]
mov edx, 0x50
mov r8d, edx
call fcn.1400078f0
mov rcx, qword [0x14002ddb0]
lea r8, str.__run_r
lea rdx, [0x140021024]
call fcn.140006620
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x380]
lea rcx, str.Text
call fcn.140008000
test eax, eax
jne 0x140004ef5
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 0x140004ef5
mov eax, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [0x14002ddb0]
mov dword [rsp + 0x20], eax
call fcn.1400078d0
mov rcx, qword [0x14002ddb0]
lea rdx, str.Ghostscript
mov r8d, r15d
call fcn.140006370
test eax, eax
jne 0x1400050b9
mov rcx, qword [0x14002ddb0]
call fcn.140006b50
mov rcx, rax
mov qword [0x14002dcd0], rax
call fcn.1400047b0
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.1400052b0
mov ebx, eax
test eax, eax
je 0x140005012
mov rcx, qword [0x14002ddb0]
cmp dword [rcx + 0x64], 0
jne 0x140005019
lea rdx, str._nClose_this_window_with_the_close_button_on_the_title_bar_or_the_system_menu._n
call fcn.140007320
mov rcx, qword [0x14002ddb0]
call fcn.140006b50
mov rcx, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140004f94
mov rcx, qword [0x14002ddb0]
call fcn.140006b50
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14002ddb0]
call fcn.140006b50
mov rcx, rax
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [0x14002ddb0]
call fcn.140006b50
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_FlashWindow]
mov rcx, qword [0x14002ddb0]
cmp dword [rcx + 0x64], 0
jne 0x140005019
xor r9d, r9d
lea rcx, [rbp + 0x350]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140005012
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 [0x14002ddb0]
cmp dword [rcx + 0x64], 0
je 0x140004fd0
jmp 0x140005019
mov rcx, qword [0x14002ddb0]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
call fcn.140006d00
test eax, eax
jne 0x14000507b
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.140008180
mov rcx, qword [0x14002ddb0]
call fcn.140006580
mov eax, ebx
mov qword [0x14002ddb0], 0
mov r14, qword [rsp + 0x7c8]
mov rcx, qword [rbp + 0x680]
xor rcx, rsp
call fcn.1400085c0
add rsp, 0x790
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 1
call fcn.140011f80
int3