Function at 0x440520
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46fdac
mov eax, dword fs:[0]
push eax
mov eax, 0x1084
call fcn.00468360
mov eax, dword [0x4aaeb0]
xor eax, esp
mov dword [esp + 0x1080], eax
push ebx
push esi
push edi
mov eax, dword [0x4aaeb0]
xor eax, esp
push eax
lea eax, [esp + 0x1094]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10a4]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov esi, ecx
mov edi, 7
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x1f], bl
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
call fcn.004016a0
push 0xffffffffffffffff
mov dword [esp + 0x10a0], ebx
push ebx
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.004016a0
mov byte [esp + 0x109c], 1
push 1
push 0x485860
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00401540
lea eax, [esp + 0x20]
lea ecx, [esp + 0x74]
lea edx, [esp + 0x3c]
mov byte [esp + 0x109c], 2
call fcn.00434be0
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x44060f
mov eax, dword [esp + 0x40]
push eax
call fcn.00452ad1
add esp, 4
mov byte [esp + 0x109c], 1
cmp dword [esp + 0x38], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x440637
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00452ad1
add esp, 4
push 1
push 0x485860
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00401540
lea eax, [esp + 0x20]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x3c]
mov byte [esp + 0x109c], 3
call fcn.00434be0
cmp dword [esp + 0x54], esi
jb 0x440680
mov edx, dword [esp + 0x40]
push edx
call fcn.00452ad1
add esp, 4
mov byte [esp + 0x109c], 1
cmp dword [esp + 0x38], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x4406a8
mov eax, dword [esp + 0x24]
push eax
call fcn.00452ad1
add esp, 4
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
jae 0x4406b9
lea eax, [esp + 0x78]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4407e6
push 0xffe
lea edx, [esp + 0x96]
push ebx
push edx
mov dword [esp + 0x20], 0x1000
mov word [esp + 0x9c], bx
call fcn.0045a220
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp dword [esp + 0x70], esi
mov dword [esp + 0x1c], ebx
jae 0x440710
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x94]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4407db
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x4407aa
cmp eax, 2
je 0x4407aa
cmp eax, edi
jne 0x4407db
mov ecx, dword [esp + 0x14]
xor eax, eax
shr ecx, 1
je 0x44077b
jmp 0x440760
cmp word [esp + eax*2 + 0x90], bx
jne 0x440774
mov word [esp + eax*2 + 0x90], 0xa
add eax, 1
cmp eax, ecx
jb 0x440760
mov word [esp + eax*2 + 0x8e], bx
lea eax, [esp + 0x90]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x440790
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x94]
push eax
jmp 0x4407cc
lea eax, [esp + 0x90]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4407b4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, 0x4af5bc
call fcn.00401540
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x70], esi
jb 0x4407f9
mov eax, dword [esp + 0x5c]
push eax
call fcn.00452ad1
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x44081c
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00452ad1
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1094]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1080]
xor ecx, esp
call fcn.00452816
add esp, 0x1090
ret