Function at 0x100698e8
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0x730
mov eax, 0x100f3dba
call fcn.100cca34
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x718], eax
mov eax, 0x82bb
mov dword [ebp - 0x6f8], 0x82c0
mov word [ebp - 0x6f4], ax
add eax, 0x36
mov word [ebp - 0x6f2], ax
mov eax, 0x82f2
mov word [ebp - 0x6f0], ax
add eax, 0xffffff8f
mov word [ebp - 0x6ee], ax
mov eax, 0x8282
mov word [ebp - 0x6ec], ax
mov edi, dword [ebp + 8]
push 0x208
lea ecx, [eax + 0x72]
add eax, 3
mov word [ebp - 0x6ea], cx
lea esi, [ecx + 2]
mov word [ebp - 0x6e8], ax
lea ebx, [ecx - 7]
mov word [ebp - 0x6e6], si
lea eax, [ecx - 0x71]
mov word [ebp - 0x6e4], ax
lea edx, [ecx + 4]
mov word [ebp - 0x6e2], bx
add eax, 0x70
mov word [ebp - 0x6e0], ax
lea eax, [ecx + 5]
mov word [ebp - 0x6de], ax
add eax, 0xfffffff7
mov word [ebp - 0x6dc], ax
lea eax, [ecx + 3]
mov word [ebp - 0x6da], ax
add eax, 0xfffffffe
mov word [ebp - 0x6d8], bx
mov word [ebp - 0x6d6], cx
mov word [ebp - 0x6d4], ax
mov word [ebp - 0x6d2], dx
mov word [ebp - 0x6d0], ax
lea eax, [ecx - 0x72]
mov word [ebp - 0x6ce], bx
add ecx, 0xffffff90
mov word [ebp - 0x6cc], ax
mov word [ebp - 0x6ca], si
inc esi
mov word [ebp - 0x6c8], cx
mov word [ebp - 0x6c6], ax
add eax, 4
mov word [ebp - 0x6c4], bx
mov word [ebp - 0x6c2], dx
mov word [ebp - 0x6c0], cx
mov word [ebp - 0x6be], cx
mov word [ebp - 0x6bc], si
mov word [ebp - 0x6ba], ax
mov word [ebp - 0x6b8], si
lea esi, [ebx + 6]
mov word [ebp - 0x6b6], si
mov word [ebp - 0x6b4], dx
add edx, 0xfffffff9
mov word [ebp - 0x6b2], dx
mov word [ebp - 0x6b0], cx
lea ecx, [ebp - 0x6f8]
mov word [ebp - 0x6ae], ax
lea eax, [ebx - 0x6b]
mov word [ebp - 0x6ac], ax
add eax, 0x3b
mov word [ebp - 0x6aa], ax
xor eax, eax
mov word [ebp - 0x6a8], ax
mov ax, word [ebp - 0x6f4]
mov esi, dword [edi]
lea eax, [ebp - 0x420]
push eax
call fcn.1000b6ff
push eax
push edi
call dword [esi + 0x60]
test eax, eax
jns 0x10069a9d
push 0x61
pop eax
jmp 0x10069eaa
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x700], ecx
mov dword [ebp - 0x6fc], ecx
mov dword [ebp - 0x700], ecx
mov dword [ebp - 0x6fc], 7
mov word [ebp - 0x710], ax
mov dword [ebp - 4], ecx
mov ecx, 0xc452
mov dword [ebp - 0x6a4], 0xc401
mov word [ebp - 0x6a0], cx
lea eax, [ecx + 6]
mov word [ebp - 0x69e], ax
lea edx, [ecx - 0x10]
mov word [ebp - 0x69c], cx
lea edi, [ecx + 0x21]
add eax, 0xfffffffd
lea ebx, [ecx + 0x12]
mov word [ebp - 0x69a], ax
lea esi, [edx + 0x33]
lea eax, [ecx - 0xe]
mov word [ebp - 0x698], ax
add eax, 8
mov word [ebp - 0x696], ax
lea eax, [ecx + 0xb]
mov word [ebp - 0x694], ax
add ecx, 0x1d
mov word [ebp - 0x692], dx
add eax, 0x17
mov word [ebp - 0x690], ax
lea eax, [edx + 0x2c]
mov word [ebp - 0x68e], di
mov word [ebp - 0x68c], di
mov word [ebp - 0x68a], bx
mov word [ebp - 0x688], cx
mov word [ebp - 0x686], si
mov word [ebp - 0x684], dx
add edx, 0x2b
mov word [ebp - 0x682], ax
mov word [ebp - 0x680], cx
lea ecx, [edi - 1]
mov word [ebp - 0x67e], si
mov word [ebp - 0x67c], di
mov word [ebp - 0x67a], ax
add eax, 0xffffffe4
mov word [ebp - 0x678], dx
mov word [ebp - 0x676], ax
mov word [ebp - 0x674], bx
mov word [ebp - 0x672], si
add esi, 0xffffffe8
mov word [ebp - 0x670], si
mov word [ebp - 0x66e], ax
lea eax, [edi + 4]
mov word [ebp - 0x66c], bx
mov word [ebp - 0x66a], di
mov word [ebp - 0x668], ax
add eax, 0xfffffff1
mov word [ebp - 0x666], ax
lea eax, [edi - 0x11]
mov word [ebp - 0x664], ax
add eax, 0xffffffc2
mov word [ebp - 0x662], bx
mov word [ebp - 0x660], cx
mov word [ebp - 0x65e], si
mov word [ebp - 0x65c], ax
xor eax, eax
mov word [ebp - 0x65a], dx
mov word [ebp - 0x658], cx
lea ecx, [ebp - 0x6a4]
mov word [ebp - 0x656], ax
mov ax, word [ebp - 0x6a0]
lea eax, [ebp - 0x420]
push eax
call fcn.1000b86f
push eax
lea eax, [ebp - 0x710]
push eax
call fcn.10004b9e
add esp, 0xc
lea edx, [ebp - 0x710]
mov eax, dword [ebp - 0x718]
push 8
pop edi
cmp dword [ebp - 0x6fc], edi
mov ecx, dword [eax]
cmovae edx, dword [ebp - 0x710]
push edx
push connect
push eax
call dword [ecx + 0x1fc]
mov dword [ebp - 0x71c], eax
test eax, eax
jne 0x10069c84
push 0x62
pop esi
jmp 0x10069e98
lea eax, [ebp - 0x718]
xor ebx, ebx
mov dword [ebp - 0x724], eax
lea eax, [ebp - 0x71c]
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x73c]
push ebx
push eax
call fcn.1006787b
add esp, 0xc
mov byte [ebp - 4], 1
push 0x4e
pop eax
mov word [ebp - 0x654], ax
push 0x72
pop eax
mov word [ebp - 0x652], ax
push 0x66
pop ecx
push 0x6c
pop eax
mov word [ebp - 0x650], cx
mov word [ebp - 0x64e], ax
push 0x6a
pop eax
mov word [ebp - 0x64c], ax
push 0x55
pop eax
mov word [ebp - 0x64a], ax
push 0x79
pop eax
mov word [ebp - 0x648], cx
lea ecx, [ebp - 0x654]
mov word [ebp - 0x646], ax
push 0x6d
pop eax
mov word [ebp - 0x644], ax
xor eax, eax
mov word [ebp - 0x642], ax
mov ax, word [ebp - 0x654]
mov eax, dword [ebp - 0x718]
push 0x208
mov esi, dword [eax]
lea eax, [ebp - 0x628]
push eax
call fcn.10039d08
push eax
push dword [ebp - 0x71c]
push dword [ebp - 0x718]
call dword [esi + 0x24c]
test eax, eax
jns 0x10069d5d
push 0x63
jmp 0x10069e7b
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10069e79
cmp eax, esi
jae 0x10069e79
xor eax, eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
call fcn.100ddd9c
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.1000b38e
cmp dword [ebp - 0x62c], edi
lea eax, [ebp - 0x640]
mov ecx, dword [ebp - 0x630]
lea edx, [ebp - 0x711]
cmovae eax, dword [ebp - 0x640]
push edx
mov byte [ebp - 0x711], 0x22
lea esi, [eax + ecx*2]
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x72c]
push ecx
push eax
call fcn.1006799e
add esp, 0x10
lea ecx, [ebp - 0x640]
push esi
push dword [eax]
lea eax, [ebp - 0x730]
push eax
call fcn.10039fee
cmp dword [ebp - 0x62c], edi
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10069e65
cmp eax, 0x10
je 0x10069e65
push 0x45
jmp 0x10069e67
push 0x65
pop esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x640]
call fcn.1000b2cc
jmp 0x10069e7f
push 0x64
pop eax
movzx esi, ax
mov byte [ebp - 4], bl
cmp byte [ebp - 0x73c], 0
jne 0x10069e98
lea eax, [ebp - 0x738]
push eax
call fcn.10067a07
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x710]
call fcn.1000b2cc
mov ax, si
call fcn.100cc9de
ret