Function at 0x4703f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd0e2
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x488], ecx
mov dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x4a0], ebx
mov dword [ebp - 0x49c], ebx
push 8
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
push 0x80000002
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 4], ebx
call fcn.00412570
test eax, eax
je 0x470476
mov eax, dword [ebp - 0x4a4]
cmp eax, ebx
je 0x4708ec
push eax
jmp 0x4708e6
lea edx, [ebp - 0x458]
push edx
call fcn.004701f0
add esp, 4
cmp dword [ebp - 0x444], 8
mov byte [ebp - 4], 1
jb 0x4704a0
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x490], eax
jmp 0x4704ac
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x490], ecx
mov dword [ebp - 0x484], ebx
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x4a4]
add esp, 0xc
lea ecx, [ebp - 0x4b8]
push ecx
mov ecx, dword [ebp - 0x484]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x218]
push eax
push ecx
mov esi, 0x104
push edi
mov dword [ebp - 0x498], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x484]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x498], ebx
je 0x4707c7
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x478], ebx
push 0x2001f
lea edx, [ebp - 0x218]
push edx
push edi
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 2
call fcn.00412570
test eax, eax
jne 0x4707a6
push 0x206
lea ecx, [ebp - 0x41e]
push ebx
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x48c]
push edx
lea eax, [ebp - 0x420]
push eax
push str.ProfileImagePath
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x48c], esi
call fcn.00434210
cmp dword [ebp - 0x48c], ebx
je 0x4707a6
mov ecx, dword [ebp - 0x488]
cmp dword [ecx + 0x14], ebx
je 0x470782
mov eax, dword [ebp - 0x490]
cmp eax, ebx
je 0x470782
push eax
lea ecx, [ebp - 0x474]
call fcn.00405cd0
mov edx, dword [ebp - 0x460]
mov ecx, dword [ebp - 0x474]
mov byte [ebp - 4], 3
mov esi, ecx
cmp edx, 8
jae 0x47061c
lea esi, [ebp - 0x474]
mov eax, esi
mov edi, dword [ebp - 0x464]
lea eax, [eax + edi*2]
cmp edx, 8
jae 0x4705fd
lea ecx, [ebp - 0x474]
cmp ecx, eax
je 0x470620
mov edx, dword [sym.imp.MSVCR100.dll_tolower]
push edx
push esi
push eax
push ecx
lea eax, [ebp - 0x4b0]
push eax
call fcn.0044b640
add esp, 0x14
jmp 0x470626
mov eax, ecx
jmp 0x4705e9
mov dword [ebp - 0x4b0], esi
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], cx
lea edx, [eax + 2]
jmp 0x470650
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x470650
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x43c]
call fcn.00405660
mov edx, dword [ebp - 0x428]
mov edi, dword [ebp - 0x43c]
mov byte [ebp - 4], 4
mov esi, edi
cmp edx, 8
jae 0x4706d2
lea esi, [ebp - 0x43c]
mov eax, esi
mov ecx, dword [ebp - 0x42c]
lea eax, [eax + ecx*2]
mov ecx, edi
cmp edx, 8
jae 0x4706a7
lea ecx, [ebp - 0x43c]
cmp ecx, eax
je 0x4706d6
mov edx, dword [sym.imp.MSVCR100.dll_tolower]
push edx
push esi
push eax
push ecx
lea eax, [ebp - 0x4ac]
push eax
call fcn.0044b640
mov edx, dword [ebp - 0x428]
mov edi, dword [ebp - 0x43c]
add esp, 0x14
jmp 0x4706dc
mov eax, edi
jmp 0x470691
mov dword [ebp - 0x4ac], esi
mov ecx, edi
cmp edx, 8
jae 0x4706e9
lea ecx, [ebp - 0x43c]
cmp dword [ebp - 0x460], 8
mov eax, dword [ebp - 0x474]
jae 0x470700
lea eax, [ebp - 0x474]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x470726
cmp dx, bx
je 0x470722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x470726
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x470700
xor eax, eax
jmp 0x47072b
sbb eax, eax
sbb eax, 0xffffffff
lea ecx, [ebp - 0x43c]
cmp eax, ebx
jne 0x470768
call fcn.004a9f30
lea ecx, [ebp - 0x474]
call fcn.004a9f30
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x470760
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x480], ebx
mov edi, dword [ebp - 0x4a4]
jmp 0x4707c1
call fcn.004a9f30
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 2
call fcn.004a9f30
mov edi, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x488]
mov edx, dword [ebp - 0x494]
push ecx
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0046f1b0
add esp, 0x10
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4707c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
cmp dword [ebp - 0x4a8], ebx
je 0x4704b2
mov esi, dword [ebp - 0x488]
cmp dword [esi + 0x18], ebx
jne 0x4708b0
lea edx, [ebp - 0x43c]
push edx
call fcn.0046fdd0
add esp, 4
mov eax, dword [ebp - 0x42c]
push ebx
push 0x4c79ac
push eax
push ebx
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 5
call fcn.004089e0
test eax, eax
jne 0x47086d
cmp dword [ebp - 0x428], 8
jb 0x47082a
mov ecx, dword [ebp - 0x43c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [ebp - 0x444], 8
mov esi, 7
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], dx
jb 0x47085c
mov eax, dword [ebp - 0x458]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x444], esi
mov word [ebp - 0x458], cx
jmp 0x4708db
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x470882
lea eax, [ebp - 0x43c]
mov edx, dword [ebp - 0x494]
push esi
push edx
push str.DefaultUser
push eax
call fcn.0046f1b0
add esp, 0x10
cmp dword [ebp - 0x428], 8
jb 0x4708b0
mov eax, dword [ebp - 0x43c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x444], 8
jb 0x4708c8
mov ecx, dword [ebp - 0x458]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], dx
mov dword [ebp - 0x448], ebx
cmp edi, ebx
je 0x4708ec
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret