Function at 0x7021ee50
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x70313d0c
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b0]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8b8]
mov word [esp + 0x48], cx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
call fcn.7020f220
push 0x400
lea eax, [esp + 0x9a]
xor edx, edx
push ebx
mov dword [esp + 0x8b0], ebx
push eax
lea ebp, [ebx + 1]
mov dword [esp + 0x24], ebx
mov word [esp + 0xa0], dx
call fcn.702e95e0
push 0x400
lea edx, [esp + 0x4aa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4b0], cx
call fcn.702e95e0
add esp, 0x18
lea ecx, [ecx]
cmp dword [esp + 0x58], 8
mov esi, dword [esp + 0x44]
jb 0x7021f006
mov edi, esi
cmp esi, ebx
je 0x7021f0c3
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x7021ef30
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x7021f0c3
cmp eax, 4
jl 0x7021f0c3
lea eax, [edi + eax*2 - 8]
push str..lnk
push eax
call fcn.702e2ee1
add esp, 8
test eax, eax
jne 0x7021f0bf
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x7021ef7a
lea eax, [esp + 0x44]
lea ecx, [esp + 0x498]
push ecx
lea edx, [esp + 0x98]
push edx
push eax
call fcn.70214700
add esp, 0xc
test eax, eax
jne 0x7021f38d
cmp word [esp + 0x94], bx
je 0x7021f38d
lea eax, [esp + 0x94]
push 0x70328498
push eax
call fcn.702e3fa7
add esp, 8
test eax, eax
je 0x7021f00f
push 0x200
lea ecx, [esp + 0x49c]
push ecx
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
lea eax, [esp + 0x94]
je 0x7021efef
lea eax, [esp + 0x498]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x7021eff4
sub ecx, esi
sar ecx, 1
push ecx
jmp 0x7021f037
lea edi, [esp + 0x44]
jmp 0x7021ef29
lea eax, [esp + 0x94]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x7021f020
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x98]
lea esi, [esp + 0x44]
call fcn.7020f4d0
mov eax, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x7021f053
lea eax, [esp + 0x44]
push 0x7032849c
push eax
call fcn.702e3fa7
add esp, 8
test eax, eax
je 0x7021f0b5
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x7021f073
lea eax, [esp + 0x44]
push 0x200
lea ecx, [esp + 0x98]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x7021f0b5
lea eax, [esp + 0x94]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x7021f095
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x98]
lea esi, [esp + 0x44]
call fcn.7020f4d0
mov ebp, 1
jmp 0x7021f31f
mov esi, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x7021f0d4
lea esi, [esp + 0x44]
jmp 0x7021f0dc
cmp esi, ebx
je 0x7021f401
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x7021f0e1
sub eax, edx
sar eax, 1
cmp eax, 1
jl 0x7021f401
cmp eax, 4
jl 0x7021f401
lea edx, [esi + eax*2 - 8]
push 0x703284a0
push edx
call fcn.702e2ee1
add esp, 8
test eax, eax
jne 0x7021f401
mov eax, dword [esp + 0x44]
xor ebp, ebp
cmp dword [esp + 0x58], edi
jae 0x7021f12c
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x60]
call fcn.70214800
add esp, 4
mov byte [esp + 0x8a8], 1
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x7021f3ec
add eax, eax
mov dword [esp + 0x20], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push 0x70358018
neg ecx
or ecx, eax
mov esi, ecx
push esi
call fcn.702e36d5
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x7021f1d4
push esi
push ebx
push edi
call fcn.702e95e0
mov eax, dword [esp + 0x6c]
add esp, 0xc
cmp dword [esp + 0x74], 8
jae 0x7021f194
lea eax, [esp + 0x60]
push ebx
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
test eax, eax
jne 0x7021f1cb
mov eax, edi
lea edx, [eax + 2]
jmp 0x7021f1b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x7021f1b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x60]
call fcn.7020f4d0
push edi
call fcn.702e1ea6
add esp, 4
mov eax, dword [esp + 0x60]
mov edi, 8
cmp dword [esp + 0x74], edi
jae 0x7021f1e7
lea eax, [esp + 0x60]
push 5
push 0x70328408
push eax
call fcn.702e5fbe
add esp, 0xc
test eax, eax
jne 0x7021f2a5
push 0xffffffffffffffff
xor edx, edx
push ebx
lea eax, [esp + 0x64]
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], dx
call fcn.7020f220
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x8ac], 2
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], 0x2f
call fcn.7021f790
cmp eax, 0xffffffff
je 0x7021f28d
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
lea esi, [esp + 0x28]
call fcn.7021f650
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x8b0], 3
call fcn.7020f220
cmp dword [esp + 0x3c], edi
jb 0x7021f288
mov edx, dword [esp + 0x28]
push edx
call fcn.702e1c24
add esp, 4
mov ebp, 1
cmp dword [esp + 0x90], edi
jb 0x7021f305
mov eax, dword [esp + 0x7c]
push eax
call fcn.702e1c24
add esp, 4
jmp 0x7021f305
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x7021f2b3
lea eax, [esp + 0x60]
push 7
push str.http:__
push eax
call fcn.702e5fbe
add esp, 0xc
test eax, eax
je 0x7021f373
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x7021f2d9
lea eax, [esp + 0x60]
push edi
push str.https:__
push eax
call fcn.702e5fbe
add esp, 0xc
test eax, eax
je 0x7021f373
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x64]
lea ecx, [esp + 0x48]
call fcn.7020f220
mov ebp, 1
mov byte [esp + 0x8a8], bl
cmp dword [esp + 0x74], edi
jb 0x7021f31f
mov ecx, dword [esp + 0x60]
push ecx
call fcn.702e1c24
add esp, 4
mov esi, dword [esp + 0x18]
push 0x400
lea eax, [esp + 0x9a]
xor edx, edx
push ebx
inc esi
push eax
mov dword [esp + 0x24], esi
mov word [esp + 0xa0], dx
call fcn.702e95e0
push 0x400
lea edx, [esp + 0x4aa]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4b0], cx
call fcn.702e95e0
add esp, 0x18
cmp esi, 0xc8
jbe 0x7021ef10
jmp 0x7021f38d
mov byte [esp + 0x8a8], bl
cmp dword [esp + 0x74], edi
jb 0x7021f38d
mov eax, dword [esp + 0x60]
push eax
call fcn.702e1c24
add esp, 4
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov eax, 0x70326328
mov word [esi + 4], cx
call fcn.7020f4d0
cmp dword [esp + 0x58], 8
jb 0x7021f3c0
mov edx, dword [esp + 0x44]
push edx
call fcn.702e1c24
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.702e1c2f
add esp, 0x898
ret 8
mov byte [esp + 0x8a8], bl
cmp dword [esp + 0x74], 8
jb 0x7021f38d
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x7021f385
cmp ebp, ebx
je 0x7021f38d
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
lea eax, [esp + 0x48]
mov ecx, esi
mov word [esi + 4], dx
call fcn.7020f220
cmp dword [esp + 0x58], edi
jb 0x7021f3c0
mov eax, dword [esp + 0x44]
push eax
jmp 0x7021f3b8