Function at 0x420e00
Capabilities:
Create directory
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0c80
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa8], edi
cmp byte [0x526124], bl
je 0x42114e
push ebx
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 0xa1], bl
call fcn.00421280
mov edx, dword [0x5229f0]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea esi, [eax + 2]
jmp 0x420e80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420e80
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406040
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 1
call fcn.00421350
add esp, 0xc
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x420ece
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jae 0x420ee9
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], esi
jae 0x420efd
lea eax, [ebp - 0x9c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x420f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4210f9
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push str.TEMP
call esi
inc eax
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00421520
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
sub edi, eax
sar edi, 1
push edi
push eax
push str.TEMP
mov byte [ebp - 4], 4
call esi
push ebx
push ebx
push 0x502130
call esi
inc eax
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00421520
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
sub ebx, eax
sar ebx, 1
push ebx
push eax
push 0x502130
mov byte [ebp - 4], 5
call esi
call fcn.004074e0
cmp eax, 3
jl 0x420fa8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x420f9d
lea eax, [ebp - 0x48]
push eax
mov cl, 1
call fcn.004216f0
add esp, 4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x420fb4
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.TEMP
call esi
test eax, eax
je 0x4210a9
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x420fd6
lea eax, [ebp - 0x48]
push eax
push 0x502130
call esi
test eax, eax
je 0x4210a9
call fcn.00421840
mov dword [0x526128], eax
test eax, eax
je 0x4210a9
push 0x4ff688
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0040d1b0
add esp, 0xc
mov esi, dword [ebp - 0xa8]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00421950
lea ecx, [ebp - 0x80]
mov byte [ebp - 0xa2], al
mov byte [ebp - 4], 5
call fcn.00409ff0
cmp byte [ebp - 0xa2], 0
je 0x4210a3
push 0x4e9370
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0040d1b0
push eax
mov byte [ebp - 4], 7
call fcn.00421a10
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00409ff0
mov ecx, esi
call fcn.0041fec0
test al, al
je 0x42109c
push str.JFEAT_temp
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040d1b0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00421950
lea ecx, [ebp - 0x80]
call fcn.00409ff0
mov byte [ebp - 0xa1], 1
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp edi, 1
jbe 0x4210b9
mov ecx, dword [ebp - 0x58]
push ecx
push str.TEMP
call esi
mov edi, dword [ebp - 0x20]
cmp ebx, 1
jbe 0x4210c9
push edi
push 0x502130
call esi
test edi, edi
je 0x4210d6
push edi
call fcn.00406d09
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4210e6
push eax
call fcn.00406d09
add esp, 4
mov edi, dword [ebp - 0xa8]
xor ebx, ebx
lea esi, [ebx + 8]
cmp byte [ebp - 0xa1], bl
jne 0x421100
mov byte [0x526124], 0
cmp dword [ebp - 0x34], esi
jb 0x421111
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x88], esi
jb 0x42113f
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00406d09
add esp, 4
cmp byte [0x526124], 0
jne 0x42125c
jmp 0x421153
mov esi, 8
call fcn.004074e0
cmp eax, 3
jl 0x42118f
push 1
push str.TempLow
lea edx, [ebp - 0x80]
push 0x1c
push edx
call fcn.00420570
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 9
mov dword [ebp - 0xa0], 1
call fcn.00421950
test al, al
je 0x4211e0
push ebx
push str.TempAdobeAcrobat11.0
lea eax, [ebp - 0x2c]
push 0x1c
push eax
call fcn.00420570
add esp, 0x10
or dword [ebp - 0xa0], 2
push eax
mov ecx, edi
mov dword [ebp - 4], 0xa
call fcn.00421f40
test al, al
je 0x4211e0
push 1
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call fcn.00421280
or dword [ebp - 0xa0], 4
push eax
mov ecx, edi
mov dword [ebp - 4], 0xb
call fcn.00421950
test byte [ebp - 0xa0], 4
je 0x421211
and dword [ebp - 0xa0], 0xfffffffb
cmp dword [ebp - 0x50], esi
jb 0x421201
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406d09
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
test byte [ebp - 0xa0], 2
je 0x421242
and dword [ebp - 0xa0], 0xfffffffd
cmp dword [ebp - 0x18], esi
jb 0x421232
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
test byte [ebp - 0xa0], 1
je 0x42125c
cmp dword [ebp - 0x6c], esi
jb 0x42125c
mov eax, dword [ebp - 0x80]
push eax
call fcn.00406d09
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret