Function at 0x40ac30
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42c046
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push edi
xor ebx, ebx
push eax
push 0xf003f
push ebx
push str.CLSID
push 0x80000000
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x40ae36
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 0x433c50
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x40ae27
mov ecx, 0xf
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea edx, [esp + 0x38]
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push 0x3f
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
push ecx
push 0x43edd4
push edx
mov dword [esp + 0x28c], ebx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 1
push ebx
push ecx
push edx
call esi
test eax, eax
jne 0x40adc5
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
mov ebp, 1
push eax
push ebp
push ebx
push ecx
push edx
mov dword [esp + 0x3c], ebx
call esi
test eax, eax
jne 0x40adab
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push str.LocalServer32
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x40adab
mov ecx, 0x40
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x74]
mov dword [esp + 0x30], 0x103
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ad9c
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ad9c
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40ad9c
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x40adb8
mov edx, dword [esp + 0x28]
push edx
call fcn.0040a6b0
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ae04
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ae04
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a6b0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x280], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push edx
push 0xf003f
push ebx
push str.HTTP
push 0x80000000
call esi
test eax, eax
jne 0x40afce
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.shell
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40afc7
mov ecx, 0x40
lea edi, [esp + 0x175]
mov byte [esp + 0x174], bl
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x10]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x178]
mov dword [esp + 0x30], 0x103
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x174]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_3
mov ebp, 1
mov ecx, 0x40
mov dword [esp + 0x280], ebp
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebx
je 0x40af97
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x70]
push 0x103
push ecx
push ebx
push edx
xor esi, esi
call edi
cmp eax, ebx
jne 0x40af97
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40af4b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x70]
inc esi
push 0x103
push edx
push esi
push eax
call edi
cmp eax, ebx
je 0x40af1b
jmp 0x40af97
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
lea edx, [esp + 0x88]
push ebx
push edx
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40af97
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040a910
add esp, 4
test eax, eax
je 0x40af88
xor ebp, ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x40afa4
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a9c0
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x280], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40b028
lea eax, [esp + 0x1c]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.HTTP
push 0x80000000
call esi
test eax, eax
jne 0x40b02e
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.shell
push edx
mov dword [esp + 0x38], ebx
call esi
test eax, eax
jne 0x40b023
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a9c0
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret