Function at 0x140002a10
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 [0x140063cf0]
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.140030880
call fcn.140004c98
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140002a86
mov ecx, 0x80004005
call fcn.140002160
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x30], rsi
lea r13, [0x140054098]
mov r15d, 1
or rbp, 0xffffffffffffffff
test r13, 0xffffffffffff0000
jne 0x140002add
movzx edi, r13w
mov ecx, edi
call fcn.140005454
test rax, rax
je 0x140002bac
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001ca0
mov rsi, qword [rsp + 0x30]
jmp 0x140002bac
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 0x140002b56
mov edx, r15d
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x140002b1f
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001f50
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 0x140002b4b
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], r12w
jmp 0x140002bac
mov ecx, 0x80070057
call fcn.140002160
int3
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140002bac
cmp dword [rdx + 0x10], 0
jge 0x140002b84
cmp dword [rsi - 0xc], 0
jge 0x140002b7a
mov ecx, 0x80070057
call fcn.140002160
int3
mov dword [rsi - 0x10], r12d
mov word [rsi], r12w
jmp 0x140002bac
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002b9a
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 0x140002c20
lea rcx, [rsi - 0x18]
call fcn.140001b70
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rsi - 8], ebp
dec ebp
test ebp, ebp
jg 0x140002c18
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002e63
call fcn.140004c98
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140002c40
mov ecx, 0x80004005
call fcn.140002160
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 0x140002c91
movzx edi, cx
mov ecx, edi
call fcn.140005454
test rax, rax
je 0x140002d9a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001ca0
mov rbx, qword [rsp + 0x38]
jmp 0x140002d9a
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 0x140002d0f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140002d9a
cmp dword [rdx + 0x10], eax
jge 0x140002cdd
cmp dword [rbx - 0xc], eax
jge 0x140002cd0
mov ecx, 0x80070057
call fcn.140002160
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140002d9a
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002cf3
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 0x140002d9a
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 0x140002d3d
mov edx, ecx
lea rcx, [rsp + 0x38]
call fcn.140001f50
mov rbx, qword [rsp + 0x38]
cmp r13, r12
ja 0x140002d61
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.14002cfec
jmp 0x140002d7f
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.14002cf54
test edi, edi
js 0x140002e58
cmp edi, dword [rbx - 0xc]
jg 0x140002e58
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
lea rdi, [rbx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x140002df6
cmp dword [rsi + 0x10], 0
jl 0x140002de4
mov rax, qword [rsi]
cmp qword [rdi], rax
jne 0x140002de4
mov rcx, rdi
call fcn.140001b70
mov rbx, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002dd9
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 0x140002df6
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001fb0
nop
mov eax, ebp
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140002e0f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x30]
mov r8, rdi
lea rdx, str.EBAPI_Name___s__r_n
lea rcx, vtable.CWriteLog.0
call fcn.140001440
lea rcx, [rdi - 0x18]
call fcn.140001b70
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rdi - 8], ebp
dec ebp
test ebp, ebp
jg 0x140002e53
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002e63
mov ecx, 0x80070057
call fcn.140002160
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002ce30
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret