Function at 0x4f06e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539bee
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0049e130
add esp, 0xc
call fcn.00401980
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4f0763
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f0778
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4f077a
call edx
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], 0x69
mov dword [edi + 0x28], 0xcd
mov dword [edi + 0x2c], 0x131
mov dword [edi + 0x34], 0x195
mov dword [edi + 0x3c], 0x163
mov dword [edi + 0x30], 0x25d
mov dword [edi + 0x38], 0x1f9
mov dword [edi + 0x40], 0x389
mov dword [edi + 0xe0], 0x508e10
mov dword [edi + 0xe4], 0
mov eax, dword [0x59fb74]
mov dword [ebp - 0x228], 0x5626c0
mov dword [ebp - 0x224], 0x562690
mov dword [ebp - 0x220], 0x562754
cmp dword [eax - 0xc], 0
jne 0x4f0810
push 0x25
push 0x562708
lea ecx, [ebp - 0x234]
call fcn.00402d50
jmp 0x4f0825
push eax
lea eax, [ebp - 0x234]
push 0x56279c
push eax
call fcn.004023f0
add esp, 0xc
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
push eax
push 0x2001f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x22c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f09a6
mov ebx, dword [ebp - 0x22c]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x244], ebx
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x22c], 0x208
push eax
push 0
push 0x562784
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f09a6
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x4f08b2
cmp eax, 2
jne 0x4f09a6
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4f08d6
test al, 1
jne 0x4f09a6
shr eax, 1
cmp word [ebp + eax*2 - 0x21e], 0
je 0x4f08df
jmp 0x4f09a6
xor eax, eax
mov word [ebp - 0x21c], ax
push 3
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00509e30
mov dword [ebp - 0x238], eax
test eax, eax
je 0x4f09a6
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0x5627d4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f09a6
mov eax, dword [ebp - 0x230]
cmp eax, 1
je 0x4f0943
cmp eax, 2
jne 0x4f09a6
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4f0960
test al, 1
jne 0x4f09a6
shr eax, 1
cmp word [ebp + eax*2 - 0x21e], 0
je 0x4f0969
jmp 0x4f09a6
xor eax, eax
mov word [ebp - 0x21c], ax
lea edx, [ebp - 0x21c]
lea eax, [edx + 2]
lea ecx, [edi + 0x68]
mov dword [ebp - 0x230], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f0980
sub edx, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
sar edx, 1
push edx
push eax
call fcn.00402d50
mov dword [edi], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f09db
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f09d9
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f09db
call edx
test ebx, ebx
je 0x4f09e6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 4