Function at 0x45a720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2c57
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x51c91c]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x210
push 0
push eax
mov dword [ebp - 0x244], edi
call fcn.00469210
lea eax, [ebp - 0x224]
push eax
call fcn.0045bfd0
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
call fcn.0045ab80
add esp, 0x14
mov ecx, dword [eax]
mov edx, ecx
mov eax, dword [ebp - 0x224]
sub edx, eax
sar edx, 1
mov byte [ebp - 4], 1
mov ebx, dword [ecx - 0xc]
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x228], esi
test ebx, ebx
js 0x45aa59
test ecx, ecx
jne 0x45a7c6
xor ebx, ebx
jmp 0x45a7d8
push ebx
push ecx
call fcn.00485114
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x224]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, esi
jl 0x45aa63
add esi, ebx
js 0x45aa6d
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x45a812
push esi
lea ecx, [ebp - 0x224]
call fcn.004046b0
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x23c]
lea edx, [eax + ecx*2]
cmp ecx, dword [ebp - 0x228]
jbe 0x45a829
mov edx, dword [ebp - 0x240]
lea ecx, [ebx + ebx]
push ecx
push edx
push ecx
mov ecx, dword [ebp - 0x228]
lea eax, [eax + ecx*2]
push eax
call fcn.0045d970
mov eax, dword [ebp - 0x224]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x45aa59
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], cl
mov word [eax + esi*2], cx
or esi, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ab10
test eax, eax
je 0x45a95d
push 0x20119
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ab10
test eax, eax
je 0x45a95d
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45aa77
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x4eab1c
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004036f0
test al, al
jne 0x45a921
push 0
push 0x4eab1c
mov ecx, edi
call fcn.00404ae0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x45a932
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45aa3b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45aa3b
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push str.Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a9b6
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x45a9a4
cmp eax, 2
jne 0x45a9b6
cmp dword [ebp - 0x228], 0
jne 0x45a9b6
xor eax, eax
mov word [ebp - 0x220], ax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45aa81
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.004036f0
test al, al
jne 0x45aa0e
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a9f0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00404ae0
test ebx, ebx
je 0x45aa19
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45aa3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.004530b8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036d0
push 0x80070057
call fcn.004036d0
push 0x80070057
call fcn.004036d0
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
int3