Function at 0x7d714b20
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_RegOpenKeyExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x7d714b53
xor eax, eax
jmp 0x7d71509d
mov eax, 2
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov word [edx + eax + 4], cx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Linkage
mov ecx, dword [ebp - 0x14]
push ecx
call sym.kernelbase.dll_RegOpenKeyExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d714c7d
mov dword [ebp - 4], 0x206
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Export
mov edx, dword [ebp - 0xc]
push edx
call sym.kernelbase.dll_RegQueryValueExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d714c74
cmp dword [ebp - 0x10], 1
je 0x7d714bce
cmp dword [ebp - 0x10], 7
jne 0x7d714c74
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 4
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov word [edx + eax*2 + 4], cx
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d714c74
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d714c21
mov dword [ebp - 0x20], 0x12
jmp 0x7d714c28
mov dword [ebp - 0x20], 0x21
push 0x7d7242c0
push 0x71e
push str.load_provider
mov ecx, dword [ebp - 0x20]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d714c74
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
call fcn.7d701950
add esp, 4
push eax
push str.Export:__s_n
call fcn.7d71f960
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.7d711170
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
push str.Performance
mov eax, dword [ebp - 0x14]
push eax
call sym.kernelbase.dll_RegOpenKeyExW
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.7d711170
cmp dword [ebp - 8], 0
je 0x7d714caf
xor eax, eax
jmp 0x7d71509d
mov edx, 2
imul edx, edx, 0
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov word [ecx + edx + 0x20c], ax
mov dword [ebp - 4], 0x206
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Object_List
mov edx, dword [ebp - 0xc]
push edx
call sym.kernelbase.dll_RegQueryValueExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d714db5
cmp dword [ebp - 0x10], 1
je 0x7d714d07
cmp dword [ebp - 0x10], 7
jne 0x7d714db5
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x20c
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov word [edx + eax*2 + 0x20c], cx
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d714db5
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d714d60
mov dword [ebp - 0x18], 0x12
jmp 0x7d714d67
mov dword [ebp - 0x18], 0x21
push 0x7d7242c0
push 0x72f
push str.load_provider
mov ecx, dword [ebp - 0x18]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d714db5
mov eax, dword [ebp + 0x10]
add eax, 0x20c
push eax
call fcn.7d701950
add esp, 4
push eax
push str.Object_List:__s_n
call fcn.7d71f960
add esp, 8
mov dword [ebp - 4], 0x206
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Library
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernelbase.dll_RegQueryValueExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d714df0
cmp dword [ebp - 0x10], 1
je 0x7d714df5
cmp dword [ebp - 0x10], 2
je 0x7d714df5
jmp 0x7d715092
mov edx, dword [ebp - 4]
shr edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x234], ax
cmp dword [ebp - 0x10], 2
jne 0x7d714e4c
push 0x104
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x234]
push edx
call sym.kernelbase.dll_ExpandEnvironmentStringsW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x7d714e34
cmp dword [ebp - 4], 0x104
jbe 0x7d714e39
jmp 0x7d715092
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x234]
push ecx
call sym.kernelbase.dll_lstrcpyW
lea edx, [ebp - 0x234]
push edx
call sym.kernelbase.dll_LoadLibraryW
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [ebp - 0x2c], 0
jne 0x7d714eef
mov edx, dword [0x7d727a40]
movzx eax, byte [edx]
and eax, 4
je 0x7d714eea
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ecx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp edx, 0x2e
jne 0x7d714e98
mov dword [ebp - 0x28], 0x12
jmp 0x7d714e9f
mov dword [ebp - 0x28], 0x21
push 0x7d7242c0
push 0x741
push str.load_provider
mov eax, dword [ebp - 0x28]
add eax, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push eax
mov ecx, dword [0x7d727a40]
push ecx
push 2
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d714eea
lea edx, [ebp - 0x234]
push edx
call fcn.7d701950
add esp, 4
push eax
push str.Failed_to_load__s_n
call fcn.7d71f960
add esp, 8
jmp 0x7d715092
push 0x104
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call sym.kernelbase.dll_GetModuleFileNameW
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d714f83
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d714f30
mov dword [ebp - 0x1c], 0x12
jmp 0x7d714f37
mov dword [ebp - 0x1c], 0x21
push 0x7d7242c0
push 0x746
push str.load_provider
mov ecx, dword [ebp - 0x1c]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d714f83
lea eax, [ebp - 0x234]
push eax
call fcn.7d701950
add esp, 4
push eax
push str.Loaded_provider__s_n
call fcn.7d71f960
add esp, 8
push str.Open
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.7d7148b0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x414], eax
push str.Close
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.7d7148b0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x418], eax
push str.Collect
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.7d7148b0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x41c], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x414], 0
je 0x7d71501a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x418], 0
je 0x7d71501a
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x41c], 0
je 0x7d71501a
mov edx, dword [ebp - 0xc]
push edx
call fcn.7d711170
mov eax, 1
jmp 0x7d71509d
mov eax, dword [0x7d727a40]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d715087
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp eax, 0x2e
jne 0x7d715044
mov dword [ebp - 0x24], 0x12
jmp 0x7d71504b
mov dword [ebp - 0x24], 0x21
push 0x7d7242c0
push 0x751
push str.load_provider
mov ecx, dword [ebp - 0x24]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push ecx
mov edx, dword [0x7d727a40]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d715087
push str.Provider_is_missing_required_exports_n
call fcn.7d71f960
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call sym.kernelbase.dll_FreeLibrary
mov edx, dword [ebp - 0xc]
push edx
call fcn.7d711170
xor eax, eax
mov esp, ebp
pop ebp
ret