Function at 0x41cd92
Capabilities:
Delete file
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xcc
push ebx
push esi
mov dword [ebp + 0x60], ecx
push edi
lea ecx, [ebp + 0x54]
call fcn.0042c3f7
push dword [ebp + 0x6c]
xor ebx, ebx
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
call fcn.004361de
mov eax, dword [ebp + 0x3c]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
and dword [ebp + 0x74], 8
and eax, 0xfffffff7
push 0x481fac
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x44], eax
call fcn.004361de
call fcn.0040c635
movzx cx, al
mov ch, al
push ebx
push dword [ebp + 0x60]
mov dword [ebp + 0x48], eax
mov esi, ecx
movzx edi, si
mov dword [ebp + 0x38], edi
lea ecx, [ebp - 0x68]
mov dword [ebp + 0x30], esi
shl edi, 0x10
call fcn.0041c8c5
push dword [ebp + 0x60]
lea ecx, [ebp - 0x68]
call fcn.0040adf5
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x50]
call fcn.004361de
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x34], ebx
call fcn.00434c96
mov eax, dword [ebp + 0x34]
add esp, 0xc
cmp eax, ebx
je 0x41ce3d
mov word [eax - 2], bx
push dword [ebp + 0x50]
lea ecx, [ebp - 0x68]
push 0x483344
call fcn.0042af5d
push dword [ebp + 0x38]
lea ecx, [ebp - 0x68]
call fcn.0042a69e
mov eax, dword [ebp + 0x54]
push edi
mov word [ebp - 0x60], si
xor word [eax], si
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x40]
lea eax, [ebp + 0x54]
push ebx
push eax
call fcn.0041bf05
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x41ce8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41cf8a
push ebx
lea ecx, [ebp + 0x4c]
call fcn.00436246
mov eax, dword [ebp + 0x54]
push dword [ebp + 0x30]
mov dword [ebp + 0x2c], eax
push eax
call fcn.0040c61c
cmp eax, ebx
pop ecx
pop ecx
jle 0x41cf88
movzx ecx, word [ebp + 0x48]
xor ecx, dword [ebp + 0x38]
add eax, 2
push eax
push ecx
push dword [ebp + 0x54]
call fcn.0040c690
movzx eax, di
and esi, 2
or esi, eax
movzx eax, word [ebp + 0x48]
add esp, 0xc
shl eax, 0x10
mov edi, 0x4975e4
push edi
or esi, eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
push ebx
push 0x483346
call fcn.0040f12a
cmp eax, ebx
je 0x41cf09
push dword [eax]
push 0x483348
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x74], ebx
je 0x41cf1e
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x2c], ebx
jne 0x41cf28
xor esi, esi
inc esi
jmp 0x41cf8a
cmp byte [0x495270], bl
jge 0x41cf37
mov byte [0x495270], 1
push dword [ebp + 0x70]
movzx edi, word [ebp + 0x48]
push dword [ebp + 0x78]
lea eax, [ebp + 0x54]
push eax
push edi
call fcn.0041c333
sub eax, dword [ebp + 0x54]
sar eax, 1
push eax
push dword [ebp + 0x44]
lea eax, [ebp + 0x54]
push dword [ebp + 0x7c]
push eax
push edi
call fcn.0040c6c9
add esp, 0x24
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
or esi, dword [ebp + 0x44]
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x60]
push ebx
push edi
push esi
push dword [ebp + 0x40]
mov dword [ebp + 0x54], ebx
push dword [ebp + 0x70]
push eax
call fcn.0046173e
xor esi, esi
lea ecx, [ebp + 0x50]
call fcn.0042704a
push ebx
lea ecx, [ebp - 0x68]
call fcn.0041c401
lea ecx, [ebp - 0x2c]
call fcn.0042704a
lea ecx, [ebp + 0x4c]
call fcn.0042704a
lea ecx, [ebp + 0x3c]
call fcn.0042704a
lea ecx, [ebp + 0x54]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14