Function at 0x571480
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x650308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x70]
push edi
mov edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.f_tfc
push ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], 4
call ebx
test eax, eax
jne 0x5714d5
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.f_uf
push ebp
call ebx
test eax, eax
jne 0x5714fb
mov eax, dword [esp + 0x14]
test eax, eax
setne dl
mov byte [edi + 0xc], dl
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.f_uu
push ebp
call ebx
test eax, eax
jne 0x571527
mov ecx, dword [esp + 0x14]
test ecx, ecx
setne dl
and edx, 0xff
mov dword [edi + 0x3c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push str.f_td
push ebp
mov dword [esp + 0x28], 8
call ebx
test eax, eax
jne 0x571557
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5715af
mov eax, dword [esp + 0x18]
lea ecx, [edi + 8]
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.00623157
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.f_templ
push ebp
mov byte [eax + edx], 0
call ebx
mov eax, dword [edi + 0x10]
mov esi, 1
cmp eax, esi
jl 0x571730
push esi
lea edx, [esp + 0x40]
push 0x6e9ebc
push edx
call fcn.0060a593
add esp, 0xc
lea eax, [esp + 0x74]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3c]
push eax
push ecx
push 0
push 0
push edx
push ebp
mov dword [esp + 0x8c], 0x18
call ebx
test eax, eax
jne 0x571724
mov eax, dword [0x6f7b78]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
xor eax, eax
xor edi, edi
mov dword [esp + 0x6c], 0
cmp dword [ecx + 0x3c], eax
je 0x57165d
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], eax
inc eax
push eax
call fcn.00623157
mov edx, dword [esp + 0x74]
mov edi, eax
push esi
lea eax, [esp + 0x40]
push str.fn_d
push eax
mov byte [edi + edx], 0
call fcn.0060a593
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x3c]
push ecx
push edi
push 0
push 0
push edx
push ebp
call ebx
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x40]
push str.fl_d
push eax
mov dword [esp + 0x80], 0x10
call fcn.0060a593
add esp, 0xc
lea ecx, [esp + 0x74]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push eax
push ebp
call ebx
test eax, eax
je 0x5716bd
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jmp 0x5716c9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push ebx
mov ebx, ecx
push edx
add ebx, edx
mov edx, eax
push eax
adc edx, dword [esp + 0x44]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
test eax, eax
setne cl
push ecx
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
push esi
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
push edi
call fcn.00571120
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00622d8a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
inc esi
cmp esi, eax
jle 0x5715bf
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4