Function at 0x1003bf70
Capabilities:
Query environment variable

Disassembly:
push 0x3b8
mov eax, 0x101ca77d
call fcn.10186d31
mov esi, ecx
mov dword [ebp - 0x3a4], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x398], edi
mov dword [ebp - 0x3a0], esi
mov dword [ebp - 0x3ac], edx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3bc], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x39c], edi
mov dword [ebp - 4], edi
mov ecx, 0x200
mov byte [ebp - 4], 1
mov eax, 0x100
cmp dword [ebx + 0x34], edi
cmove eax, ecx
lea ecx, [ebp - 0x3a4]
or eax, 0x20019
push eax
call fcn.1004a080
pop ecx
push eax
lea ecx, [ebp - 0x39c]
call fcn.10049f80
lea ecx, [ebp - 0x3a4]
call fcn.10049f60
lea eax, [ebp - 0x258]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x39c]
mov byte [ebp - 4], 3
call fcn.1004a4e0
mov ecx, dword [ebp - 0x3a8]
mov byte [ebp - 4], 4
cmp dword [ecx + 0x10], edi
je 0x1003c0bb
mov eax, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x258]
mov dword [ebp - 0x3a4], eax
cmp ebx, eax
je 0x1003c08c
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x1003c05a
mov edx, dword [ebx]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x1003c064
mov eax, dword [ecx]
push edx
push eax
call fcn.101a5ad5
pop ecx
pop ecx
test eax, eax
je 0x1003c082
mov ecx, dword [ebp - 0x3a8]
add ebx, 0x18
cmp ebx, dword [ebp - 0x3a4]
jne 0x1003c050
mov eax, dword [ebp - 0x254]
cmp ebx, eax
jne 0x1003c0b5
push 0x101e88e0
mov ecx, esi
call fcn.10003eb0
lea ecx, [ebp - 0x258]
call fcn.10012722
lea ecx, [ebp - 0x39c]
call fcn.10049f60
mov eax, esi
jmp 0x1003c618
mov ebx, dword [ebp - 0x3c4]
lea ecx, [ebp - 0x258]
call fcn.10012722
mov eax, dword [ebp - 0x3a8]
lea ecx, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x394]
mov dword [ebp - 4], edi
push eax
mov byte [ebp - 4], 7
call fcn.1004a790
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x394]
cmp edx, 1
je 0x1003c153
cmp edx, 2
je 0x1003c153
lea ecx, [ebp - 0x294]
call fcn.10029587
push eax
mov edx, str.Invalid_value_type:
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x30]
call fcn.100279bb
pop ecx
mov ecx, dword [ebp - 0x3b8]
mov edx, eax
push edi
mov byte [ebp - 4], 0xa
call fcn.10027227
pop ecx
lea ecx, [ebp - 0x30]
call fcn.10004e60
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 8
call fcn.10004e60
push 0x101e88e0
mov ecx, esi
call fcn.10003eb0
jmp 0x1003c27f
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x264]
call fcn.10003f20
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x254], 0
je 0x1003c268
cmp dword [ebp - 0x394], 2
jne 0x1003c2a1
push 0x20a
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.10188460
add esp, 0xc
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1003c28f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c4]
call fcn.10029587
mov ebx, eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0xc
push eax
mov edx, str.ExpandEnvironmentStrings_
lea ecx, [ebp - 0x294]
call fcn.100170b9
pop ecx
push 0x101f58d8
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.1000ac00
push eax
lea ecx, [ebp - 0x2ac]
call fcn.10003da0
push ebx
lea edx, [ebp - 0x2ac]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x30]
call fcn.10027921
pop ecx
mov ecx, dword [ebp - 0x3b8]
mov edx, eax
push edi
mov byte [ebp - 4], 0xf
call fcn.10027227
pop ecx
lea ecx, [ebp - 0x30]
call fcn.10004e60
lea ecx, [ebp - 0x2ac]
call fcn.10004e60
lea ecx, [ebp - 0x294]
call fcn.10004e60
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0xb
call fcn.10004e60
push 0x101e88e0
mov ecx, esi
call fcn.10003eb0
lea ecx, [ebp - 0x264]
call fcn.10004e60
lea ecx, [ebp - 0x394]
call fcn.100280d6
jmp 0x1003c0a3
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x264]
call fcn.10003d30
cmp dword [ebx + 0x48], edi
je 0x1003c2ca
push ebx
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x30]
call fcn.1003c683
pop ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.10003d60
lea ecx, [ebp - 0x30]
call fcn.10004e60
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x264]
push dword [ebx + 0x30]
lea ecx, [ebp - 0x30]
call fcn.10003310
pop ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.10003d60
lea ecx, [ebp - 0x30]
call fcn.10004e60
jmp 0x1003c54a
add ebx, 0x18
mov dword [ebp - 4], 0xb
cmp dword [ebx + 0x10], edi
je 0x1003c583
push ebx
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x27c]
call fcn.10003010
pop ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.10003d60
lea ecx, [ebp - 0x27c]
call fcn.10004e60
lea eax, [ebp - 0x264]
mov ecx, esi
push eax
call fcn.10003da0
jmp 0x1003c274
call fcn.10186c7e
ret