Function at 0x436c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b4dc4]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test al, 1
jne 0x436c83
or eax, 1
mov dword [0x4b4dc0], 0
push 0x48ae20
mov dword [0x4b4dc4], eax
call fcn.0046e569
add esp, 4
mov ecx, 0x4b4dc0
call fcn.00468f70
test eax, eax
jne 0x436d35
push 0x490fa0
mov ecx, 0x4b4dc0
call fcn.00468930
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x436d35
lea eax, [ebp - 0x410]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 1
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x436d29
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push dword [ebp - 0x404]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x436d29
push dword [ebp - 0x40c]
mov ecx, 0x4b4dc0
call fcn.00468930
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x4b4dc8], 0
jne 0x436dd7
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0x49a56c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436db9
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0xffffffff
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], 4
push eax
push 0
push 0
push 0x49a588
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x408]
cmp eax, 0xffffffff
je 0x436db9
push eax
push 0x49a598
push 4
push 0x4b4dc8
call fcn.004304c0
add esp, 0x10
cmp word [0x4b4dc8], 0
jne 0x436dd7
push 0x49a5a4
push 4
push 0x4b4dc8
call fcn.0046d74c
add esp, 0xc
cmp word [edi], 0xa
jbe 0x436f9f
push 0xa
push 0x49a5a8
push esi
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436f9f
cmp word [edi], 0x11
jb 0x436ebc
push 7
lea eax, [esi + 0x14]
push 0x49a5c0
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436ebc
cmp word [edi], 0x44
jb 0x436e47
push 0x33
lea eax, [esi + 0x22]
push 0x49a5d0
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436e47
push 0x494678
push 0x44
jmp 0x436f93
cmp word [edi], 0x22
jb 0x436e70
push 0x11
lea eax, [esi + 0x22]
push 0x49a638
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436e70
push 0x4946b0
push 0x22
jmp 0x436f93
cmp word [edi], 0x26
jb 0x436eb0
push 0x12
lea eax, [esi + 0x22]
push 0x49a65c
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436eb0
push 3
lea eax, [esi + 0x46]
push 0x4b4dc8
push eax
call fcn.004707fb
add esp, 0xc
test eax, eax
jne 0x436eb0
push 0x49a684
push 0x26
jmp 0x436f93
push 0x494610
push 0x11
jmp 0x436f93
cmp word [edi], 0xe
jb 0x436f9f
push 4
lea eax, [esi + 0x14]
push 0x49a6c0
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436f9f
mov ecx, 0x4b4dc0
call fcn.00468f70
movzx ecx, word [edi]
add eax, 0xf
cmp ecx, eax
jb 0x436f8c
cmp word [esi + 0x1c], 0x5c
jne 0x436f8c
mov ecx, 0x4b4dc0
call fcn.00468f70
push eax
mov ecx, 0x4b4dc0
call fcn.004689b0
push eax
lea eax, [esi + 0x1e]
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436f8c
mov ecx, 0x4b4dc0
call fcn.00468f70
movzx ecx, word [edi]
add eax, 0x17
cmp ecx, eax
jb 0x436f77
push 8
push 0x49a6cc
mov ecx, 0x4b4dc0
call fcn.00468f70
add eax, 0xf
lea eax, [esi + eax*2]
push eax
call fcn.0046e6bb
add esp, 0xc
test eax, eax
jne 0x436f77
push 0x49a6e0
mov ecx, 0x4b4dc0
call fcn.00468f70
add eax, 0x17
push eax
jmp 0x436f93
push 0x494644
mov ecx, 0x4b4dc0
call fcn.00468f70
add eax, 0xf
push eax
jmp 0x436f93
push 0x4946e4
push 0xe
push 0
push edi
push esi
call fcn.004362b0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret