Function at 0x140001010
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14000e0b8]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp qword [rcx], 0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x1400015d8
xor ecx, ecx
mov qword [rsp + 0x488], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000107d
inc rax
jmp 0x140001082
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov byte [rax], 0
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001090
lea r14, [0x14000a660]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400010b0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
cmp rax, 0x20
jae 0x140001104
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x400
lea rdx, [rsp + 0x40]
lea rcx, str.GS_DLL
call fcn.140007c90
test eax, eax
jne 0x140001104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
mov rcx, qword [rbx]
cmp rcx, 0x20
jae 0x14000111c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx], rax
mov rcx, rax
mov r14, qword [rsp + 0x488]
cmp rcx, 0x20
jae 0x140001165
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Cant_load_DLL__LoadLibrary_error_code__ld
lea rcx, [rsp + 0x40]
call fcn.140001600
lea eax, [rsi - 1]
mov rcx, rdi
movsxd r8, eax
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
xor edi, edi
mov qword [rbx], rdi
lea eax, [rdi + 1]
jmp 0x1400015da
lea rdx, str.gsapi_revision
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140001187
lea rdx, str.Cant_find_gsapi_revision_n
jmp 0x14000158b
mov edx, 0x18
lea rcx, [rsp + 0x28]
call rax
test eax, eax
je 0x1400011b2
lea rdx, str.Unable_to_identify_Ghostscript_DLL_revision___it_must_be_newer_than_needed._n
lea rcx, [rsp + 0x40]
call fcn.140001600
lea rdx, [rsp + 0x40]
jmp 0x14000158b
mov r8d, dword [rsp + 0x38]
mov r9d, dword [0x14000b0cc]
cmp r8d, r9d
je 0x1400011de
lea rdx, str.Wrong_version_of_DLL_found._n__Found_version__ld_n__Need_version___ld_n
lea rcx, [rsp + 0x40]
call fcn.140001600
lea rdx, [rsp + 0x40]
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_new_instance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001203
lea rdx, str.Cant_find_gsapi_new_instance_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_delete_instance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140001228
lea rdx, str.Cant_find_gsapi_delete_instance_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_stdio
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14000124d
lea rdx, str.Cant_find_gsapi_set_stdio_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_poll
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140001272
lea rdx, str.Cant_find_gsapi_set_poll_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_display_callback
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140001297
lea rdx, str.Cant_find_gsapi_set_display_callback_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_get_default_device_list
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x1400012bc
lea rdx, str.Cant_find_gsapi_get_default_device_list_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_default_device_list
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x1400012e1
lea rdx, str.Cant_find_gsapi_set_default_device_list_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_init_with_args
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x140001306
lea rdx, str.Cant_find_gsapi_init_with_args_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_arg_encoding
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14000132b
lea rdx, str.Cant_find_gsapi_set_arg_encoding_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_string
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140001350
lea rdx, str.Cant_find_gsapi_run_string_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_exit
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140001375
lea rdx, str.Cant_find_gsapi_exit_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_arg_encoding
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14000139a
lea rdx, str.Cant_find_gsapi_set_arg_encoding_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_file
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x1400013bf
lea rdx, str.Cant_find_gsapi_run_file_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_string_begin
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
test rax, rax
jne 0x1400013e4
lea rdx, str.Cant_find_gsapi_run_string_begin_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_string_continue
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x140001409
lea rdx, str.Cant_find_gsapi_run_string_continue_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_string_end
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x140001431
lea rdx, str.Cant_find_gsapi_run_string_end_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_run_string_with_length
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x140001459
lea rdx, str.Cant_find_gsapi_run_string_with_length_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_set_param
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x140001481
lea rdx, str.Cant_find_gsapi_set_param_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_add_control_path
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x98], rax
test rax, rax
jne 0x1400014a9
lea rdx, str.Cant_find_gsapi_add_control_path_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_remove_control_path
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa0], rax
test rax, rax
jne 0x1400014d1
lea rdx, str.Cant_find_gsapi_remove_control_path_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_purge_control_paths
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa8], rax
test rax, rax
jne 0x1400014f9
lea rdx, str.Cant_find_gsapi_purge_control_paths_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_activate_path_control
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], rax
test rax, rax
jne 0x14000151e
lea rdx, str.Cant_find_gsapi_activate_path_control_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_is_path_control_active
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb8], rax
test rax, rax
jne 0x140001543
lea rdx, str.Cant_find_gsapi_is_path_control_active_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_add_fs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x140001568
lea rdx, str.Cant_find_gsapi_add_fs_n
jmp 0x14000158b
mov rcx, qword [rbx]
lea rdx, str.gsapi_remove_fs
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xc8], rax
test rax, rax
jne 0x1400015d8
lea rdx, str.Cant_find_gsapi_remove_fs_n
lea eax, [rsi - 1]
mov rcx, rdi
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rbx]
xor edi, edi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 8], rdi
test rcx, rcx
je 0x1400015ce
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rdi
mov eax, 1
jmp 0x1400015da
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400088e0
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret