Function at 0x100005f84
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x4b0
mov rax, qword [0x100021380]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbx, rcx
mov r12, r8
mov rbp, rdx
lea rcx, [rsp + 0x80]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x38], rdi
call fcn.100014da0
xor r11d, r11d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x70], r11
mov dword [rsp + 0x78], 8
mov dword [rsp + 0x40], edi
call fcn.100008958
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov qword [rsp + 0x48], rdi
call fcn.1000086d4
cmp eax, 1
jne 0x10000621d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor edx, edx
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], edi
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov ecx, dword [rsp + 0x30]
call fcn.10000ca78
mov rsi, rax
cmp rax, rdi
jne 0x10000607e
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1000088b0
lea r11, [0x100004728]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], r11
call fcn.100008fcc
xor eax, eax
jmp 0x100006235
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
lea r8d, [rdx + 2]
mov r9, rsi
mov dword [rsp + 0x20], eax
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.1000088b0
cmp ebx, edi
je 0x10000621d
mov r8, qword [rsi + 0x20]
mov ebx, 0x104
lea rcx, [rsp + 0x80]
mov rdx, rbx
mov r9d, edi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rdi
je 0x1000060f9
movzx eax, word [r8]
cmp ax, di
je 0x1000060f9
mov word [rcx], ax
add r8, 2
add rcx, 2
sub rdx, 1
jne 0x1000060d3
cmp rdx, rdi
jne 0x100006108
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], di
cmp r9d, edi
je 0x10000611d
mov rcx, rsi
call fcn.10000ca6c
jmp 0x100006061
lea rcx, [rsp + 0x80]
mov edx, 0x5c
call fcn.10000c82c
cmp rax, rdi
jne 0x10000615b
mov rax, qword [rsi + 0x20]
lea r8, [0x100003b78]
lea rcx, [rsp + 0x80]
mov r9, rbp
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.1000055e4
cmp eax, edi
jne 0x100006110
mov rcx, rsi
call fcn.10000ca6c
lea rcx, [rsp + 0x290]
xor edx, edx
mov r8d, 0x208
call fcn.100014da0
lea r11, [rsp + 0x80]
lea r9, [rsp + 0x290]
mov qword [rsp + 0x28], r11
lea r8, [0x100003b34]
lea rdx, [0x100003b88]
lea rcx, [0x100003bb0]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jne 0x1000061f2
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x290]
lea r8, [0x100003b34]
mov qword [rsp + 0x28], rax
lea rdx, [0x100003c00]
lea rcx, [0x100003c18]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0x290]
lea r8, [0x100003b78]
mov r9, rbp
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.1000055e4
cmp eax, edi
jne 0x10000621d
mov edi, 1
lea r11, [0x100004728]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], r11
call fcn.100008fcc
mov eax, edi
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.10000c740
add rsp, 0x4b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret