Function at 0x5f3433df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
jne 0x5f3433f8
mov ecx, dword [0x5f341d60]
mov dword [ebp + 0xc], ecx
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, eax
push esi
push edi
je 0x5f343620
mov dword [ebx], eax
mov eax, dword [0x5f345c40]
mov ecx, dword [0x5f345c44]
cmp eax, ecx
mov dword [ebp - 0xc], eax
jae 0x5f34341d
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
push dword [0x5f341d84]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 4]
mov dword [ebp - 0x1c], eax
call esi
push dword [0x5f341d5c]
mov edi, eax
call esi
push dword [ebp + 0xc]
add edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 2]
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push eax
call edi
test eax, eax
pop ecx
mov dword [ebp - 0x18], eax
jne 0x5f343491
push 0xe
pop eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.msvcrt.dll_free]
je 0x5f34347c
push dword [ebp - 0x18]
call esi
pop ecx
cmp dword [ebp - 8], 0
je 0x5f34362b
push dword [ebp - 8]
call esi
pop ecx
jmp 0x5f34362b
push ebx
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5f343463
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x5f341d64]
mov dword [ebp - 4], eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5f343463
mov ebx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [0x5f341d68]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5f343463
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
add eax, ebx
add eax, dword [ebp - 0x1c]
push eax
call edi
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
je 0x5f343460
push edi
call dword [sym.imp.msvcrt.dll__msize]
pop ecx
mov ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [eax*4 + 4]
lea edi, [eax + ecx]
lea eax, [edi + ebx]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push 0
push dword [0x5f341d64]
mov dword [ebp - 4], ebx
push dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
test eax, eax
jne 0x5f343463
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
push 0
push dword [0x5f341d68]
push dword [eax]
call ebx
test eax, eax
jne 0x5f343463
mov ebx, dword [sym.imp.msvcrt.dll_swscanf]
jmp 0x5f3435c5
lea eax, [ebp - 0x14]
push eax
push 0x5f34203c
push edi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x5f34346a
push edi
call esi
mov ecx, dword [ebp - 8]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x14]
push edi
mov dword [ecx + eax*4], edi
call esi
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x5f343596
mov edi, dword [ebp + 0xc]
jmp 0x5f3435ff
lea eax, [ebp - 0x14]
push eax
push 0x5f34203c
push edi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x5f34346a
push edi
call esi
mov ecx, dword [ebp - 8]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x14]
push edi
mov dword [ecx + eax*4], edi
call esi
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
jne 0x5f3435d0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5f343611
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 8]
pop ecx
jmp 0x5f34362d
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18