Function at 0x1400028d0
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.1400342c0
call fcn.140009770
mov rcx, rax
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140002946
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, [0x140058268]
mov r15d, 1
or rbp, 0xffffffffffffffff
test r13, 0xffffffffffff0000
jne 0x14000299d
movzx edi, r13w
mov ecx, edi
call fcn.14000a040
test rax, rax
je 0x140002a6c
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001c50
mov rsi, qword [rsp + 0x30]
jmp 0x140002a6c
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 0x140002a16
mov edx, r15d
sub edx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, edx
jge 0x1400029df
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001f00
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 0x140002a0b
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], r12w
jmp 0x140002a6c
mov ecx, 0x80070057
call fcn.140002160
int3
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140002a6c
cmp dword [rdx + 0x10], 0
jge 0x140002a44
cmp dword [rsi - 0xc], 0
jge 0x140002a3a
mov ecx, 0x80070057
call fcn.140002160
int3
mov dword [rsi - 0x10], r12d
mov word [rsi], r12w
jmp 0x140002a6c
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002a5a
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 0x140002ae0
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 0x140002ad8
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002d0d
call fcn.140009770
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140002b00
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 0x140002b51
movzx edi, cx
mov ecx, edi
call fcn.14000a040
test rax, rax
je 0x140002c5a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140001c50
mov rbx, qword [rsp + 0x38]
jmp 0x140002c5a
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 0x140002bcf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140002c5a
cmp dword [rdx + 0x10], eax
jge 0x140002b9d
cmp dword [rbx - 0xc], eax
jge 0x140002b90
mov ecx, 0x80070057
call fcn.140002160
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140002c5a
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140002bb3
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 0x140002c5a
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 0x140002bfd
mov edx, ecx
lea rcx, [rsp + 0x38]
call fcn.140001f00
mov rbx, qword [rsp + 0x38]
cmp r13, r12
ja 0x140002c21
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.140031658
jmp 0x140002c3f
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.1400315c0
test edi, edi
js 0x140002d02
cmp edi, dword [rbx - 0xc]
jg 0x140002d02
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
lea rdi, [rbx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x140002cb6
cmp dword [rsi + 0x10], 0
jl 0x140002ca4
mov rax, qword [rsi]
cmp qword [rdi], rax
jne 0x140002ca4
mov rcx, rdi
call fcn.140001b20
mov rbx, rax
mov ecx, ebp
lock xadd dword [rsi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140002c99
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 0x140002cb6
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001f60
nop
mov eax, ebp
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140002ccf
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 0x140002cfd
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
jmp 0x140002d0d
mov ecx, 0x80070057
call fcn.140002160
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400315a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret