Function at 0x401d9d
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x406fe0
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebx, ecx
mov ecx, dword [esp + 0x34]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40703f
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push 0
lea esi, [ebx + 0xc]
push ecx
push 0
push esi
push eax
call ebp
test eax, eax
je 0x40704c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edi
push edx
push 0
push esi
push eax
mov dword [esp + 0x34], edi
call ebp
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
cmp esi, ebp
jne 0x40703f
cmp dword [ebx + 0x130], ebp
je 0x4070c4
mov eax, dword [ebx + 0x128]
xor esi, esi
cmp eax, ebp
jle 0x4070c4
cmp esi, eax
jge 0x4070ae
cmp esi, ebp
jl 0x4070ae
mov edx, dword [ebx + 0x124]
mov eax, dword [edx + esi*4]
jmp 0x4070b0
xor eax, eax
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 0x128]
add esp, 4
inc esi
cmp esi, eax
jl 0x40709f
mov eax, dword [ebx + 0x124]
push eax
call sub.MFC42.DLL_operatordelete
push 0x80
call sub.MFC42.DLL_operatornew
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x128], ebp
mov dword [ebx + 0x12c], 0x1f
mov dword [ebx + 0x134], 0x40
mov eax, dword [edi + 8]
add esp, 8
cmp eax, ebp
lea esi, [edi + 0xc]
mov dword [esp + 0x18], ebp
jle 0x40724b
jmp 0x407115
mov esi, dword [esp + 0x34]
push 0x21c
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x407135
mov ecx, 0x87
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
jmp 0x407137
xor ebp, ebp
mov ecx, 0x87
xor eax, eax
mov edi, ebp
add esi, 4
rep stosd dword es:[edi], eax
mov eax, dword [esi - 4]
mov edi, ebp
mov dword [esp + 0x34], esi
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
lea edi, [ebp + 0x104]
lea eax, [ecx + eax + 1]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x34], ecx
inc ecx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
test ebp, ebp
lea edx, [eax + ecx + 1]
mov dword [esp + 0x34], edx
je 0x407231
mov eax, dword [ebx + 0x12c]
mov edx, dword [ebx + 0x128]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x407215
add eax, dword [ebx + 0x134]
lea edx, [eax*4 + 4]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x12c]
mov esi, dword [ebx + 0x124]
mov edi, eax
mov dword [esp + 0x28], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x124]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx + 0x134]
mov eax, dword [ebx + 0x12c]
mov ecx, dword [esp + 0x2c]
add esp, 8
add eax, edx
mov dword [ebx + 0x124], ecx
mov dword [ebx + 0x12c], eax
mov eax, dword [ebx + 0x128]
mov ecx, dword [ebx + 0x124]
mov dword [ecx + eax*4], ebp
mov eax, dword [ebx + 0x128]
inc eax
mov dword [ebx + 0x128], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
mov ecx, dword [edx + 8]
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x407111
mov edi, edx
mov eax, dword [edi]
push edi
mov dword [ebx + 0x110], eax
mov ecx, dword [edi + 4]
mov dword [ebx + 0x114], ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [ebx + 0xc]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x28]
mov esi, eax
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x110]
cmp eax, ecx
jne 0x40703f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x114]
cmp ecx, eax
jne 0x40703f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4