Function at 0x43835d
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 0x46df98
call fcn.004132c2
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.00412b6d
sub esp, 0xc
mov esi, esp
push eax
call fcn.00401983
call fcn.004380fe
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.004381e6
test al, al
jne 0x438420
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418902
mov dword [eax + 0x14], 2
lea eax, [esi + ebx + 4]
call fcn.00418902
mov byte [eax + 0x18], 0
jmp 0x43879e
xor esi, esi
cmp dword [esp + 0x2c], esi
je 0x43846a
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 0x438464
push esi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.0041649e
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418902
mov dword [eax + 0x14], 3
jmp 0x43840e
mov eax, dword [esp + 0x14]
jmp 0x43846e
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 0x4384c6
push esi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.0041649e
cmp dword [esp + 0x2c], esi
je 0x4384ac
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.00418902
mov dword [eax + 0x14], 1
jmp 0x43840e
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.00412b6d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esp + 0x24]
call esi
push 0
test eax, eax
je 0x438519
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.0041649e
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418902
or dword [eax + 0x14], 0xffffffff
jmp 0x438778
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [esp + 0x20]
add eax, ebx
call fcn.0041649e
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x438763
push 2
pop ecx
cmp edx, ecx
jbe 0x4386c8
cmp edx, 3
je 0x43864f
push 4
pop eax
cmp edx, eax
je 0x438607
cmp edx, 7
jne 0x438763
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.00455447
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.00412b6d
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43872a
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 0x43871f
mov eax, dword [esp + 0xc]
cmp word [esi + eax*2 - 2], di
jne 0x4385d3
dec dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0xc], edi
jbe 0x4385ef
cmp word [esi + eax*2], di
jne 0x4385e8
push 0xa
pop ecx
mov word [esi + eax*2], cx
inc eax
cmp eax, dword [esp + 0xc]
jb 0x4385db
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0xa
jne 0x43871f
xor ecx, ecx
mov word [eax], cx
jmp 0x43871f
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.00412b6d
push eax
push dword [esp + 0x24]
call esi
fild dword [esp + 0x24]
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x43863d
fadd qword [0x475bd0]
mov esi, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
call fcn.004132a6
jmp 0x438785
mov edi, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
call fcn.00413179
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.00412b6d
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x438785
push 0
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.0041649e
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418902
mov dword [eax + 0x14], 0xfffffffe
lea eax, [esi + ebx + 4]
call fcn.00418902
mov esi, dword [ebp + 0xc]
push 0
mov byte [eax + 0x18], 0
call fcn.0041315d
jmp 0x438785
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.00455447
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.00412b6d
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43872a
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.004132c2
jmp 0x43875a
push edi
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
call fcn.0041649e
mov eax, dword [ebx]
mov edi, dword [eax + 4]
lea eax, [edi + ebx + 4]
call fcn.00418902
mov dword [eax + 0x14], 0xfffffffe
lea eax, [edi + ebx + 4]
call fcn.00418902
mov byte [eax + 0x18], 0
push esi
call fcn.0045504c
pop ecx
jmp 0x438785
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [esi + ebx + 4]
call fcn.00418902
mov dword [eax + 0x14], 0xfffffffe
lea eax, [esi + ebx + 4]
call fcn.00418902
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 0x43879e
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