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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fd32
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x573be0]
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 [0x574ba4]
mov ecx, 0x574ba4
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 [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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 0x444754
test eax, eax
jne 0x4446f6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443f02
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 0x443f7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4446f6
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 0x443fb9
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 0x44400c
push dword [edi - 8]
push edi
call fcn.004e92e4
add esp, 8
test eax, eax
js 0x44473c
cmp eax, dword [edi - 8]
jg 0x44473c
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
jmp 0x444126
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 0x444040
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.004e92e4
add esp, 8
test eax, eax
js 0x44473c
cmp eax, dword [edi - 8]
jg 0x44473c
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.004447e0
mov byte [ebp - 4], 3
mov edx, dword [eax]
lea ebx, [edi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4440fc
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4440e7
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4440e7
call fcn.00420750
mov dword [ebp - 0x230], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4440dc
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 0x4440fc
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 0x444120
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 0x44415a
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 0x4441a7
push dword [esi - 8]
push esi
call fcn.004e92e4
add esp, 8
test eax, eax
js 0x44473c
cmp eax, dword [esi - 8]
jg 0x44473c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x44428d
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 0x4441db
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 0x44428d
push dword [esi - 8]
push esi
call fcn.004e92e4
add esp, 8
test eax, eax
js 0x44473c
cmp eax, dword [esi - 8]
jg 0x44473c
xor ecx, ecx
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.004ed550
add esp, 8
test eax, eax
jne 0x44423b
or eax, 0xffffffff
jmp 0x44423f
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004447e0
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 0x444287
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 0x4442c5
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 0x444326
mov ebx, dword [ebp - 0x234]
mov eax, dword [ebx]
test eax, eax
jne 0x4442f8
xor ecx, ecx
jmp 0x44430e
push dword [eax - 8]
push eax
call fcn.004e92e4
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44473c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x44473c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x444331
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 0x444363
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 0x4443c2
mov eax, dword [ebx]
test eax, eax
jne 0x444394
xor ecx, ecx
jmp 0x4443aa
push dword [eax - 8]
push eax
call fcn.004e92e4
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44473c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x44473c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4443e0
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 0x444412
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 0x444474
test eax, eax
jne 0x444443
xor ecx, ecx
jmp 0x444459
push dword [eax - 8]
push eax
call fcn.004e92e4
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44473c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x44473c
mov dword [eax - 0xc], ecx
mov eax, dword [ebx]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x444572
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 0x44449e
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 0x444572
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
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 0x444517
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 0x444554
mov eax, dword [ebp - 0x244]
push ebx
push dword [eax]
push 0x54c618
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 0x444572
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 0x4445d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x444698
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 0x444611
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 0x44467c
mov eax, dword [ebx]
test eax, eax
jne 0x444642
xor ecx, ecx
jmp 0x444658
push dword [eax - 8]
push eax
call fcn.004e92e4
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x44473c
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x44473c
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 0x4446aa
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 0x4446aa
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 0x4446f6
cmp dword [esi - 0xc], 0
jl 0x4446f6
push eax
push esi
call fcn.004eaadd
add esp, 8
test eax, eax
je 0x4446f6
sub eax, esi
sar eax, 1
jne 0x4446f6
mov ebx, dword [ebp - 0x260]
mov eax, dword [ebx]
test eax, eax
je 0x4446f6
cmp dword [edi - 0xc], 0
jl 0x4446f6
push eax
push edi
call fcn.004eaadd
add esp, 8
test eax, eax
je 0x4446f6
sub eax, edi
sar eax, 1
je 0x444746
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 0x443ef1
jmp 0x444754
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 0x444774
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 0x444797
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 0x4447b5
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.004e8f3a
mov esp, ebp
pop ebp
ret