Function at 0x401aa0
Capabilities:
Enumerate files on windows
Get common file path
Query or enumerate registry key
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x578
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x28]
xor ebx, ebx
push 0x104
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x401aed
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x401af3
lea edx, [esp + 0x28]
push 6
push edx
call fcn.00401680
add esp, 8
lea eax, [esp + 0x28]
push eax
call edi
jmp 0x401af3
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x58c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
je 0x401ba5
cmp byte [eax], bl
je 0x401ba5
lea ecx, [esp + 0x28]
push eax
push ecx
call esi
lea edx, [esp + 0x28]
push edx
call ebp
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea ecx, [esp + 0x28]
push 0x40e11c
push ecx
call fcn.00408ab0
add esp, 8
cmp eax, ebx
je 0x401b5c
mov dword [0x4109b0], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x578
ret
lea edx, [esp + 0x28]
push 0x40e118
push edx
call fcn.00408ab0
add esp, 8
cmp eax, ebx
je 0x401ba5
add eax, 3
push eax
lea eax, [esp + 0x244]
push eax
call esi
lea ecx, [esp + 0x240]
push ecx
call fcn.004016a0
add esp, 4
mov dword [0x4109ac], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x578
ret
lea edx, [esp + 0x12c]
push 0x114
push edx
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
push ebx
push ebx
lea eax, [esp + 0x140]
push ebx
push eax
call sub.CFGMGR32.dll_CM_Locate_DevNode_ExA
cmp eax, ebx
jne 0x401db6
lea ecx, [esp + 0x130]
lea edx, [esp + 0x12c]
push ecx
push edx
call fcn.00401930
add esp, 8
lea eax, [esp + 0x130]
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.00401a50
add esp, 8
push str.NET.INF
call fcn.004016a0
add esp, 4
push str.NETCLI.INF
call fcn.004016a0
add esp, 4
push str.CATALOG
call edi
test eax, eax
je 0x401ccf
lea edx, [esp + 0x28]
push str..cat
push edx
call esi
lea eax, [esp + 0x344]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
push 0x40e100
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp edi, 0xffffffff
je 0x401ccf
mov edi, dword [sym.imp.USER32.dll_CharUpperBuffA]
lea edx, [esp + 0x370]
lea eax, [esp + 0x28]
push edx
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x28]
push eax
push edx
call edi
lea eax, [esp + 0x28]
push str..CAT
push eax
call fcn.00408ab0
add esp, 8
cmp eax, ebx
je 0x401cad
push str..INF
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call fcn.004016a0
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x344]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c64
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x28]
push 0xf
push edx
call fcn.00401680
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401db6
push ebx
push ebx
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401dab
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jbe 0x401dab
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, 1
mov ecx, 0x104
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x488]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x250]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov byte [esp + 0x260], bl
mov byte [esp + 0x4a4], bl
mov dword [esp + 0x44], edi
call esi
cmp eax, ebx
jne 0x401d9c
lea ecx, [esp + 0x240]
push ecx
call fcn.004016a0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
ja 0x401d41
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x578
ret