Function at 0x458100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5619
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
mov dword [esp + 0x13c], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
stosb byte es:[edi], al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xff
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x148]
mov esi, dword [esp + 0x144]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push ecx
push esi
mov byte [esp + 0x150], 1
call edi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x2c], eax
je 0x458321
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
mov ebp, 4
push str.http
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4581df
cmp dword [esp + 0x18], ebp
jne 0x4581df
mov eax, dword [esp + 0x14]
jmp 0x45836c
push ebx
push ebx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x40]
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x2c], eax
jne 0x45820e
mov eax, dword [esp + 0x14]
push eax
jmp 0x45831b
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebx
jbe 0x458316
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0x100
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x458309
lea eax, [esp + 0x148]
push 0x524458
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push 0xf003f
push ebx
push eax
push esi
call edi
test eax, eax
jne 0x458309
mov eax, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push str.http
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4582fe
cmp dword [esp + 0x18], 4
jae 0x458368
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jb 0x45821c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 8
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x45834d