Function at 0x103802c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4a0]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x103f06c]
mov dword [ebp - 0x4a4], esi
push 0x80000002
mov dword [ebp - 0x4a0], ebx
mov dword [ebp - 0x4a8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10383c3
push 0x1008de0
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0x498], 1
call fcn.0102fd0e
test eax, eax
jne 0x10383b7
push 0x1001a54
push esi
call fcn.0102fd0e
test eax, eax
jne 0x10383b7
push edi
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1008dc4
push dword [ebp - 0x4a0]
mov edi, 0x208
mov dword [ebp - 0x49c], edi
call ebx
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 1
jne 0x10383b6
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0102fd0e
test eax, eax
jne 0x10383b6
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1008da8
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], edi
call ebx
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 1
jne 0x10383b6
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0102fd0e
test eax, eax
jne 0x10383b6
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1008d8c
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], edi
call ebx
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 1
jne 0x10383b6
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0102fd0e
test eax, eax
jne 0x10383b6
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1004238
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], edi
call ebx
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 1
je 0x1038215
cmp dword [ebp - 0x498], 2
jne 0x10383b6
lea eax, [ebp - 0x20c]
push eax
push 0x1005844
push 0x103
mov edi, 0x10412d8
push edi
call fcn.01027f64
add esp, 0x10
push edi
add esi, 0x1c
push esi
call fcn.0102fd0e
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 2
lea eax, [ebp - 0x20c]
jne 0x103827b
mov edi, 0x103
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10383b6
lea eax, [ebp - 0x20c]
push eax
push 0x1008d84
push edi
jmp 0x1038286
push eax
push 0x1008d84
push 0x103
push 0x10414e0
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1008d6c
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], 0x208
call ebx
test eax, eax
jne 0x10383b6
cmp dword [ebp - 0x498], 1
jne 0x10383b6
push 0x20
pop eax
cmp ax, word [ebp - 0x20c]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
mov edi, 0x143
lea eax, [ebp - 0x494]
jne 0x10382fd
push 0x1003bc0
jmp 0x1038302
push 0x1005b1c
push edi
push eax
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 0x14
push eax
call fcn.0102fd0e
test eax, eax
jne 0x10383b6
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1008d54
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], 0x208
call ebx
test eax, eax
jne 0x10383ac
cmp dword [ebp - 0x498], 1
jne 0x10383ac
push 0x20
pop eax
cmp ax, word [ebp - 0x20c]
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
lea eax, [ebp - 0x494]
jne 0x1038387
push 0x1003bc0
jmp 0x103838c
push 0x1005b1c
push edi
push eax
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 8
push eax
call fcn.0102fd0e
mov dword [ebp - 0x4a8], 1
pop edi
push dword [ebp - 0x4a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4