Function at 0x4596a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0090
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x677010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor bl, bl
mov byte [ebp - 0x11], bl
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], 0
je 0x459779
lea edx, [ecx + 0xc]
cmp dword [edx], 0
jge 0x45970c
cmp dword [eax - 8], 0
jge 0x4596fc
push 0x80070057
call fcn.004022e2
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
jmp 0x459779
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x45975b
mov edx, dword [ecx]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x18], esi
cmp eax, vtable.ATL::CAtlStringMgr.0
mov esi, dword [ebp + 0x14]
push ecx
jne 0x459756
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x18], esi
cmp eax, vtable.ATL::CWin32Heap.0
mov esi, dword [ebp + 0x14]
jne 0x45974f
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45975b
mov ecx, edx
call dword [ebp - 0x18]
jmp 0x45975b
mov ecx, edx
call dword [ebp - 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x459770
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
jmp 0x459774
mov ecx, edi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4599db
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4597fa
cmp word [eax], 0
je 0x4597fa
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
push 0x20019
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00436690
test eax, eax
jne 0x4597da
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], edi
jmp 0x4597dd
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
test eax, eax
je 0x4597f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], 0x3e8
push 0x3e8
call fcn.00476ee6
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
push 0x3e8
push 0
push esi
call fcn.005c0a60
add esp, 0xc
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
call fcn.00436790
test eax, eax
jne 0x4598a3
test esi, esi
jne 0x459875
xor ecx, ecx
push ecx
push esi
mov ecx, dword [ebp + 0x14]
call fcn.004020e3
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4599a6
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459880
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, dword [ebp + 0x14]
call fcn.004020e3
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4599a6
lea eax, [ebp + 0xc]
push eax
push esi
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.0045d130
test eax, eax
jne 0x4598cb
push esi
mov ecx, dword [ebp + 0x14]
call fcn.0040d500
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4599a6
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459911
cmp dword [ebp + 0xc], 4
jne 0x459911
push dword [ebp - 0x18]
push 0x642884
push dword [ebp + 0x14]
call fcn.00443a90
add esp, 0xc
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4599a6
mov dword [ebp - 0x24], 8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x459957
cmp dword [ebp + 0xc], 0xb
jne 0x459957
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str._I64
push dword [ebp + 0x14]
call fcn.00443a90
add esp, 0x10
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x4599a6
call fcn.0041db40
cmp dword [eax + 4], 1
jl 0x4599a6
push 1
push ecx
call fcn.0041db40
add esp, 4
mov ecx, eax
call fcn.0041dca0
mov esi, eax
call fcn.0041db40
mov edx, esi
mov ecx, eax
call fcn.00413a60
mov edx, str.Cant_handle_Registry_value_for:
mov ecx, eax
call fcn.00413320
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.00413320
push eax
call fcn.00414850
add esp, 4
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push esi
call fcn.00476ee1
add esp, 4
cmp edi, dword [ebp + 8]
je 0x4599d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x459a36
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 0x10