Function at 0x300036b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30008ee4
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x3000207c]
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
cmp dword [0x3000b28c], 0
jne 0x300039df
lea eax, [ebp - 0x648]
push eax
push 0x20019
push 0
push 0x300014c8
push 0x80000001
mov esi, 0x409
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3000378b
lea ecx, [ebp - 0x63c]
push ecx
mov ecx, dword [ebp - 0x648]
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x630]
push eax
push 0
push 0x30001ac0
mov ebx, 4
push ecx
mov dword [ebp - 0x63c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x648]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x3000378b
cmp dword [ebp - 0x630], ebx
jne 0x3000378b
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x3000378b
cmp eax, 0x404
mov esi, eax
jne 0x3000378b
push eax
push 0x30001aa8
push 0x30001578
push 0x80000001
call fcn.300025cc
mov esi, eax
mov eax, dword [0x30002418]
mov dword [ebp - 0x638], eax
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x638]
mov dword [ebp - 4], 0
call fcn.3000812d
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x300012d8
mov dword [ebp - 0x64c], 0x104
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30001854
push eax
mov dword [ebp - 0x63c], eax
call edi
push 0x300012ac
lea ecx, [ebp - 0x640]
mov esi, eax
call fcn.30007e8a
lea ecx, [ebp - 0x638]
push ecx
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 1
call fcn.3000808e
mov ecx, dword [ebp - 0x640]
lea edx, [ebp - 0x64c]
push edx
lea eax, [ebp - 0x62c]
push eax
push 0xfffffffffffffffe
push ecx
push 0x30001338
call esi
test eax, eax
jne 0x30003834
lea edx, [ebp - 0x62c]
push edx
call ebx
mov dword [0x3000b28c], eax
lea eax, [ebp - 0x64c]
push eax
push 0x3000b290
push 0xfffffffffffffffe
push 0x300012c0
push 0x300012e8
call esi
push 0x3000170c
lea ecx, [ebp - 0x644]
call fcn.30007e8a
lea ecx, [ebp - 0x638]
push ecx
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call fcn.3000808e
cmp byte [0x3000b269], 0
je 0x30003993
mov edx, dword [ebp - 0x63c]
push 0x30001a8c
push edx
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 0x650], esi
je 0x30003993
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x630]
push edx
lea eax, [ebp - 0x420]
push eax
xor ebx, ebx
push ebx
mov edi, 0x104
push 0x30001388
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], edi
call esi
test eax, eax
jne 0x30003993
mov edi, edi
push 1
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x644]
call fcn.30007b15
test al, al
je 0x3000394f
mov eax, 0x3000b49c
lea esi, [ebp - 0x218]
xor edi, edi
mov edx, 0x14
sub esi, eax
lea esp, [esp]
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x3000392f
movzx ecx, word [esi + eax]
test cx, cx
je 0x3000392f
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x3000390f
jmp 0x30003933
test edx, edx
jne 0x3000393b
sub eax, 2
mov edi, 0x8007007a
test edi, edi
mov word [eax], 0
jge 0x3000398c
mov esi, dword [ebp - 0x650]
mov edi, 0x104
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x420]
push edx
add ebx, 1
push ebx
push 0x30001388
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x634], edi
call esi
test eax, eax
je 0x300038e0
jmp 0x30003993
mov byte [0x3000b26a], 1
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x644]
cmp word [eax], 0
je 0x300039b5
add eax, 0xfffffff8
push eax
call fcn.3000764c
mov eax, dword [ebp - 0x640]
cmp word [eax], 0
je 0x300039ca
add eax, 0xfffffff8
push eax
call fcn.3000764c
mov eax, dword [ebp - 0x638]
cmp word [eax], 0
je 0x300039df
add eax, 0xfffffff8
push eax
call fcn.3000764c
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.300068d0
mov esp, ebp
pop ebp
ret