Function at 0x4044c0
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x4b8
mov eax, dword [0x42eb5c]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c8]
push 6
xor ebp, ebp
push ebp
push 0x425d90
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40451c
push str.SetupDiCreateDeviceInfoList
call fcn.00402470
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
add esp, 0x4b8
jmp fcn.00411aba
mov eax, dword [edi + 0x20]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 5
push 0x402
push eax
mov dword [esp + 0x2c], 0x1c
call ebx
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4049c7
push 0
push 0x100
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov ecx, dword [0x430014]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
je 0x404593
mov eax, dword [0x430014]
cmp dword [eax - 0xc], 0
jne 0x4048d9
mov ecx, dword [0x430018]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x43002c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430070]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430068]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x43003c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430084]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430080]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430034]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430020]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430064]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430054]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430060]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430088]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430024]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x43006c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x43007c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430030]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x43008c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x43001c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430078]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430028]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430050]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x43004c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430048]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430038]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430074]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x430090]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430044]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov eax, dword [0x430040]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov edx, dword [0x43005c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0041260b
add esp, 8
test eax, eax
jne 0x4048d9
mov ecx, dword [0x430058]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0041260b
add esp, 8
test eax, eax
je 0x40497e
push 0x7f
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call fcn.00412b60
add esp, 0xc
push 0
push 0x80
lea ecx, [esp + 0x140]
push ecx
push 0
push 9
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiRemoveDevice]
test eax, eax
jne 0x40496e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
push eax
push 0
push 0x1100
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404961
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40497e
lea eax, [esp + 0x138]
push eax
call fcn.00402c00
add esp, 4
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x408
push ecx
call ebx
xor edx, edx
cmp ebp, 0x5a
setl dl
push 0
add eax, edx
mov ebp, eax
mov eax, dword [edi + 0x20]
push ebp
push 0x402
push eax
call ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
add eax, 1
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x404554
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea edx, [esp + 0x2c0]
push edx
call ebp
push str.INF_
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea ecx, [esp + 0x1bc]
push ecx
call ebp
push str.INFOTHER_
lea edx, [esp + 0x1bc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [esp + 0x3c4]
push eax
call ebp
push str.INFINTERNET_
lea ecx, [esp + 0x3c4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x2bc]
push edi
push edx
call fcn.004035d0
lea eax, [esp + 0x1c0]
push edi
push eax
call fcn.004024c0
lea ecx, [esp + 0x3d0]
push edi
push ecx
call fcn.004024c0
add esp, 0x18
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [edi + 0x20]
push 0
push 0x64
push 0x402
push edx
call ebx
mov ecx, dword [esp + 0x4c4]
pop ebx
pop edi
pop esi
pop ebp
mov eax, 1
xor ecx, esp
add esp, 0x4b8
jmp fcn.00411aba