Function at 0x438534
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
and dword [esp + 8], 0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004019d1
lea ecx, [esp + 0x38]
call fcn.004019d1
lea ecx, [esp + 0x48]
call fcn.004019d1
mov edi, dword [ebp + 0xc]
push 0x46df88
call fcn.0041345d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push ecx
call fcn.00412bb1
sub esp, 0xc
mov esi, esp
push eax
call fcn.00401983
call fcn.004382d5
mov ecx, dword [esp + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], ecx
inc dword [ecx]
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x34]
call fcn.004383bd
test al, al
jne 0x4385f7
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 2
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov byte [eax + 0x18], 0
jmp 0x438975
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x438641
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, esi
je 0x43863b
push esi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.00416639
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 3
jmp 0x4385e5
mov eax, dword [esp + 0x14]
jmp 0x438645
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x24]
or ecx, 0x20019
push ecx
push esi
push dword [esp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x43869d
push esi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.00416639
cmp dword [esp + 0x2c], esi
je 0x438683
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 1
jmp 0x4385e5
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
call fcn.00412bb1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esp + 0x24]
call esi
push 0
test eax, eax
je 0x4386f0
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.00416639
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
or dword [eax + 0x14], 0xffffffff
jmp 0x43894f
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [esp + 0x20]
add eax, ebx
call fcn.00416639
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x43893a
push 2
pop ecx
cmp edx, ecx
jbe 0x43889f
cmp edx, 3
je 0x438826
push 4
pop eax
cmp edx, eax
je 0x4387de
cmp edx, 7
jne 0x43893a
mov eax, dword [esp + 0xc]
shr eax, 1
add eax, ecx
xor edx, edx
mov dword [esp + 0x20], edx
mul ecx
mov ecx, dword [esp + 0x20]
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
pop ecx
mov esi, eax
lea ecx, [esp + 0xc]
push ecx
mov eax, edi
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push esi
xor edi, edi
push edi
push edi
call fcn.00412bb1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x438901
shr dword [esp + 0xc], 1
mov ecx, dword [esp + 0xc]
xor eax, eax
mov word [esi + ecx*2], ax
cmp dword [esp + 0xc], 1
jbe 0x4388f6
mov eax, dword [esp + 0xc]
cmp word [esi + eax*2 - 2], di
jne 0x4387aa
dec dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0xc], edi
jbe 0x4387c6
cmp word [esi + eax*2], di
jne 0x4387bf
push 0xa
pop ecx
mov word [esi + eax*2], cx
inc eax
cmp eax, dword [esp + 0xc]
jb 0x4387b2
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0xa
jne 0x4388f6
xor ecx, ecx
mov word [eax], cx
jmp 0x4388f6
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push 0
push 0
call fcn.00412bb1
push eax
push dword [esp + 0x24]
call esi
fild dword [esp + 0x24]
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x438814
fadd qword [0x475bc0]
mov esi, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
call fcn.00413441
jmp 0x43895c
mov edi, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
call fcn.004131bd
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0xc]
push edx
push eax
push 0
push 0
mov eax, ecx
call fcn.00412bb1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43895c
push 0
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.00416639
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 0xfffffffe
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov esi, dword [ebp + 0xc]
push 0
mov byte [eax + 0x18], 0
call fcn.004131a1
jmp 0x43895c
mov eax, dword [esp + 0xc]
shr eax, 1
xor edx, edx
inc eax
mov dword [esp + 0x20], edx
mul ecx
mov ecx, dword [esp + 0x20]
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
pop ecx
mov esi, eax
lea ecx, [esp + 0xc]
push ecx
mov eax, edi
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push esi
xor edi, edi
push edi
push edi
call fcn.00412bb1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x438901
shr dword [esp + 0xc], 1
mov ecx, dword [esp + 0xc]
xor eax, eax
mov word [esi + ecx*2], ax
mov edi, dword [ebp + 0xc]
push esi
call fcn.0041345d
jmp 0x438931
push edi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.00416639
mov eax, dword [ebx]
mov edi, dword [eax + 4]
lea eax, [edi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 0xfffffffe
lea eax, [edi + ebx + 4]
call fcn.00418aa2
mov byte [eax + 0x18], 0
push esi
call fcn.0045526c
pop ecx
jmp 0x43895c
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 0xfffffffe
lea eax, [esi + ebx + 4]
call fcn.00418aa2
mov byte [eax + 0x18], 0
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [esp + 0x2c], 0
je 0x438975
push dword [esp + 0x14]
call esi
lea ecx, [esp + 0x48]
call fcn.00401a04
lea ecx, [esp + 0x38]
call fcn.00401a04
lea ecx, [esp + 0x28]
call fcn.00401a04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8