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

Disassembly:
push 0xffffffffffffffff
push 0x81d154
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 0x5d8278
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x10], ebp
cmp dword [eax + 8], ebp
je 0x5d8117
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x5d8119
mov eax, 0x8522f8
jmp 0x5d8119
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 0x5d813c
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 0x5d8182
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
cmp dword [esi + 0x4c], 0xb
je 0x5d81e0
test edi, edi
mov dword [esi + 0x18], 0x70c
je 0x5d8198
lea ebp, [edi + 4]
jmp 0x5d819a
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 0x5d81e0
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 0x5d820a
mov ebp, dword [eax + 4]
test ebp, ebp
jne 0x5d820c
mov ebp, 0x8522f8
jmp 0x5d820c
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 0x5d8236
add edi, 4
jmp 0x5d8238
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 0x5d8276
push esi
lea ecx, [esp + 0x20]
call fcn.005daf90
lea eax, [esp + 0x1c]
push 0x8c1574
push eax
call fcn.007ac5c6
xor ebp, ebp
mov ecx, ebx
call fcn.004a0720
cmp eax, 8
jae 0x5d82d3
lea eax, [esi + 4]
mov dword [esi + 0x18], 0xd
cmp eax, ebp
je 0x5d8295
lea ebp, [eax + 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 0x5d82d3
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 0x5d82f6
mov ecx, ebx
call fcn.0074ebc0
mov ecx, dword [esp + 0xac]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
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 0xc