Function at 0x45d540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594498
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.0055b080
mov eax, dword [0x60b4e0]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1058], esi
mov dword [ebp - 0x1048], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1044], eax
lea eax, [ebp - 0x1044]
push eax
push 0x20019
push 0
push 0x5b0514
push SysReAllocString
mov dword [ebp - 0x1048], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x1044]
test edi, edi
je 0x45d844
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0055dac0
add esp, 0xc
mov dword [ebp - 0x1050], 1
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1050]
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45d838
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1028], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d650
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1028]
call fcn.00404870
push 0xb
xor eax, eax
mov dword [ebp - 4], 1
push 0x5b0548
lea ecx, [ebp - 0x1040]
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
call fcn.00404870
push 0
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.004368c0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1040]
mov edi, eax
call fcn.004047a9
cmp edi, 0xffffffff
je 0x45d82d
lea eax, [edi + 0xb]
push eax
push 0
lea eax, [ebp - 0x1040]
push eax
lea ecx, [ebp - 0x1028]
call fcn.0044d2d0
push eax
lea ecx, [ebp - 0x1028]
call fcn.00405898
lea ecx, [ebp - 0x1040]
call fcn.004047a9
mov edx, dword [ebp - 0x1014]
lea eax, [ebp - 0x1028]
mov edi, dword [ebp - 0x1028]
cmp edx, 8
cmovae eax, edi
cmp word [eax], 0x22
jne 0x45d768
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1040]
push 1
push eax
lea ecx, [ebp - 0x1028]
call fcn.0044d2d0
push eax
lea ecx, [ebp - 0x1028]
call fcn.00405898
lea ecx, [ebp - 0x1040]
call fcn.004047a9
mov edx, dword [ebp - 0x1014]
mov edi, dword [ebp - 0x1028]
mov ebx, dword [ebp - 0x1018]
lea eax, [ebp - 0x1028]
cmp edx, 8
cmovae eax, edi
mov dword [ebp - 0x1054], eax
test ebx, ebx
je 0x45d814
mov ecx, ebx
lea ebx, [ebx]
cmp word [eax], 0x7e
je 0x45d7a0
add eax, 2
sub ecx, 1
jne 0x45d790
jmp 0x45d814
test eax, eax
je 0x45d814
sub eax, dword [ebp - 0x1054]
sar eax, 1
cmp eax, 0xffffffff
je 0x45d814
cmp edx, 8
lea ecx, [ebp - 0x1010]
push 0x400
lea eax, [ebp - 0x1028]
cmovae eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45d802
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d7e0
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1028]
call fcn.00404870
mov edi, dword [ebp - 0x1028]
mov ebx, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x1014]
lea eax, [ebp - 0x1028]
cmp esi, eax
je 0x45d82d
cmp edx, 8
mov ecx, esi
push ebx
cmovae eax, edi
push eax
call fcn.00404870
lea ecx, [ebp - 0x1028]
call fcn.004047a9
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0055a658
mov esp, ebp
pop ebp
ret