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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df530
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x522638]
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 [0x5240a4], bl
je 0x427b9e
push ebx
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 0xa1], bl
call fcn.00427cd0
mov edx, dword [0x5209f0]
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 0x4278d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4278d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405fe0
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.00427da0
add esp, 0xc
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], esi
jb 0x42791e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406ca9
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 0x427939
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], esi
jae 0x42794d
lea eax, [ebp - 0x9c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x42796b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x427b49
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.00427f70
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 0x5010b0
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.00427f70
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
sub ebx, eax
sar ebx, 1
push ebx
push eax
push 0x5010b0
mov byte [ebp - 4], 5
call esi
call fcn.00407480
cmp eax, 3
jl 0x4279f8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4279ed
lea eax, [ebp - 0x48]
push eax
mov cl, 1
call fcn.00428140
add esp, 4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x427a04
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.TEMP
call esi
test eax, eax
je 0x427af9
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x427a26
lea eax, [ebp - 0x48]
push eax
push 0x5010b0
call esi
test eax, eax
je 0x427af9
call fcn.00428240
mov dword [0x5240a8], eax
test eax, eax
je 0x427af9
push 0x4fe748
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0040d4d0
add esp, 0xc
mov esi, dword [ebp - 0xa8]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00428340
lea ecx, [ebp - 0x80]
mov byte [ebp - 0xa2], al
mov byte [ebp - 4], 5
call fcn.00409f90
cmp byte [ebp - 0xa2], 0
je 0x427af3
push 0x4e84a0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0040d4d0
push eax
mov byte [ebp - 4], 7
call fcn.00428400
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00409f90
mov ecx, esi
call fcn.00426910
test al, al
je 0x427aec
push str.JFEAT_temp
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040d4d0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00428340
lea ecx, [ebp - 0x80]
call fcn.00409f90
mov byte [ebp - 0xa1], 1
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp edi, 1
jbe 0x427b09
mov ecx, dword [ebp - 0x58]
push ecx
push str.TEMP
call esi
mov edi, dword [ebp - 0x20]
cmp ebx, 1
jbe 0x427b19
push edi
push 0x5010b0
call esi
test edi, edi
je 0x427b26
push edi
call fcn.00406ca9
add esp, 4
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x427b36
push eax
call fcn.00406ca9
add esp, 4
mov edi, dword [ebp - 0xa8]
xor ebx, ebx
lea esi, [ebx + 8]
cmp byte [ebp - 0xa1], bl
jne 0x427b50
mov byte [0x5240a4], 0
cmp dword [ebp - 0x34], esi
jb 0x427b61
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ca9
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 0x427b8f
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00406ca9
add esp, 4
cmp byte [0x5240a4], 0
jne 0x427cac
jmp 0x427ba3
mov esi, 8
call fcn.00407480
cmp eax, 3
jl 0x427bdf
push 1
push str.TempLow
lea edx, [ebp - 0x80]
push 0x1c
push edx
call fcn.00426fc0
add esp, 0x10
push eax
mov ecx, edi
mov dword [ebp - 4], 9
mov dword [ebp - 0xa0], 1
call fcn.00428340
test al, al
je 0x427c30
push ebx
push str.TempAdobeAcrobat11.0
lea eax, [ebp - 0x2c]
push 0x1c
push eax
call fcn.00426fc0
add esp, 0x10
or dword [ebp - 0xa0], 2
push eax
mov ecx, edi
mov dword [ebp - 4], 0xa
call fcn.004288c0
test al, al
je 0x427c30
push 1
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call fcn.00427cd0
or dword [ebp - 0xa0], 4
push eax
mov ecx, edi
mov dword [ebp - 4], 0xb
call fcn.00428340
test byte [ebp - 0xa0], 4
je 0x427c61
and dword [ebp - 0xa0], 0xfffffffb
cmp dword [ebp - 0x50], esi
jb 0x427c51
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406ca9
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 0x427c92
and dword [ebp - 0xa0], 0xfffffffd
cmp dword [ebp - 0x18], esi
jb 0x427c82
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ca9
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 0x427cac
cmp dword [ebp - 0x6c], esi
jb 0x427cac
mov eax, dword [ebp - 0x80]
push eax
call fcn.00406ca9
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