Function at 0x445800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed750
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
mov dword [ebp - 0x10], 0x1fffff
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x44589f
push 0x53b398
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0041c9c0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004020f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44589f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00444fd0
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004045e0
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x44592a
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x44591b
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x44591b
call fcn.004022e0
mov dword [ebp - 0x28], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x445913
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x44592a
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.004021b0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44594a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44596a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445a4d
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x10]
lea edx, [ecx + 2]
jne 0x4459b1
inc eax
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aeef0
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 4
add eax, eax
push eax
push 0
push ebx
call fcn.004b4d70
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x445a2b
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2], ax
test ebx, ebx
jne 0x445a0d
xor ecx, ecx
jmp 0x445a21
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445a12
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x34]
push ebx
call fcn.004021b0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004b08fb
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x445a4d
cmp dword [ebp - 0x24], 1
jne 0x445a4d
mov bl, 1
jmp 0x445a4f
xor bl, bl
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x445a6c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x445a8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x445aad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret