Function at 0x4440e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510db2
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x574be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x258], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x244], eax
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
mov dword [ebp - 0x248], 0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
mov byte [ebp - 4], 2
push SysStringLen
mov dword [ebp - 0x23c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x444a34
test eax, eax
jne 0x4449d6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4441e2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.00420c80
push str.Volatile_Environment
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x25c]
call fcn.00424740
add esp, 4
lea ecx, [ebp - 0x220]
push ecx
push 0x20019
push 0
push dword [eax]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x25c]
test eax, eax
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44425d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4449d6
mov dword [ebp - 0x21c], 0x104
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x82
or eax, ecx
jge 0x444299
push 0x82
lea ecx, [ebp - 0x228]
call fcn.004206e0
mov edi, dword [ebp - 0x228]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERDOMAIN
push dword [ebp - 0x220]
call ebx
test eax, eax
jne 0x4442ec
push dword [edi - 8]
push edi
call fcn.004ea294
add esp, 8
test eax, eax
js 0x444a1c
cmp eax, dword [edi - 8]
jg 0x444a1c
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
jmp 0x444406
mov dword [ebp - 0x21c], 0x104
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x82
or eax, ecx
jge 0x444320
push 0x82
lea ecx, [ebp - 0x228]
call fcn.004206e0
mov edi, dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x224]
push eax
push 0
push str.LOGONSERVER
push dword [ebp - 0x220]
call ebx
push dword [edi - 8]
push edi
call fcn.004ea294
add esp, 8
test eax, eax
js 0x444a1c
cmp eax, dword [edi - 8]
jg 0x444a1c
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
push 2
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x228]
call fcn.00444ac0
mov byte [ebp - 4], 3
mov edx, dword [eax]
lea ebx, [edi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4443dc
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4443c7
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4443c7
call fcn.00420750
mov dword [ebp - 0x230], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4443bc
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
jmp 0x4443dc
push dword [edx - 0xc]
lea ecx, [ebp - 0x228]
push edx
call fcn.00420c80
mov edi, dword [ebp - 0x228]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444400
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x44443a
push 0x82
lea ecx, [ebp - 0x22c]
call fcn.004206e0
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERNAME
push dword [ebp - 0x220]
call ebx
test eax, eax
jne 0x444487
push dword [esi - 8]
push esi
call fcn.004ea294
add esp, 8
test eax, eax
js 0x444a1c
cmp eax, dword [esi - 8]
jg 0x444a1c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x44456d
mov dword [ebp - 0x21c], 0x104
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x82
or eax, ecx
jge 0x4444bb
push 0x82
lea ecx, [ebp - 0x22c]
call fcn.004206e0
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEPATH
push dword [ebp - 0x220]
call ebx
test eax, eax
jne 0x44456d
push dword [esi - 8]
push esi
call fcn.004ea294
add esp, 8
test eax, eax
js 0x444a1c
cmp eax, dword [esi - 8]
jg 0x444a1c
xor ecx, ecx
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.004ee500
add esp, 8
test eax, eax
jne 0x44451b
or eax, 0xffffffff
jmp 0x44451f
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00444ac0
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.004222b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444567
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 0x104
mov eax, dword [edx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x4445a5
push 0x82
mov ecx, edx
call fcn.004206e0
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
push dword [edx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.APPDATA
push dword [ebp - 0x220]
call ebx
test eax, eax
jne 0x444606
mov ebx, dword [ebp - 0x234]
mov eax, dword [ebx]
test eax, eax
jne 0x4445d8
xor ecx, ecx
jmp 0x4445ee
push dword [eax - 8]
push eax
call fcn.004ea294
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x444a1c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x444a1c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x444611
mov ecx, dword [ebp - 0x234]
call fcn.00420390
mov ebx, dword [ebp - 0x240]
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x444643
push 0x82
mov ecx, ebx
call fcn.004206e0
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.LOCALAPPDATA
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4446a2
mov eax, dword [ebx]
test eax, eax
jne 0x444674
xor ecx, ecx
jmp 0x44468a
push dword [eax - 8]
push eax
call fcn.004ea294
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x444a1c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x444a1c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4446c0
push dword [ebp - 0x234]
mov ecx, ebx
call fcn.004222b0
push str.Local_SettingsApplication_Data
push str.Application_Data
mov ecx, ebx
call fcn.00421ef0
mov ebx, dword [ebp - 0x244]
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x4446f2
push 0x82
mov ecx, ebx
call fcn.004206e0
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.USERPROFILE
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebx]
jne 0x444754
test eax, eax
jne 0x444723
xor ecx, ecx
jmp 0x444739
push dword [eax - 8]
push eax
call fcn.004ea294
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x444a1c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x444a1c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x444852
mov dword [ebp - 0x21c], 0x104
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x44477e
push 0x82
mov ecx, ebx
call fcn.004206e0
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEDRIVE
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444852
mov eax, dword [0x575ba4]
mov ecx, 0x575ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x82
or eax, ecx
jge 0x4447f7
push 0x82
lea ecx, [ebp - 0x230]
call fcn.004206e0
mov ebx, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
push ebx
lea eax, [ebp - 0x224]
push eax
push 0
push str.HOMEPATH
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444834
mov eax, dword [ebp - 0x244]
push ebx
push dword [eax]
push 0x54d618
push eax
call fcn.00421610
add esp, 0x10
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444852
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x264]
call fcn.00424740
add esp, 4
lea ecx, [ebp - 0x24c]
push ecx
push 0x20019
push 0
push dword [eax]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x264]
test eax, eax
sete bl
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4448b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x444978
mov ebx, dword [ebp - 0x250]
mov dword [ebp - 0x21c], 0x104
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x82
or eax, ecx
jge 0x4448f1
push 0x82
mov ecx, ebx
call fcn.004206e0
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
lea eax, [ebp - 0x224]
push eax
push 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44495c
mov eax, dword [ebx]
test eax, eax
jne 0x444922
xor ecx, ecx
jmp 0x444938
push dword [eax - 8]
push eax
call fcn.004ea294
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x444a1c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x444a1c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44498a
mov eax, dword [ebp - 0x240]
push eax
mov ecx, ebx
call fcn.004222b0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44498a
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x250]
push eax
call fcn.004222b0
mov eax, dword [ebp - 0x258]
mov eax, dword [eax]
test eax, eax
je 0x4449d6
cmp dword [esi - 0xc], 0
jl 0x4449d6
push eax
push esi
call fcn.004eba8d
add esp, 8
test eax, eax
je 0x4449d6
sub eax, esi
sar eax, 1
jne 0x4449d6
mov ebx, dword [ebp - 0x260]
mov eax, dword [ebx]
test eax, eax
je 0x4449d6
cmp dword [edi - 0xc], 0
jl 0x4449d6
push eax
push edi
call fcn.004eba8d
add esp, 8
test eax, eax
je 0x4449d6
sub eax, edi
sar eax, 1
je 0x444a26
mov eax, dword [ebp - 0x248]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x218]
inc eax
push ecx
push eax
push SysStringLen
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x23c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4441d1
jmp 0x444a34
push 0x80070057
call fcn.0041fba0
lea eax, [ebp - 0x238]
push eax
mov ecx, ebx
call fcn.004222b0
add edi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444a54
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x444a77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x444a95
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9eea
mov esp, ebp
pop ebp
ret