Function at 0x53d370
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 0x6090e8
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 0x53d3c9
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 0x53d3ef
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 0x53d41b
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 0x53d44b
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 0x53d4a3
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 8]
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.005e1559
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 0x53d59e
push edi
lea eax, [esp + 0x34]
push 0x6bd120
push eax
call fcn.005c5558
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 0x53d590
mov ecx, dword [0x6ca27c]
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 0x53d54f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.005e1559
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.005c5558
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.0053d0a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0xffffffff
call fcn.005e118c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x10]
jle 0x53d4b5
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4