Function at 0x43b580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d9a4
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x474454]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43b6f5
push str.Failed_to_open_ProfileList
lea ecx, [ebp - 0x120]
call fcn.00402280
push str.GetWindowsUsersRegistryPath
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], edi
call fcn.00402280
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
mov byte [ebp - 4], 1
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x128]
mov ebx, 2
push eax
mov byte [ebp - 4], bl
call fcn.00422410
push ebx
push eax
lea ecx, [ebp - 0x11c]
push ecx
mov byte [ebp - 4], 3
call fcn.00406150
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], bl
add eax, 0xfffffff0
or ebx, 0xffffffff
add esp, 0x18
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43b682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b6a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b6cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x43b6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x43ba9f
push 0x103
lea ecx, [ebp - 0x113]
push edi
push ecx
mov dword [ebp - 0x138], edi
mov byte [ebp - 0x114], 0
call fcn.0043ffa0
mov ecx, dword [ebp - 0x124]
add esp, 0xc
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x114]
push eax
push edi
push ecx
mov dword [ebp - 0x130], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
jne 0x43ba82
mov eax, str.Volatile_Environment
lea esi, [ebp - 0x114]
shr eax, 0x10
shr esi, 0x10
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x13c], esi
or ebx, 0xffffffff
jmp 0x43b776
mov esi, dword [ebp - 0x13c]
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
call eax
add eax, 0x10
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 4
cmp esi, edi
jne 0x43b7c0
lea ecx, [ebp - 0x114]
movzx esi, cx
push edi
push esi
call fcn.00401150
add esp, 8
cmp eax, edi
je 0x43b7ec
push esi
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401d40
jmp 0x43b7ec
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b7d0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00401be0
mov eax, dword [0x474238]
mov edx, dword [eax + 0xc]
mov ecx, 0x474238
mov dword [ebp - 4], 5
mov dword [ebp - 0x134], edi
call edx
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x148], edi
jne 0x43b842
mov eax, str.Volatile_Environment
movzx esi, ax
push edi
push esi
call fcn.00401150
add esp, 8
cmp eax, edi
je 0x43b854
push esi
push eax
lea ecx, [ebp - 0x11c]
call fcn.00401d40
jmp 0x43b854
push 0x15
push str.Volatile_Environment
lea ecx, [ebp - 0x11c]
call fcn.00401be0
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
mov byte [ebp - 4], 7
call eax
add eax, 0x10
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 4], 8
call fcn.00422410
lea ecx, [ebp - 0x11c]
push ecx
push eax
lea edx, [ebp - 0x140]
push edx
mov byte [ebp - 4], 9
call fcn.00422410
mov eax, dword [eax]
add esp, 0x18
lea ecx, [ebp - 0x134]
push ecx
push 0x20019
push edi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43b8e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x144]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b90d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43b957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x43ba17
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x474238]
mov eax, dword [edx + 0xc]
mov ecx, 0x474238
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x13c], edi
jne 0x43b9b7
lea ecx, [ebp - 0x114]
movzx esi, cx
push edi
push esi
call fcn.00401150
add esp, 8
cmp eax, edi
je 0x43b9dc
push esi
push eax
lea ecx, [ebp - 0x118]
call fcn.00401d40
jmp 0x43b9dc
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43b9c0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x118]
call fcn.00401be0
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 0xb
call fcn.00419a10
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ba17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x138]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x130]
push ecx
inc eax
lea edx, [ebp - 0x114]
push edx
push eax
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x124]
push eax
mov dword [ebp - 0x130], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x12c]
add eax, 0xfffffff0
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ba74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x43b770
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esi + 4]
sub edx, dword [esi]
xor eax, eax
sar edx, 2
cmp eax, edx
sbb eax, eax
neg eax
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.0043fdbf
mov esp, ebp
pop ebp
ret