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

Disassembly:
sub esp, 0x324
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x230]
mov esi, ecx
xor ebx, ebx
push 0x104
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x230]
cmp eax, ebx
push ecx
jne 0x403939
lea edx, [esp + 0x2c]
push str._sinfMos24Sr.inf
push edx
call fcn.0040f09b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x230]
lea eax, [esp + 0x28]
push edx
push str._sinfMos24Sr.PNF
push eax
call fcn.0040f09b
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x80
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call edi
lea eax, [esp + 0x230]
lea ecx, [esp + 0x28]
push eax
push str._sinfMos24SPt.inf
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 0x28]
push 0x80
push edx
call esi
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push str._sinfMos24SPt.PNF
push edx
call fcn.0040f09b
add esp, 0xc
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x230]
lea eax, [esp + 0x28]
push edx
push str._sinfotherMOSCHIP_Semiconductor_Pvt_Ltdmos24Sr.inf
push eax
call fcn.0040f09b
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x80
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call edi
lea eax, [esp + 0x230]
lea ecx, [esp + 0x28]
push eax
push str._sinfotherMOSCHIP_Semiconductor_Pvt_Ltdmos24SPt.inf
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 0x28]
push 0x80
push edx
call esi
lea eax, [esp + 0x28]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret
lea edx, [esp + 0x2c]
push str._sinfMs24Comp.inf
push edx
call fcn.0040f09b
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x230]
lea eax, [esp + 0x28]
push edx
push str._sinfMs24Comp.PNF
push eax
call fcn.0040f09b
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x80
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call ebp
lea eax, [esp + 0x230]
lea ecx, [esp + 0x28]
push eax
push str._sinfMos24Ser.inf
push ecx
call fcn.0040f09b
add esp, 0xc
lea edx, [esp + 0x28]
push 0x80
push edx
call esi
lea eax, [esp + 0x28]
push eax
call ebp
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push str._sinfMos24Ser.PNF
push edx
call fcn.0040f09b
add esp, 0xc
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlClass4D36E978_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403bfd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0x104
push eax
push ebx
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403bee
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20019
lea eax, [esp + 0x30]
push ebx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x403bc5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push str.ProviderName
push edx
mov dword [esp + 0x2c], 0x104
call edi
test eax, eax
jne 0x403bb2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x12c]
push eax
call fcn.004057e0
push 7
lea ecx, [esp + 0x130]
push str.moschip
push ecx
mov dword [esp + 0x20], 0x104
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x403bb2
lea edx, [esp + 0x14]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.InfPath
push edx
call edi
test eax, eax
jne 0x403bb2
cmp dword [esp + 0x14], 4
jbe 0x403bb2
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x403b48
lea edx, [esp + 0x12c]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x2e
jne 0x403b48
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x30]
push str._sinf_s.inf
push edx
call fcn.0040f09b
add esp, 0x10
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x12c]
lea eax, [esp + 0x230]
push edx
push eax
lea ecx, [esp + 0x30]
push str._sinf_s.PNF
push ecx
call fcn.0040f09b
add esp, 0x10
lea edx, [esp + 0x28]
push 0x80
push edx
call esi
lea eax, [esp + 0x28]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov eax, ecx
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
inc ecx
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x403a3c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x403df9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0x104
push eax
push 0
push ecx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x403dee
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20019
lea eax, [esp + 0x30]
push 0
push eax
push ecx
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x403dcd
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.InfSection
push edx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x403dbc
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x12c]
push eax
call fcn.004057e0
push 0xb
lea ecx, [esp + 0x130]
push str.mosquadcomp
push ecx
mov dword [esp + 0x24], 0x104
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x403dbc
lea edx, [esp + 0x18]
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.InfPath
push edx
call edi
test eax, eax
jne 0x403dbc
cmp dword [esp + 0x18], 4
jbe 0x403dbc
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x403d52
lea edx, [esp + 0x12c]
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
sub edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x2e
jne 0x403d52
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + edx], al
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x30]
push str._sinf_s.inf
push edx
call fcn.0040f09b
add esp, 0x10
lea eax, [esp + 0x28]
push 0x80
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x12c]
lea eax, [esp + 0x230]
push edx
push eax
lea ecx, [esp + 0x30]
push str._sinf_s.PNF
push ecx
call fcn.0040f09b
add esp, 0x10
lea edx, [esp + 0x28]
push 0x80
push edx
call esi
lea eax, [esp + 0x28]
push eax
call ebp
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 + 0x28]
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 0x403c40
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x324
ret