Function at 0x1400028f0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140068cf8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, r8
mov r14, rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140034670
call fcn.140009b20
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140002966
mov ecx, 0x80004005
call fcn.140002150
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
lea r13, [0x140058288]
mov r15d, 1
or rbp, 0xffffffffffffffff
test r13, 0xffffffffffff0000
jne 0x1400029bd
movzx edi, r13w
mov ecx, edi
call fcn.14000a3f0
test rax, rax
je 0x140002a8c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001c50
mov rsi, qword [rsp + 0x30]
jmp 0x140002a8c
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, ebp
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [rax - 1]
test edi, edi
jle 0x140002a36
mov edx, r15d
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x1400029ff
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001ef0
mov rsi, qword [rsp + 0x30]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r9d, ebp
mov r8, r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [rsi - 0xc]
jg 0x140002a2b
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], r12w
jmp 0x140002a8c
mov ecx, 0x80070057
call fcn.140002150
int3
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140002a8c
cmp dword [rdx + 0x10], 0
jge 0x140002a64
cmp dword [rsi - 0xc], 0
jge 0x140002a5a
mov ecx, 0x80070057
call fcn.140002150
int3
mov dword [rsi - 0x10], r12d
mov word [rsi], r12w
jmp 0x140002a8c
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002a7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
lea r8, str.Error
lea rdx, str.EBAPIB6Name
lea rcx, str.PrinterDriverData
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, str.Error
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140002b00
lea rcx, [rsi - 0x18]
call fcn.140001b20
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rsi - 8], ebp
dec ebp
test ebp, ebp
jg 0x140002af8
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002d2d
call fcn.140009b20
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140002b20
mov ecx, 0x80004005
call fcn.140002150
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
test rax, 0xffffffffffff0000
jne 0x140002b71
movzx edi, cx
mov ecx, edi
call fcn.14000a3f0
test rax, rax
je 0x140002c7a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001c50
mov rbx, qword [rsp + 0x38]
jmp 0x140002c7a
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140002bef
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140002c7a
cmp dword [rdx + 0x10], eax
jge 0x140002bbd
cmp dword [rbx - 0xc], eax
jge 0x140002bb0
mov ecx, 0x80070057
call fcn.140002150
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140002c7a
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002bd3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rsi, qword [rsp + 0x30]
jmp 0x140002c7a
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0x50]
sub r13, rbx
sar r13, 1
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r15d
jge 0x140002c1d
mov edx, ecx
lea rcx, [rsp + 0x38]
call fcn.140001ef0
mov rbx, qword [rsp + 0x38]
cmp r13, r12
ja 0x140002c41
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r12
mov rcx, rbx
call fcn.140031a08
jmp 0x140002c5f
movsxd rax, edi
lea r12, [rax + rax]
movsxd rdx, dword [rbx - 0xc]
add rdx, rdx
mov r9, r12
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.140031970
test edi, edi
js 0x140002d22
cmp edi, dword [rbx - 0xc]
jg 0x140002d22
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
lea rdi, [rbx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x140002cd6
cmp dword [rsi + 0x10], 0
jl 0x140002cc4
mov rax, qword [rsi]
cmp qword [rdi], rax
jne 0x140002cc4
mov rcx, rdi
call fcn.140001b20
mov rbx, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002cb9
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x140002cd6
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001f50
nop
mov eax, ebp
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140002cef
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi - 0x18]
call fcn.140001b20
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rdi - 8], ebp
dec ebp
test ebp, ebp
jg 0x140002d1d
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002d2d
mov ecx, 0x80070057
call fcn.140002150
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140031950
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret