Function at 0x140057c10
Capabilities:
Link many functions at runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14030a918]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov rbx, rcx
xor r15d, r15d
mov qword [r11 - 0x40], r15
movdqa xmm0, xmmword [0x1402c55e0]
movdqu xmmword [r11 - 0x30], xmm0
mov word [r11 - 0x40], r15w
mov byte [r11 - 0x48], r15b
lea rdx, str.srl::SetupLib::Initialize
lea rcx, [r11 - 0x40]
call fcn.140009b0c
nop
call fcn.14001ff80
cmp dword [rax + 8], 4
jl 0x140057c84
lea rcx, [rsp + 0x240]
call fcn.140015b20
nop
lea rsi, [rbx + 0x28]
mov qword [rsp + 0x30], rsi
cmp byte [rsi], 0
jne 0x14005845b
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x1400583f0
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.SetupDiGetDeviceInstanceIdW
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
lea rdx, str.SetupFindFirstLineW
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x58], rax
lea rdx, str.SetupFindNextLine
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
lea rdx, str.SetupGetLineTextW
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
lea rdx, str.SetupOpenInfFileW
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
lea rdx, str.SetupCloseInfFile
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
lea rdx, str.SetupDiOpenDevRegKey
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
cmp qword [rbx + 0x38], 0
je 0x140057df2
cmp qword [rbx + 0x40], 0
je 0x140057df2
cmp qword [rbx + 0x48], 0
je 0x140057df2
cmp qword [rbx + 0x50], 0
je 0x140057df2
cmp qword [rbx + 0x58], 0
je 0x140057df2
cmp qword [rbx + 0x60], 0
je 0x140057df2
cmp qword [rbx + 0x68], 0
je 0x140057df2
cmp qword [rbx + 0x70], 0
je 0x140057df2
cmp qword [rbx + 0x78], 0
je 0x140057df2
cmp qword [rbx + 0x80], 0
je 0x140057df2
test rax, rax
je 0x140057df2
mov byte [rsi], 1
jmp 0x14005845b
call fcn.14001ff80
cmp dword [rax + 8], 1
jl 0x14005845b
call fcn.14001ff80
mov rdi, rax
lea rcx, [rsp + 0xa0]
call fcn.140018c90
nop
mov qword [rsp + 0x1c0], r15
mov qword [rsp + 0x1d8], 7
mov qword [rsp + 0x1d0], 3
mov eax, dword [0x1402bec18]
mov dword [rsp + 0x1c0], eax
movzx eax, word [0x1402bec1c]
mov word [rsp + 0x1c4], ax
mov word [rsp + 0x1c6], r15w
mov qword [rsp + 0x1a0], r15
mov rdx, r15
mov qword [rsp + 0x1b0], rdx
mov r8d, 7
mov qword [rsp + 0x1b8], r8
mov word [rsp + 0x1a0], r15w
mov ebx, r15d
nop dword [rax]
cmp ebx, dword [rdi + 0x10]
jge 0x140057f23
cmp ebx, 0xa
jge 0x140057f23
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x1a0]
cmp rax, 2
jb 0x140057ef2
lea rax, [rdx + 2]
mov qword [rsp + 0x1b0], rax
cmp r8, 8
cmovae rcx, qword [rsp + 0x1a0]
mov eax, dword [0x1402bebf0]
mov dword [rcx + rdx*2], eax
mov word [rcx + rdx*2 + 4], r15w
inc ebx
mov r8, qword [rsp + 0x1b8]
mov rdx, qword [rsp + 0x1b0]
jmp 0x140057e90
mov qword [rsp + 0x20], 2
lea r9, [0x1402bebf0]
mov edx, 2
call fcn.140021070
inc ebx
mov r8, qword [rsp + 0x1b8]
mov rdx, qword [rsp + 0x1b0]
jmp 0x140057e90
mov qword [rsp + 0x200], r15
mov qword [rsp + 0x210], r15
mov qword [rsp + 0x218], 7
mov word [rsp + 0x200], r15w
mov qword [rsp + 0x1e0], r15
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x1f8], 7
mov word [rsp + 0x1e0], r15w
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0x200]
mov rcx, rdi
call fcn.1400200d0
lea rdi, [rsp + 0x1a0]
cmp qword [rsp + 0x1b8], 8
cmovae rdi, qword [rsp + 0x1a0]
mov edx, 0x2040
lea rcx, [rsp + 0x38]
call fcn.140214148
mov rcx, qword [rsp + 0xb0]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0xb0]
add rcx, rdx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae rdx, qword [rsp + 0x200]
mov r8, qword [rsp + 0x210]
lea rcx, [rsp + 0xb0]
call fcn.140016460
mov rbx, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x48]
call fcn.140214148
mov r14, rax
lea rdx, [0x1402be728]
mov rcx, rbx
call fcn.1400161a0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov edx, dword [r14 + 8]
call qword [r14]
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.140214170
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x30
mov word [rcx + rbx + 0x58], ax
lea edx, [rax - 0x2d]
lea rcx, [rsp + 0x68]
call fcn.14021415c
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x1e0]
cmp qword [rsp + 0x1f8], 8
cmovae rdx, qword [rsp + 0x1e0]
mov r8, qword [rsp + 0x1f0]
mov rcx, rbx
call fcn.140016460
mov rbx, rax
mov edx, 5
lea rcx, [rsp + 0x78]
call fcn.140214170
mov r14, rax
lea rdx, [0x1402be728]
mov rcx, rbx
call fcn.1400161a0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rdx, qword [r14 + 8]
call qword [r14]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, 0x20
mov word [rcx + rbx + 0x58], ax
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x88]
call fcn.140214148
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov edx, dword [rax + 8]
call qword [rax]
lea rdx, [rsp + 0x1c0]
cmp qword [rsp + 0x1d8], 8
cmovae rdx, qword [rsp + 0x1c0]
mov r8, qword [rsp + 0x1d0]
mov rcx, rbx
call fcn.140016460
lea rdx, [0x1402bec20]
mov rcx, rax
call fcn.1400161a0
mov rdx, rdi
mov rcx, rax
call fcn.1400161a0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14031a0b4], eax
jg 0x14005849e
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0xb8]
call fcn.140019860
nop
mov rdx, qword [reloc.OLEAUT32.dll_VariantInit]
cmp rdx, 8
jb 0x1400581d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [0x14030b5d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400581cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400584ec
call fcn.14000410c
movups xmm0, xmmword [rsp + 0x220]
movups xmmword [0x14030b5d0], xmm0
movups xmm1, xmmword [rsp + 0x230]
movups xmmword [0x14030b5e0], xmm1
mov qword [rsp + 0x230], r15
mov qword [rsp + 0x238], 7
mov word [rsp + 0x220], r15w
mov rdx, qword [rsp + 0x1f8]
cmp rdx, 8
jb 0x140058253
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005824e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400584f2
call fcn.14000410c
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x1f8], 7
mov word [rsp + 0x1e0], r15w
mov rdx, qword [rsp + 0x218]
cmp rdx, 8
jb 0x1400582b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400582b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400584f8
call fcn.14000410c
mov qword [rsp + 0x210], r15
mov qword [rsp + 0x218], 7
mov word [rsp + 0x200], r15w
mov rdx, qword [rsp + 0x1b8]
cmp rdx, 8
jb 0x14005831d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058318
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400584fe
call fcn.14000410c
mov qword [rsp + 0x1b0], r15
mov qword [rsp + 0x1b8], 7
mov word [rsp + 0x1a0], r15w
mov rdx, qword [rsp + 0x1d8]
cmp rdx, 8
jb 0x140058382
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005837d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058504
call fcn.14000410c
mov qword [rsp + 0x1d0], r15
mov qword [rsp + 0x1d8], 7
mov word [rsp + 0x1c0], r15w
lea rcx, [rsp + 0xa0]
call fcn.140018b80
call fcn.14001ff80
lea rdx, [0x14030b5d0]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14030b5d0]
mov r8, qword [0x14030b5e0]
mov rcx, rax
call fcn.140016460
lea rdx, str.Error_getting_proc_addresses_from_Setup_library.
mov rcx, rax
call fcn.1400161a0
mov rcx, rax
call fcn.1400173b0
jmp 0x14005845b
call fcn.14001ff80
cmp dword [rax + 8], 1
jl 0x14005845b
call fcn.14001ff80
mov edx, 1
mov rcx, rax
call fcn.140020420
mov rbx, rax
call fcn.14001ff80
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140058422
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140016460
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failure_to_load_setupapi.dll:
mov rcx, rdi
call fcn.1400161a0
mov edx, ebx
mov rcx, rax
call fcn.140018e90
mov rcx, rax
call fcn.1400173b0
nop
jmp 0x140058462
movzx ebx, byte [rsi]
lea rcx, [rsp + 0x240]
call fcn.140017440
movzx eax, bl
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.140211820
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [0x14031a0b4]
call fcn.140211c44
cmp dword [0x14031a0b4], 0xffffffff
jne 0x140058174
mov qword [0x14030b5d0], r15
movdqa xmm0, xmmword [0x1402c55e0]
movdqu xmmword [0x14030b5e0], xmm0
lea rcx, [0x14025d5c0]
call fcn.140211a78
lea rcx, [0x14031a0b4]
call fcn.140211be4
nop
jmp 0x140058174
call fcn.14021a85c
nop
call fcn.14021a85c
nop
call fcn.14021a85c
nop
call fcn.14021a85c
nop
call fcn.14021a85c
int3