Function at 0x100f1b6f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x100f1b97
cmp word [edi], bx
jne 0x100f1ba9
push 0x10032d68
push 0x33
pop edx
mov ecx, 0x10032d8c
call fcn.100e970f
push 0x40
pop eax
push eax
pop edx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.100a70d5
mov esi, eax
test esi, esi
jns 0x100f1be5
push 0x100313cc
push 1
push esi
push 0x4000000
call fcn.100ab973
mov ebx, dword [ebp - 0xc]
add esp, 0x10
jmp 0x100f1e3b
mov ebx, dword [ebp - 0xc]
push 0x40
push ebx
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x100f1c36
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f1c12
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100f1c19
mov esi, 0x80004005
push dword [ebp - 0x1c]
push 0x100313f8
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100f1e3b
cmp edi, 0x40
jbe 0x100f1c97
mov eax, edi
mov dword [ebp - 0x18], edi
mov edx, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
call fcn.100a70d5
mov esi, eax
test esi, esi
jns 0x100f1c5d
push 0x10031430
jmp 0x100f1bcd
mov ebx, dword [ebp - 0xc]
push edi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x100f1bfb
cmp dword [ebp - 8], edi
jae 0x100f1c97
push 0x10031464
mov eax, 0x8007007a
push 1
mov esi, eax
push eax
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f1e3b
cmp edi, 0x104
jbe 0x100f1ce4
lea ecx, [ebp - 0xc]
call fcn.100b28e1
lea esi, [eax + 0x7ff8ffa9]
neg esi
sbb esi, esi
and esi, eax
jge 0x100f1cbf
push 0x10032db0
jmp 0x100f1bcd
mov ebx, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.100b2a83
mov esi, eax
test esi, esi
jns 0x100f1cdc
push 0x10032df4
push 1
push esi
jmp 0x100f1c85
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x100f1ce7
mov eax, dword [ebp - 0x18]
and dword [ebp - 8], 0
test ebx, ebx
je 0x100f1cf4
mov dword [ebp - 0xc], ebx
jmp 0x100f1cfa
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
cmp eax, 0x40
ja 0x100f1d05
push 0x40
pop eax
mov dword [ebp - 0x18], eax
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.100a70d5
mov esi, eax
test esi, esi
jns 0x100f1d2f
push 0x10031494
push 1
push esi
push 0x4000000
call fcn.100ab973
mov edi, dword [ebp - 0x10]
jmp 0x100f1e2a
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
test eax, eax
jne 0x100f1d82
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f1d5e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100f1d65
mov esi, 0x80004005
push dword [ebp - 0xc]
push 0x100314bc
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100f1e2d
cmp dword [ebp - 0x18], eax
jae 0x100f1ddc
cmp eax, 0x104
jb 0x100f1d91
add eax, 7
mov edx, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.100a70d5
mov esi, eax
test esi, esi
jns 0x100f1dae
push 0x100314e4
jmp 0x100f1d1a
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
test eax, eax
je 0x100f1d47
cmp dword [ebp - 0x14], eax
jae 0x100f1ddc
push 0x10031514
mov eax, 0x8007007a
push 1
mov esi, eax
push eax
jmp 0x100f1e20
cmp eax, 0x104
jbe 0x100f1dfe
lea ecx, [ebp - 0x10]
call fcn.100b28e1
mov esi, eax
test esi, esi
jns 0x100f1dfb
push 0x10032e20
jmp 0x100f1d1a
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x100f1e09
mov dword [eax], edi
jmp 0x100f1e3b
push dword [ebp - 0x1c]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f1e3b
push 0x10032e4c
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
test edi, edi
je 0x100f1e3b
lea eax, [edi - 4]
push eax
call fcn.100b84f9
pop ecx
test ebx, ebx
je 0x100f1e49
lea eax, [ebx - 4]
push eax
call fcn.100b84f9
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 4