Function at 0x103082a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x103d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x254], eax
call dword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
and dword [ebp - 0x240], 0
push 0xa
pop ecx
mov ebx, eax
push 0x101cfb8
xor eax, eax
lea edi, [ebp - 0x27c]
rep stosd dword es:[edi], eax
push 4
mov edi, 0x1000000
push edi
push edx
push ebx
mov dword [ebp - 0x248], edx
call esi
push 0x101cf98
push 4
push edi
push dword [ebp - 0x248]
push ebx
call esi
add esp, 0x28
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
mov dword [ebp - 0x230], 0x22c
push dword [ebp - 0x23c]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
jne 0x10308e3
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x1030bcc
or dword [ebp - 0x228], 0x40800
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x10308d8
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.01031dde
test byte [ebp + 0x10], 0x20
je 0x1030925
and dword [ebp - 0x240], 0
cmp dword [ebp - 0x240], 1
jne 0x1030961
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.0102d888
test eax, eax
je 0x1030961
push 0x101cf5c
push 4
push edi
push dword [ebp - 0x248]
mov dword [ebp - 0x240], 2
push ebx
call esi
add esp, 0x14
cmp dword [ebp - 0x240], 0
je 0x103099a
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.01031fa6
test eax, eax
je 0x103099a
and dword [ebp - 0x240], 0
push 0x101cf10
push 4
push edi
push dword [ebp - 0x248]
push ebx
call esi
add esp, 0x14
mov eax, dword [ebp - 0x240]
sub eax, 0
je 0x1030bb8
dec eax
je 0x1030aa2
dec eax
je 0x10309bf
push 0x101cedc
push 1
jmp 0x1030ade
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.01030688
mov dword [ebp - 0x234], eax
test eax, eax
je 0x1030bd2
call fcn.01031ec1
mov dword [0x103d0a8], eax
test eax, eax
je 0x1030a7c
push 0x101cecc
push eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
push 0x101cebc
push dword [0x103d0a8]
mov dword [ebp - 0x244], eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x250], eax
je 0x1030a6e
test eax, eax
je 0x1030a6e
call dword [ebp - 0x244]
test eax, eax
jl 0x1030bd2
call dword [ebp - 0x250]
test eax, eax
je 0x1030a67
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x254]
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.0102ff76
jmp 0x1030bcc
push 0x101ce84
jmp 0x1030adc
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101ce40
jmp 0x1030a88
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101ce18
push 2
push edi
push dword [ebp - 0x248]
mov dword [ebp - 0x234], eax
push ebx
call esi
add esp, 0x18
jmp 0x1030bd2
mov eax, dword [ebp + 0x10]
or eax, 0x80
push eax
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.01030688
push dword [ebp - 0x238]
mov dword [ebp - 0x234], eax
push dword [ebp - 0x23c]
call fcn.0102da51
test eax, eax
je 0x1030af0
push 0x101cdc8
push 4
push edi
push dword [ebp - 0x248]
push ebx
call esi
add esp, 0x14
jmp 0x1030bd2
call fcn.01031ec1
mov dword [0x103d0a8], eax
test eax, eax
je 0x1030b9d
push 0x101cecc
push eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
push 0x101cebc
push dword [0x103d0a8]
mov dword [ebp - 0x244], eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x250], eax
je 0x1030b8f
test eax, eax
je 0x1030b8f
call dword [ebp - 0x244]
test eax, eax
jl 0x1030bb8
call dword [ebp - 0x250]
test eax, eax
je 0x1030b79
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x254]
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.0102ff76
mov dword [ebp - 0x234], eax
test eax, eax
je 0x1030bd2
jmp 0x1030bb8
push 0x101ce84
push 4
push edi
push dword [ebp - 0x248]
push ebx
call esi
add esp, 0x14
jmp 0x1030bb8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101ce40
jmp 0x1030ba9
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x101ce18
push 2
push edi
push dword [ebp - 0x248]
push ebx
call esi
add esp, 0x18
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
call fcn.01030688
mov dword [ebp - 0x234], eax
push 0x101cdb0
push dword [0x103d0a8]
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1030bf3
lea ecx, [ebp - 0x27c]
push ecx
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
call fcn.01034b90
leave
ret 0x10