Function at 0x68925f60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x68925f82
cmp dword [ebp + 0x10], 0
jne 0x68925f8c
mov eax, 0x57
jmp 0x6892620f
cmp dword [ebp + 0x20], 0
je 0x68926017
mov eax, dword [ebp + 0x20]
movzx ecx, word [eax]
test ecx, ecx
je 0x68926017
mov edx, dword [0x6893c030]
movzx eax, byte [edx]
and eax, 1
je 0x6892600d
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 0x68925fcb
mov dword [ebp - 0x20], 0x12
jmp 0x68925fd2
mov dword [ebp - 0x20], 0x21
push 0x68938310
push 0x2c6
push 0x6893c2f0
mov eax, dword [ebp - 0x20]
add eax, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push eax
mov ecx, dword [0x6893c030]
push ecx
push 0
call fcn.68933a40
add esp, 0x18
cmp eax, 0xffffffff
je 0x6892600d
push str.BaseDir_parameter_not_yet_supported__n
call fcn.68933ab0
add esp, 4
mov eax, 0x57
jmp 0x6892620f
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_RegQueryValueExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6892603e
jmp 0x689261ea
cmp dword [ebp - 0x14], 1
je 0x6892604a
cmp dword [ebp - 0x14], 2
jne 0x68926050
cmp dword [ebp - 0xc], 0
jne 0x6892605c
mov dword [ebp - 8], 2
jmp 0x689261ea
mov eax, dword [ebp - 0xc]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x68926082
mov dword [ebp - 8], 8
jmp 0x689261ea
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.kernelbase.dll_RegQueryValueExW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x689260ab
jmp 0x689261ea
cmp dword [ebp - 0x14], 2
jne 0x68926103
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sym.kernelbase.dll_ExpandEnvironmentStringsW
shl eax, 1
mov dword [ebp - 0xc], eax
jne 0x689260ca
jmp 0x689261ea
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x689260f0
mov dword [ebp - 8], 8
jmp 0x689261ea
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sym.kernelbase.dll_ExpandEnvironmentStringsW
jmp 0x6892612b
mov edx, dword [ebp - 0xc]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x40
je 0x68926155
mov edx, dword [ebp + 0x14]
shr edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sym.kernelbase.dll_lstrcpynW
jmp 0x689261ea
push 0x2c
mov edx, dword [ebp - 4]
push edx
call sub.ntext.dll_wcsrchr
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x68926180
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + eax]
cmp edx, 0x2d
je 0x68926189
mov dword [ebp - 8], 0x3f2
jmp 0x689261ea
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
call sub.ntext.dll__wtoi
add esp, 4
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov word [edx], cx
push 2
push 0
mov eax, dword [ebp - 4]
add eax, 2
push eax
call sub.kernel32.dll_LoadLibraryExW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x689261da
mov ecx, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.68928420
add esp, 0x10
test eax, eax
jne 0x689261e1
mov dword [ebp - 8], 0x3f2
mov edx, dword [ebp - 0x1c]
push edx
call sym.kernelbase.dll_FreeLibrary
mov eax, dword [ebp - 0x10]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov ecx, dword [ebp - 4]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x1c