Function at 0x10019850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1005020b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x494]
mov eax, dword [esp + 0x48c]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x488]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x490]
mov dword [esp + 0x30], eax
xor eax, eax
cmp dword [ebp + 4], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jbe 0x100198d6
call fcn.100370ab
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x100198e3
call fcn.100370ab
push esi
push ebp
push edi
push ebp
lea edx, [esp + 0x44]
push edx
mov ecx, ebp
call fcn.10004b10
push str.____SearchINFFile_start_____
call fcn.10034080
mov esi, dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListW]
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 2
push ebx
call esi
test eax, eax
je 0x10019b65
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x10019b5b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push 2
push edx
call esi
test eax, eax
je 0x10019b49
push str.SetupGetInfFileList_Success
call fcn.10034080
xor ebp, ebp
add esp, 4
cmp word [ebx], bp
je 0x10019b49
push 0x206
lea eax, [esp + 0x72]
push 0
push eax
mov word [esp + 0x78], 0
call fcn.100376a0
add esp, 0xc
cmp dword [esp + 0x1c], 0
lea edi, [ebx + ebp*2]
push edi
je 0x100199b5
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x74]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x100199c8
lea eax, [esp + 0x70]
push 0x1005392c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
push str.szInfPath:_s
call fcn.10034080
push edi
push str.lpBuffer_i_:_s
call fcn.10034080
xor esi, esi
push 0x1fe
lea edx, [esp + 0x28a]
push esi
push edx
mov word [esp + 0x290], si
call fcn.100376a0
add esp, 0x1c
xor eax, eax
push esi
push 0x100
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetINFClassW]
test eax, eax
je 0x10019b23
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x274]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10019b23
lea edx, [esp + 0x24]
push edx
push 2
push esi
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10019b3b
mov esi, dword [esp + 0x3c]
push 0xf8
add esi, 0x178
push 0
push esi
call fcn.100376a0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.100111d0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10019b18
cmp dword [esi + 0x18], 8
jb 0x10019aac
mov esi, dword [esi + 4]
jmp 0x10019aaf
add esi, 4
mov ecx, dword [esp + 0x30]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10019b18
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x44]
call fcn.100018f0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x484], 0
call fcn.100050e0
lea ecx, [esp + 0x40]
mov dword [esp + 0x480], 0xffffffff
call fcn.10001400
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
push ecx
push esi
push str.______d__s_____
call fcn.10034080
add esp, 0xc
add esi, 1
mov dword [esp + 0x20], esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebx, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [eax + ebp + 1]
cmp word [ebx + ebp*2], 0
jne 0x10019975
jmp 0x10019b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10019b6f
mov dword [esp + 0x14], 8
jmp 0x10019b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
push esi
push 0x10058d8c
call fcn.10034080
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.1003754f
add esp, 0x470
ret 0x10