Function at 0x438190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cee3d
mov eax, dword fs:[0]
push eax
mov eax, 0x4258
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x4254], eax
push ebx
push ebp
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x4268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x427c]
mov ebp, dword [esp + 0x4278]
mov edi, ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.00439890
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push str.userprofile
lea ecx, [esp + 0x1c]
mov dword [eax + 8], eax
call fcn.00404030
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x4274], ebx
call fcn.00438a60
push edi
mov ecx, eax
call fcn.004044f0
mov dword [esp + 0x4270], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43825a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x50739c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50739c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x4270], 1
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x1c]
push str._sEnvironment
push edx
call fcn.00404ba0
mov edi, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x20019
push ebx
push edi
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4382d1
lea eax, [edi - 0x10]
mov dword [esp + 0x4270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4385ef
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x1b]
push edx
lea ecx, [esp + 0x44]
call fcn.004395e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x4284], 2
mov edx, dword [esp + 0x44]
push ecx
push ebx
push edx
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x40], 0x3ffe
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4384b9
nop
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x4383d0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x5c]
shr eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [esp + eax*2 + 0x26c], cx
call fcn.004a2562
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.00404030
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x4274], 3
call fcn.00438a60
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
jmp 0x438390
mov di, word [edx]
add edx, 2
cmp di, bx
jne 0x438390
sub edx, ecx
sar edx, 1
push edx
lea edx, [esp + 0x268]
push edx
mov ecx, eax
call fcn.00404630
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x43846b
cmp eax, 2
jne 0x438477
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [esp + ecx*2 + 0x26c], dx
call fcn.004a2562
add esp, 8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404030
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4274], 4
call fcn.00438a60
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
lea esp, [esp]
mov di, word [edx]
add edx, 2
cmp di, bx
jne 0x438430
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404630
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x70]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x40], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x438330
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54]
mov ebp, dword [edx]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x54]
test edi, edi
je 0x4384e4
cmp edi, dword [esp + 0x3c]
je 0x4384e9
call fcn.004a0da7
cmp ebp, ebx
je 0x4385b2
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4270], 5
test edi, edi
jne 0x4385a7
call fcn.004a0da7
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x438528
call fcn.004a0da7
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebp + 0x10]
mov ecx, esi
call fcn.00435db0
add esp, 8
test edi, edi
jne 0x4385ae
call fcn.004a0da7
cmp ebp, dword [edi + 0x18]
jne 0x438552
call fcn.004a0da7
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00438a60
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call fcn.004044f0
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
call fcn.00439e20
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x4384d6
mov eax, dword [edi]
jmp 0x43851e
mov edi, dword [edi]
jmp 0x438548
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4270], 6
call fcn.00439910
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0049c830
mov dword [esp + 0x4274], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4385fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4254]
xor ecx, esp
call fcn.004a0e91
add esp, 0x4264
ret 8