Function at 0x1000f6e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001eec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
mov edi, 0x10027878
or ecx, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 0x14], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebp + ecx - 0x13d]
cmp byte [esi], 0x5c
je 0x1000f76a
lea ecx, [ebp - 0x13c]
cmp esi, ecx
jb 0x1000f76a
dec esi
jmp 0x1000f758
lea edx, [ebp - 0x13c]
mov byte [esi], bl
cmp esi, edx
jbe 0x1000fa5b
lea edx, [esi - 1]
cmp byte [edx], 0x5c
je 0x1000f78f
lea eax, [ebp - 0x13c]
cmp edx, eax
jb 0x1000f78f
dec edx
jmp 0x1000f77d
push edi
mov edi, 0xda114983
mov edi, 0x6a96c474
add edi, esi
sbb edi, esp
pop edi
lea ecx, [ebp - 0x13c]
cmp edx, ecx
jbe 0x1000fa5b
inc edx
sub esi, edx
cmp esi, 1
jl 0x1000fa5b
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x240]
push esi
rep stosd dword es:[edi], eax
push edx
mov ecx, 0x41
mov edi, 0x10027ad8
lea edx, [ebp - 0x240]
rep stosd dword es:[edi], eax
push edx
call fcn.10011da0
lea edi, [ebp - 0x240]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
push 0x104
push 0x10027ad8
lea eax, [ebp - 0x240]
push 0xffffffffffffffff
not ecx
push eax
dec ecx
push ebx
push ebx
mov dword [0x10027d08], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x10027d08]
lea eax, [ecx + ecx]
cmp eax, ebx
mov dword [0x10027d08], eax
jne 0x1000f83d
call fcn.100115c0
cmp eax, 0xffffffff
jge 0x1000f83a
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 4], ebx
push ebx
push 0x2000010
push 3
push ebx
push 1
lea edx, [ebp - 0x13c]
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
push eax
sbb eax, edx
add eax, edx
sbb eax, edx
sbb eax, edx
add eax, edx
or eax, ebx
pop eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000fa5b
mov byte [ebp - 4], 3
call fcn.100115c0
cmp eax, 0xffffffff
jge 0x1000f8b1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.1000af80
jmp 0x1000f8b1
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
push ecx
call esi
call fcn.100115c0
cmp eax, 0xffffffff
jge 0x1000f8eb
call fcn.100115c0
cmp eax, 0xffffffff
jge 0x1000f8eb
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
add esi, edx
sbb esi, esi
sbb esi, edx
add esi, esi
nop
pop esi
lea edx, [ebp - 0x14]
push edx
call fcn.10005ba0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
xor eax, eax
xor edi, edi
or eax, edx
or ecx, edi
add esp, 4
mov dword [0x10027ab8], eax
mov dword [0x10027abc], ecx
push eax
xor eax, edx
add eax, eax
mov eax, 0x6891bce9
and eax, ebp
pop eax
cmp dword [0x10027d0c], ebx
jne 0x1000fa5b
mov edi, 0x100270ec
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea ecx, [ecx + 0x100270ea]
mov eax, ecx
cmp byte [eax], 0x5c
je 0x1000f94e
cmp eax, 0x100270ec
jb 0x1000f94e
dec eax
jmp 0x1000f93f
inc eax
cmp eax, 0x100270ec
jbe 0x1000fa5b
sub ecx, eax
inc ecx
cmp ecx, ebx
mov dword [0x10027d0c], ecx
jle 0x1000fa5b
cmp ecx, 0x14
jg 0x1000fa5b
xor edx, edx
push ecx
mov dword [ebp - 0x38], edx
push eax
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], edx
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [0x10027ce0], edx
mov dword [0x10027ce4], edx
mov dword [0x10027ce8], edx
mov dword [0x10027cec], edx
mov dword [0x10027cf0], edx
call fcn.10011da0
add esp, 0xc
lea ecx, [ebp - 0x38]
push 0x14
push 0x10027ce0
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [0x10027d0c]
lea eax, [edx + edx]
mov dword [0x10027d0c], eax
push ebp
mov ebp, 0xe18933de
sub ebp, ebx
or ebp, ebp
pop ebp
push ebx
push 0x20
push 3
push ebx
push 1
push SysReAllocStringLen
push 0x100270ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1000fa5b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x24]
push ebx
push ecx
push edx
call esi
call fcn.100115c0
cmp eax, 0xffffffff
jge 0x1000fa35
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push eax
mov eax, 0xe7e0db58
sub eax, ebx
nop
pop eax
lea eax, [ebp - 0x14]
push eax
call fcn.10005ba0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
xor ecx, ecx
xor esi, esi
add esp, 4
or ecx, eax
or edx, esi
mov dword [0x10027ac0], ecx
mov dword [0x10027ac4], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret