Function at 0x41e6b4
Capabilities:
Delete file
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xc4
push ebx
push esi
mov dword [ebp + 0x60], ecx
push edi
lea ecx, [ebp + 0x54]
call fcn.0042aeb8
push dword [ebp + 0x6c]
xor ebx, ebx
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
call fcn.00434695
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x74]
and dword [ebp + 0x74], 8
and eax, 0xfffffff7
push 0x47bedc
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x3c], eax
call fcn.00434695
call fcn.0040c314
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 - 0x60]
shl edi, 0x10
call fcn.0041e1e7
push dword [ebp + 0x60]
lea ecx, [ebp - 0x60]
call fcn.0040aafe
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x50]
call fcn.00434695
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x40], ebx
call fcn.004334dc
mov eax, dword [ebp + 0x40]
add esp, 0xc
cmp eax, ebx
je 0x41e75c
mov word [eax - 2], bx
push dword [ebp + 0x50]
lea ecx, [ebp - 0x60]
push 0x47d384
call fcn.00429e0f
push dword [ebp + 0x38]
lea ecx, [ebp - 0x60]
call fcn.0042965b
mov eax, dword [ebp + 0x54]
push edi
mov word [ebp - 0x58], si
xor word [eax], si
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x34]
lea eax, [ebp + 0x54]
push ebx
push eax
call fcn.0041b831
add esp, 0x18
and eax, 2
push ebx
lea ecx, [ebp + 0x4c]
or edi, eax
call fcn.004346c9
mov eax, dword [ebp + 0x54]
push esi
push eax
mov dword [ebp + 0x30], eax
call fcn.0040c2fb
cmp eax, ebx
pop ecx
pop ecx
jle 0x41e88f
movzx esi, word [ebp + 0x48]
add eax, 2
push eax
mov eax, esi
xor eax, dword [ebp + 0x38]
push eax
push dword [ebp + 0x54]
call fcn.0040c36f
movzx eax, di
add esp, 0xc
mov edi, 0x49062c
shl esi, 0x10
push edi
or esi, eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
push ebx
push 0x47d386
call fcn.0040f7cf
cmp eax, ebx
je 0x41e810
push dword [eax]
push 0x47d388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x74], ebx
je 0x41e825
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x30], ebx
jne 0x41e82f
xor esi, esi
inc esi
jmp 0x41e891
cmp byte [0x48e2a0], bl
jge 0x41e83e
mov byte [0x48e2a0], 1
push dword [ebp + 0x70]
movzx edi, word [ebp + 0x48]
push dword [ebp + 0x78]
lea eax, [ebp + 0x54]
push eax
push edi
call fcn.0041bc53
sub eax, dword [ebp + 0x54]
sar eax, 1
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x54]
push dword [ebp + 0x7c]
push eax
push edi
call fcn.0040c3a8
add esp, 0x24
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
or esi, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x60]
push ebx
push edi
push esi
push dword [ebp + 0x34]
mov dword [ebp + 0x54], ebx
push dword [ebp + 0x70]
push eax
call fcn.0045b505
xor esi, esi
lea ecx, [ebp + 0x50]
call fcn.0042602e
push ebx
lea ecx, [ebp - 0x60]
call fcn.0041c5fe
lea ecx, [ebp - 0x28]
call fcn.0042602e
lea ecx, [ebp + 0x4c]
call fcn.0042602e
lea ecx, [ebp + 0x44]
call fcn.0042602e
lea ecx, [ebp + 0x54]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14