Function at 0x40f670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afddb
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x82c], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x828]
call fcn.004020b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
lea ecx, [ebp - 0x840]
push ecx
push 0xf013f
push 0
push 0x4d1e38
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40f73e
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov eax, dword [ebp - 0x82c]
or eax, 1
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40f978
push 0
lea ecx, [ebp - 0x83c]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40f7b9
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x828]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov eax, dword [ebp - 0x82c]
or eax, 1
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40f978
push 0
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x40f841
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40f978
push 0x800
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.0048e340
add esp, 0xc
mov dword [ebp - 0x848], 0x400
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x810]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x834], ecx
mov edx, dword [ebp - 0x834]
add edx, 2
mov dword [ebp - 0x84c], edx
mov eax, dword [ebp - 0x834]
mov cx, word [eax]
mov word [ebp - 0x842], cx
add dword [ebp - 0x834], 2
cmp word [ebp - 0x842], 0
jne 0x40f8c6
mov edx, dword [ebp - 0x834]
sub edx, dword [ebp - 0x84c]
sar edx, 1
mov dword [ebp - 0x850], edx
mov eax, dword [ebp - 0x850]
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 0
jne 0x40f945
lea ecx, [ebp - 0x828]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401c10
mov edx, dword [ebp - 0x82c]
or edx, 1
mov dword [ebp - 0x82c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
jmp 0x40f978
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
call fcn.004020b0
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004022e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret