Function at 0x140045320
Capabilities:
Read .ini file

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10c30]
mov eax, 0x10d30
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10d60], rbx
mov qword [rsp + 0x10d68], rsi
mov qword [rsp + 0x10d70], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x10c20], rax
xor r8d, r8d
lea rdx, str.CBaseDlgSetAdditionalDriver::OnInitDialogForPCL
lea rcx, [rsp + 0x58]
call fcn.1400075a0
nop
lea rax, str.Driver_98Me
mov qword [rbp - 0x58], rax
lea rax, str.Driver_NT40
mov qword [rbp - 0x50], rax
lea rax, str.Driver_w32
mov qword [rbp - 0x48], rax
lea rax, str.Driver_x64
mov qword [rbp - 0x40], rax
lea rax, str.Driver_IA64
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x1c], 4
mov dword [rbp - 0x18], 8
mov dword [rbp - 0x14], reloc.WSOCK32.dll_recv
mov dword [rbp - 0x10], 0x20
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x420]
lea rdx, str.PortSelectCount
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x420]
call fcn.14024740c
mov ebx, eax
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
lea edx, [rbx - 1]
mov rcx, rax
call qword [r8 + 0x68]
mov qword [rsp + 0x68], rax
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x420]
lea rdx, str.ADDITIONALS
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x420]
call fcn.14024740c
mov edi, eax
mov dword [rsp + 0x38], eax
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1b0]
mov ebx, eax
mov dword [rsp + 0x3c], eax
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea r8, str.InsDrv.ini
mov edx, 0x104
lea rcx, [rbp]
call fcn.140246470
cmp ebx, 4
je 0x1400454d5
mov eax, 2
mov ecx, 5
cmp ebx, 8
cmovne eax, ecx
jmp 0x1400454da
mov eax, 1
xor r14d, r14d
mov r13d, r14d
mov qword [rsp + 0x40], r14
movsxd r12, eax
mov qword [rsp + 0x50], r12
test eax, eax
jle 0x140045a4e
cmp ebx, 0x10
jne 0x140045500
cmp r13, 4
jmp 0x140045509
cmp ebx, 0x20
jne 0x14004550f
cmp r13, 3
je 0x1400459d2
mov rax, qword [rbp + r13*8 - 0x58]
mov qword [rsp + 0x70], rax
lea r9, [rbp]
mov r8d, 0x7fff
lea rdx, [rbp + 0xc20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov esi, eax
call fcn.140102a14
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
je 0x140045a43
mov r9, qword [rax]
mov edx, 0x7fff
mov r8d, 2
mov rcx, rax
call qword [r9]
test rax, rax
je 0x140045a3d
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
cmp dword [rbx - 0xc], 0x7fff
jl 0x140045a32
lea r15, [rbx - 0x10]
mov dword [r15], 0x7fff
mov word [rbx + 0xfffe], r14w
mov r9d, 0xfffe
lea r8, [rbp + 0xc20]
mov edx, r9d
mov rcx, rbx
call fcn.1402471ac
nop
call fcn.140102a14
mov r11, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
je 0x140045a27
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov edi, r14d
lea rcx, [rbp - 0x80]
call fcn.140105848
nop
test esi, esi
je 0x14004597f
nop word [rax + rax]
test edi, edi
js 0x1400457ed
cmp edi, dword [r15]
jge 0x1400457ed
xor edx, edx
movsxd rax, edi
lea rcx, [rbx + rax*2]
call fcn.140247344
test rax, rax
je 0x1400457ed
sub rax, rbx
sar rax, 1
test eax, eax
jle 0x1400457ed
lea r13d, [rax + 1]
mov r9d, r13d
mov r8d, edi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.14000d690
nop
mov r12, qword [rax]
lea rdx, [r12 - 0x18]
mov rcx, qword [rsp + 0x30]
lea rbx, [rcx - 0x18]
cmp rdx, rbx
je 0x140045788
cmp dword [rbx + 0x10], 0
jl 0x14004569b
mov rax, qword [rbx]
cmp qword [rdx], rax
jne 0x14004569b
mov rcx, rdx
call fcn.140006190
mov rdi, rax
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x14004568d
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x140045788
movsxd rdi, dword [r12 - 0x10]
test edi, edi
jne 0x140045704
mov rdi, qword [rbx]
cmp dword [rbx + 8], 0
je 0x140045788
cmp dword [rbx + 0x10], 0
jge 0x1400456d3
cmp dword [rcx - 0xc], 0
jl 0x1400459e4
mov dword [rcx - 0x10], r14d
mov rax, qword [rsp + 0x30]
mov word [rax], r14w
jmp 0x140045788
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
test eax, eax
jg 0x1400456ed
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x140045788
test r12, r12
je 0x140045a05
mov r14d, dword [rcx - 0x10]
mov rsi, r12
sub rsi, rcx
sar rsi, 1
test edi, edi
js 0x1400459fa
mov edx, 1
sub edx, dword [rbx + 0x10]
mov eax, dword [rbx + 0xc]
sub eax, edi
or eax, edx
jge 0x140045744
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140005e40
mov rcx, qword [rsp + 0x30]
lea rbx, [rdi + rdi]
movsxd rdx, dword [rcx - 0xc]
mov r9, rbx
add rdx, rdx
cmp rsi, r14
ja 0x140045762
lea r8, [rcx + rsi*2]
call fcn.1402457b4
jmp 0x14004576a
mov r8, r12
call fcn.1402471ac
mov rax, qword [rsp + 0x30]
cmp edi, dword [rax - 0xc]
jg 0x1400459ef
mov dword [rax - 0x10], edi
mov rax, qword [rsp + 0x30]
xor r14d, r14d
mov word [rax + rbx], r14w
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400457a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0x10], 1
jl 0x1400457ed
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x80]
call fcn.140105e58
mov edi, r13d
test r13d, r13d
js 0x140045a10
cmp r13d, dword [r15]
jg 0x140045a10
movsxd rax, r13d
mov rbx, qword [rsp + 0x48]
cmp word [rbx + rax*2], 0
jne 0x1400455f0
mov r12d, r14d
mov rsi, r14
mov rcx, qword [rbp - 0x70]
mov r14, qword [rsp + 0x68]
test rcx, rcx
jle 0x14004592c
test rsi, rsi
js 0x140045a21
cmp rsi, rcx
jge 0x140045a21
mov rax, qword [rbp - 0x78]
mov rbx, qword [rax + rsi*8]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140045842
cmp rax, qword [rbx - 0x18]
jne 0x140045842
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x14004587d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x140045a1b
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1402471ac
lea rbx, [rdi + 0x18]
mov qword [rbp - 0x28], rbx
lea rdi, [r14 + 8]
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str._t_t_tDrvList__s__CheckAdditionalDriver_s_
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov rdx, rdi
mov rcx, rbx
call fcn.140245e24
test rax, rax
jne 0x1400458ea
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400458d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
inc rsi
movsxd rax, r12d
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jl 0x140045805
jmp 0x14004592c
lea r9, [r14 + 8]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, str._t_t_tDriver_s_was_found_on__s_section
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140045972
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140045972
lea r9, [r14 + 8]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, str._t_t_tDriver_s_counld_not_be_found_on__s_section
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov r13, qword [rsp + 0x40]
mov r11d, dword [rbp + r13*4 - 0x20]
not r11d
mov edi, dword [rsp + 0x38]
and edi, r11d
mov dword [rsp + 0x38], edi
mov r12, qword [rsp + 0x50]
xor r14d, r14d
jmp 0x140045983
xor r14d, r14d
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x40]
mov edi, dword [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140105ce4
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400459ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400459ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rsp + 0x3c]
inc r13
mov qword [rsp + 0x40], r13
cmp r13, r12
jge 0x140045a4e
jmp 0x1400454f5
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
nop
mov ecx, 0x80070057
call fcn.140005210
int3
call fcn.140020970
int3
call fcn.140102ffc
nop
mov ecx, 0x80004005
call fcn.140005210
nop
mov ecx, 0x80070057
call fcn.140005210
int3
call fcn.140020970
int3
mov ecx, 0x80004005
call fcn.140005210
int3
mov r9d, edi
lea r8, str._t_t_tAdditionals_allowed__x
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.140007780
mov dword [rsp + 0x20], edi
lea r9, [0x1402dc3ec]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x210]
call fcn.14024679c
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x210]
lea rdx, str.ADDITIONALS
mov rcx, rax
call qword [r9 + 0x20]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x58]
call fcn.140007780
nop
lea rcx, [rsp + 0x58]
call fcn.140007730
mov eax, 1
mov rcx, qword [rbp + 0x10c20]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x10d30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret