Function at 0x403eef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
lea ecx, [ebp - 0x274]
and dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.0041e5d0
cmp dword [esi + 0x14], 8
jb 0x403f2d
mov esi, dword [esi]
push 0x20019
push esi
push edx
lea ecx, [ebp - 0x274]
call fcn.0041e7b0
xor ecx, ecx
mov esi, dword [ebp - 0x270]
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x404197
xor ecx, ecx
mov dword [ebp - 0x210], 7
push ecx
push ecx
push ecx
xor eax, eax
mov dword [ebp - 0x214], ecx
push ecx
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x258], 0x100
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x403fdd
lea eax, [ebp - 0x20c]
push eax
call fcn.004011a9
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402f69
xor edx, edx
mov dword [ebp - 0x25c], 7
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x264]
push ecx
push edx
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x264], edx
push ecx
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x25c], 4
jne 0x40409a
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x260]
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.0041e990
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push dword [ebp - 0x260]
cmovae eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push str._ls_d_r_n
push eax
call fcn.0041e1c0
add esp, 0x10
mov ecx, edi
push 0xffffffffffffffff
push 0
push eax
call fcn.004029c4
push 0
push 1
lea ecx, [ebp - 0x23c]
call fcn.00402c5d
jmp 0x404154
cmp dword [ebp - 0x25c], 1
jne 0x404154
xor eax, eax
mov dword [ebp - 0x228], 7
xor esi, esi
mov word [ebp - 0x23c], ax
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], esi
cmovae eax, dword [ebp - 0x224]
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.0041ea00
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
lea eax, [ebp - 0x224]
cmovae ecx, dword [ebp - 0x23c]
cmp dword [ebp - 0x210], 8
push ecx
cmovae eax, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x254]
push str._ls_ls_r_n
push eax
call fcn.0041e1c0
add esp, 0x10
mov ecx, edi
push 0xffffffffffffffff
push esi
push eax
call fcn.004029c4
push esi
push 1
lea ecx, [ebp - 0x254]
call fcn.00402c5d
push esi
push 1
lea ecx, [ebp - 0x23c]
call fcn.00402c5d
mov esi, dword [ebp - 0x270]
push 0
push 1
lea ecx, [ebp - 0x224]
call fcn.00402c5d
xor ecx, ecx
lea eax, [ebp - 0x258]
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
inc ebx
mov dword [ebp - 0x258], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 0x258]
cmp ebx, ecx
jb 0x403f7a
lea ecx, [ebp - 0x274]
call fcn.0041e640
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret