Function at 0x53b5a0
Capabilities:
Access peb ldr_data
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.f_tfc
push ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 4
call esi
test eax, eax
jne 0x53b5f9
mov edx, dword [esp + 0x10]
mov dword [edi + 0x10], edx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.f_uf
push ebx
call esi
test eax, eax
jne 0x53b61f
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
mov byte [edi + 0xc], dl
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.f_uu
push ebx
call esi
test eax, eax
jne 0x53b64b
mov ecx, dword [esp + 0x10]
test ecx, ecx
setne dl
and edx, 0xff
mov dword [edi + 0x34], edx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push str.f_td
push ebx
mov dword [esp + 0x24], 8
call esi
test eax, eax
jne 0x53b67b
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 + 0x20]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x53b6d3
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 8]
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.005df633
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push 0
push str.f_templ
push ebx
mov byte [eax + edx], 0
call esi
mov edx, dword [esp + 0x18]
mov edi, 1
cmp dword [edx + 0x10], edi
jl 0x53b7ce
push edi
lea eax, [esp + 0x34]
push 0x6bb114
push eax
call fcn.005c3648
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
lea eax, [esp + 0x30]
push ecx
push edx
push 0
push 0
push eax
push ebx
mov dword [esp + 0x2c], 0x18
call esi
test eax, eax
jne 0x53b7c0
mov ecx, dword [0x6c826c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
xor esi, esi
mov eax, dword [edx + 0x34]
test eax, eax
je 0x53b77f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.005df633
mov esi, eax
mov eax, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x34]
push str.fn_d
push ecx
mov byte [esi + eax], 0
call fcn.005c3648
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push esi
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
test eax, eax
setne cl
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push edi
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
push esi
call fcn.0053b2d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call fcn.005df266
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x10]
jle 0x53b6e5
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4