Function at 0x687cb070
Capabilities:
Access peb ldr_data
Get process heap flags
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x22c
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1f8], edx
mov dword [ebp - 0x1f4], ecx
test byte [0x687da03c], 8
jne 0x687cb480
mov dword [ebp - 0x1f0], 0
mov ecx, dword [ebp - 0x1f0]
mov edx, str.SOFTWAREMicrosoftDirectPlayLobby_Providers
mov eax, 0x687dc468
mov dword [ebp - 0x1dc], 0x32
test ecx, ecx
cmovne eax, edx
xor ecx, 1
xor ebx, ebx
mov edx, ecx
mov ecx, dword [ebp - 0x1f4]
mov dword [ecx], edx
lea edx, [ebp - 0x1e0]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x687cb73d
lea esi, [ebp - 0x1b1]
jmp 0x687cb12a
test byte [0x687da03c], 2
jne 0x687cb430
mov dword [ebp - 0x1dc], 0x33
add ebx, 1
lea eax, [ebp - 0x1cc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x1dc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1e0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegEnumKeyExA
sub esp, 0x20
cmp eax, 0x103
je 0x687cb460
mov dword [ebp - 0x1d0], 0xff
test byte [0x687da03c], 8
jne 0x687cb248
lea eax, [ebp - 0x1d8]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1e0]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x687cb110
lea eax, [ebp - 0x1d0]
lea edi, [ebp - 0x118]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0x687dc4e7
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x687cb278
test byte [0x687da03c], 2
je 0x687cb11d
mov dword [esp + 0xc], 0x687dc4ec
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cb11d
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x687dc4b1
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cb191
lea edx, [ebp - 0x17e]
mov dword [esp + 0x14], 0x33
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
lea ecx, [ebp - 0x1c4]
lea edx, [ebp - 0x17e]
sub esp, 0x18
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.ole32.dll_CLSIDFromString
mov eax, dword [ebp - 0x1ec]
sub esp, 8
mov eax, dword [eax]
cmp dword [ebp - 0x1c4], eax
jne 0x687cb11d
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x1c0], eax
jne 0x687cb11d
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x1bc], eax
jne 0x687cb11d
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x1b8], eax
jne 0x687cb11d
mov eax, dword [ebp - 0x1f0]
test eax, eax
je 0x687cb576
lea eax, [ebp - 0x1d0]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.dwReserved1
mov dword [esp], eax
mov dword [ebp - 0x1d0], 0xff
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x687cb540
lea eax, [ebp - 0x1d0]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 8], 0
mov dword [esp + 4], str.dwReserved2
mov dword [esp], eax
mov dword [ebp - 0x1d0], 0xff
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x687cb540
lea eax, [ebp - 0x1d0]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x687dd381
mov dword [esp], eax
mov dword [ebp - 0x1d0], 0xff
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x687cb6d0
test byte [0x687da03c], 8
jne 0x687cb710
mov dword [esp], edi
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x687dc4c9
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cb11d
cmp dword [ebp - 0x1f0], 1
jne 0x687cb773
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
shr eax, 0x10
je 0x687cb51e
mov edi, dword [ebp - 0x1ec]
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x687dc2fc
mov dword [esp + 4], eax
call fcn.687c3460
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._request_to_load__s_n
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cb09b
movzx eax, word [ebp - 0x1ec]
mov dword [esp], 0x687dc2ec
mov dword [esp + 4], eax
call fcn.687c3460
jmp 0x687cb4f1
test byte [0x687da03c], 2
je 0x687cb11d
mov dword [esp + 0xc], str.:_missing_dwReserved1_registry_data_members_n
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cb11d
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov edx, eax
sub esp, 0x18
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1fc], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov edx, dword [ebp - 0x1f8]
sub esp, 0xc
mov dword [edx + 8], eax
mov edx, dword [ebp - 0x1fc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1d0], 0xff
sub esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.dwReserved1
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x687cb540
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1d0], 0xff
mov dword [edx + 0x10], eax
lea eax, [ebp - 0x1d0]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1d8]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.dwReserved2
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x687cb540
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x1f8]
mov dword [ecx + 0x14], eax
jmp 0x687cb3bf
test byte [0x687da03c], 2
je 0x687cb11d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.:_missing_PATH_registry_data_members:_0x_08x_n
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cb11d
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Loading__s_n
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 3
call fcn.687c3970
jmp 0x687cb415
test byte [0x687da03c], 2
je 0x687cb46f
mov dword [esp + 0xc], 0x687dc498
mov dword [esp + 8], str.DP_LoadSP
mov dword [esp + 4], 0x687da03c
mov dword [esp], 1
call fcn.687c3970
jmp 0x687cb46f
mov dword [ebp - 0x1f0], 1
jmp 0x687cb0a5