Function at 0x101bcb2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xad0
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
xor ebx, ebx
push edi
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push ebx
push eax
mov dword [ebp - 0x9ac], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x1005130
push esi
lea ecx, [ebp - 0x780]
call fcn.0101bc14
push esi
lea ecx, [ebp - 0x9a8]
call fcn.0101bc14
lea ecx, [ebp - 0x894]
call fcn.0101b72f
push 0x104
lea eax, [ebp - 0x464]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x1005018
test eax, eax
je 0x101c041
xor eax, eax
push edi
mov word [ebp - 0x66c], ax
lea eax, [ebp - 0x66a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x4e
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x9b0], ebx
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x9b0]
push eax
lea eax, [ebp - 0x66c]
push eax
push 0x104
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x101bf66
xor eax, eax
push edi
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x9b0]
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x894]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
mov ebx, 0x1005124
push ebx
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x894]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
mov edi, dword [sym.imp.msvcrt.dll__itow]
push 0xa
lea eax, [ebp - 0x54]
push eax
push 0x80
call edi
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x894]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101bf64
cmp eax, 0x104
jae 0x101bf64
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x780]
call fcn.0101bbef
push ebx
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x780]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
push 0xa
lea eax, [ebp - 0x54]
push eax
push 0x6211
call edi
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x780]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x9a8]
call fcn.0101bbef
push ebx
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x9a8]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
push 0xa
lea eax, [ebp - 0x54]
push eax
push 0x6212
call edi
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xad0]
call fcn.0101bc14
push eax
lea ecx, [ebp - 0x9a8]
call fcn.0101bc61
lea ecx, [ebp - 0xad0]
mov dword [ebp - 0xad0], esi
call fcn.0101b7f6
xor ebx, ebx
cmp dword [ebp - 0x67c], ebx
je 0x101c041
cmp dword [ebp - 0x8a4], ebx
je 0x101c041
cmp dword [ebp - 0x790], ebx
je 0x101c041
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push 0x1005058
push 0x80000002
lea ecx, [ebp - 0x9bc]
mov dword [ebp - 0x9bc], ebx
mov dword [ebp - 0x9b8], ebx
mov dword [ebp - 0x9b4], ebx
call fcn.0101b66a
test eax, eax
jne 0x101c034
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x464]
push eax
push 0x1005044
lea ecx, [ebp - 0x9bc]
call fcn.0101b6fc
test eax, eax
jne 0x101c034
push edi
push dword [ebp - 0x8a4]
lea ecx, [ebp - 0x9bc]
push 0x1005038
call fcn.0101b6fc
test eax, eax
jne 0x101c034
push edi
push dword [ebp - 0x790]
lea ecx, [ebp - 0x9bc]
push 0x100502c
call fcn.0101b6fc
test eax, eax
jne 0x101c034
push edi
push dword [ebp - 0x67c]
lea ecx, [ebp - 0x9bc]
push 0x1005020
call fcn.0101b6fc
test eax, eax
jne 0x101c034
mov dword [ebp - 0x9ac], ebx
lea ecx, [ebp - 0x9bc]
call fcn.0101b64c
jmp 0x101c05b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101c055
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x9ac], eax
lea ecx, [ebp - 0x894]
mov dword [ebp - 0x894], esi
call fcn.0101b7f6
lea ecx, [ebp - 0x9a8]
mov dword [ebp - 0x9a8], esi
call fcn.0101b7f6
lea ecx, [ebp - 0x780]
mov dword [ebp - 0x780], esi
call fcn.0101b7f6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x9ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret