Function at 0x5d7840
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x81d0c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
mov dword [esp + 0x1c], esi
call fcn.004d2780
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x17]
push ecx
push 0x951210
lea ecx, [esi + 0x20]
mov dword [esi], vtable.WWLib::CWinApiBase_1_.0
mov dword [esi + 0x1c], eax
call fcn.005d7070
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], ebp
mov dword [esi + 0x18], ebp
push 1
mov ecx, esi
mov dword [esp + 0xa0], ebp
mov dword [esi], 0x869e2c
call fcn.005d7720
lea ebx, [esi + 0x38]
mov dword [esp + 0x9c], 1
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x10], ebp
mov ecx, esi
mov byte [esp + 0x9c], 2
mov dword [esi], 0x869f34
call dword [0x869f3c]
test al, al
jne 0x5d7a73
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x10], ebp
cmp dword [eax + 8], ebp
je 0x5d7907
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x5d7909
mov eax, 0x8522f8
jmp 0x5d7909
xor eax, eax
lea edx, [esp + 0x10]
lea ecx, [esi + 0x4c]
push edx
push ebp
push ecx
push ebp
push eax
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [esi + 4]
mov dword [esi + 0x18], eax
cmp edi, ebp
je 0x5d792c
lea ebp, [edi + 4]
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebp
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d7972
push esi
lea ecx, [esp + 0x20]
call fcn.00537590
lea eax, [esp + 0x1c]
push 0x8c1574
push eax
mov dword [esp + 0x24], 0x869e24
call fcn.007ac5c6
mov eax, dword [esp + 0xb0]
mov ecx, dword [esi + 0x4c]
cmp ecx, eax
je 0x5d79dd
cmp eax, 0xffffffff
je 0x5d79dd
test edi, edi
mov dword [esi + 0x18], 0x70c
je 0x5d7995
lea ebp, [edi + 4]
jmp 0x5d7997
xor ebp, ebp
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebp
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d79dd
push esi
lea ecx, [esp + 0x20]
call fcn.00537590
lea eax, [esp + 0x1c]
push 0x8c1574
push eax
mov dword [esp + 0x24], 0x869e24
call fcn.007ac5c6
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, ebx
call fcn.0042c390
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5d7a07
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x5d7a09
mov ebp, 0x8522f8
jmp 0x5d7a09
xor ebp, ebp
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.0074ebc0
push eax
lea eax, [esi + 0x4c]
push eax
mov eax, dword [esi + 0x34]
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
mov dword [esi + 0x18], eax
je 0x5d7a33
add edi, 4
jmp 0x5d7a35
xor edi, edi
push str.RegQueryValueExW__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.RegQueryValueExW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5d7a73
push esi
lea ecx, [esp + 0x20]
call fcn.005daf90
lea eax, [esp + 0x1c]
push 0x8c1574
push eax
call fcn.007ac5c6
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x5d7a8b
mov ecx, dword [esp + 0xac]
push ebx
call fcn.004485e0
mov ecx, dword [esp + 0x94]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 0x10