Function at 0x403890
Capabilities:
Delete file
Get common file path
Query or enumerate registry key
Query or enumerate registry value
Set file attributes

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x22c]
mov esi, ecx
push 0x104
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esi + 4]
test eax, eax
jne 0x403a45
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x24]
push ecx
push str._sinfMosusbsr.inf
push edx
call fcn.004103cb
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea eax, [esp + 0x24]
push 0x80
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
push edx
push str._sinfMosusbsr.PNF
push eax
call fcn.004103cb
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call edi
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push str._sinfmosuSrPt.inf
push ecx
call fcn.004103cb
add esp, 0xc
lea edx, [esp + 0x24]
push 0x80
push edx
call esi
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x24]
push ecx
push str._sinfmosuSrPt.PNF
push edx
call fcn.004103cb
add esp, 0xc
lea eax, [esp + 0x24]
push 0x80
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
push edx
push str._sinfotherMOSCHIP_Semiconductor_Pvt_LtdmosUsbSr.inf
push eax
call fcn.004103cb
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call edi
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push str._sinfotherMOSCHIP_Semiconductor_Pvt_LtdmosuSrPt.inf
push ecx
call fcn.004103cb
add esp, 0xc
lea edx, [esp + 0x24]
push 0x80
push edx
call esi
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x24]
push ecx
push str._sinfotherMosChip_Semiconductor_TechnologymosuSrPt.inf
push edx
call fcn.004103cb
add esp, 0xc
lea eax, [esp + 0x24]
push 0x80
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
push edx
push str._sinfotherMosChip_Semiconductor_Technologymosusbsr.inf
push eax
call fcn.004103cb
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push str._sinfMosUComp.inf
push ecx
call fcn.004103cb
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea edx, [esp + 0x24]
push 0x80
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x24]
push ecx
push str._sinfMosUComp.PNF
push edx
call fcn.004103cb
add esp, 0xc
lea eax, [esp + 0x24]
push 0x80
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
push edx
push str._sinfMosUPort.inf
push eax
call fcn.004103cb
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push str._sinfMosUPort.PNF
push ecx
call fcn.004103cb
add esp, 0xc
lea edx, [esp + 0x24]
push 0x80
push edx
call esi
lea eax, [esp + 0x24]
push eax
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetControlClass4D36E978_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403d40
lea edx, [esp + 0x24]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
mov ebx, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403d2d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea edx, [esp + 0x2c]
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x403d0c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.MatchingDeviceId
push ecx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x403cfb
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x128]
push edx
call fcn.00405d90
push 0x21
lea eax, [esp + 0x12c]
push str.moschipcompound_serial_interface
push eax
mov dword [esp + 0x24], 0x104
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x403cfb
lea ecx, [esp + 0x18]
lea edx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.InfPath
push ecx
call edi
test eax, eax
jne 0x403cfb
cmp dword [esp + 0x18], 4
jbe 0x403cfb
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x403c60
lea edx, [esp + 0x128]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x2e
jne 0x403c60
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea edx, [esp + 0x128]
lea eax, [esp + 0x22c]
push edx
push eax
lea ecx, [esp + 0x2c]
push str._sinf_s.inf
push ecx
call fcn.004103cb
add esp, 0x10
lea edx, [esp + 0x24]
push 0x80
push edx
call esi
lea eax, [esp + 0x24]
push eax
call ebp
lea ecx, [esp + 0x128]
lea edx, [esp + 0x22c]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._sinf_s.PNF
push eax
call fcn.004103cb
add esp, 0x10
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x128]
lea ecx, [esp + 0x24]
push eax
push str._s.inf
push ecx
call fcn.004103cb
mov edx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [edx + 8]
test eax, eax
je 0x403cfb
lea eax, [esp + 0x24]
mov ecx, edx
push eax
call fcn.00406fa0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x24]
mov eax, ebx
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x403b4e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403f87
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push 0x104
push eax
push 0
push ecx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403f7c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20019
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0
call edi
test eax, eax
jne 0x403f5b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x128]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push str.InfSection
push edx
mov dword [esp + 0x2c], 0x104
call edi
test eax, eax
jne 0x403f4a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x128]
push eax
call fcn.00405d90
push 0xa
lea ecx, [esp + 0x12c]
push str.mosusbcomp
push ecx
mov dword [esp + 0x20], 0x104
call fcn.00410430
add esp, 0xc
test eax, eax
je 0x403e35
push 8
lea edx, [esp + 0x12c]
push str.mosucomp
push edx
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x403f4a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x128]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.InfPath
push eax
call edi
test eax, eax
jne 0x403f4a
cmp dword [esp + 0x14], 4
jbe 0x403f4a
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x403eb1
lea edx, [esp + 0x128]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x2e
jne 0x403eb1
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea ecx, [esp + 0x128]
lea edx, [esp + 0x22c]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._sinf_s.inf
push eax
call fcn.004103cb
add esp, 0x10
lea ecx, [esp + 0x24]
push 0x80
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x128]
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._sinf_s.PNF
push edx
call fcn.004103cb
add esp, 0x10
lea eax, [esp + 0x24]
push 0x80
push eax
call esi
lea ecx, [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x128]
lea eax, [esp + 0x24]
push edx
push str._s.inf
push eax
call fcn.004103cb
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
je 0x403f4a
lea edx, [esp + 0x24]
push edx
call fcn.00406fa0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x403d84
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret