Function at 0x42ae60
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
mov eax, 0x275c
call fcn.00421840
mov eax, dword [0x445030]
xor eax, esp
mov dword [esp + 0x2758], eax
mov eax, dword [esp + 0x2760]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x22]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], cx
call fcn.0041c990
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [0x448804]
mov eax, dword [edx + 0xc]
mov ecx, 0x448804
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
jmp 0x42aed0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aed0
push ebx
sub eax, edx
push esi
sar eax, 1
push edi
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004018e0
push 0xb
push str.restart.dat
lea edx, [esp + 0x1c]
push edx
call fcn.00402520
mov edi, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42af49
add edi, 0xfffffff0
lea eax, [edi + 0xc]
or ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42af42
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor al, al
jmp 0x42b18c
xor ecx, ecx
push 0x1f3e
push ecx
lea edx, [esp + 0x82e]
push edx
mov word [esp + 0x830], cx
call fcn.0041c990
add esp, 0xc
push 0
lea eax, [esp + 0x24]
push eax
push 0x1f40
lea ecx, [esp + 0x830]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x448804]
mov eax, dword [edx + 0xc]
mov ecx, 0x448804
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42afb3
sub eax, edx
sar eax, 1
push ebp
lea ecx, [esp + 0x828]
mov ebx, eax
push ecx
lea eax, [esp + 0x14]
call fcn.004018e0
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp dword [esi - 0xc], ebp
jle 0x42b151
jmp 0x42aff0
mov edx, dword [0x448804]
mov eax, dword [edx + 0xc]
mov ecx, 0x448804
call eax
mov edi, eax
mov eax, dword [esi - 0xc]
add edi, 0x10
cmp ebp, eax
mov dword [esp + 0x14], edi
jge 0x42b0a2
test ebp, ebp
jl 0x42b1a6
cmp word [esi + ebp*2], 0x3c
jne 0x42b0a2
inc ebp
cmp ebp, eax
jge 0x42b0a2
test ebp, ebp
jl 0x42b1a6
cmp ebp, eax
jg 0x42b1a6
movzx eax, word [esi + ebp*2]
cmp ax, 0x3e
je 0x42b0a2
mov ebx, dword [edi - 0xc]
movzx ecx, ax
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
lea esi, [ebx + 1]
sub eax, esi
or edx, eax
mov dword [esp + 0x1c], ecx
jge 0x42b06f
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00402160
mov edi, dword [esp + 0x14]
mov cx, word [esp + 0x1c]
mov word [edi + ebx*2], cx
test esi, esi
jl 0x42b1a6
cmp esi, dword [edi - 8]
jg 0x42b1a6
mov eax, dword [esp + 0x10]
mov dword [edi - 0xc], esi
xor edx, edx
mov word [edi + esi*2], dx
mov eax, dword [eax - 0xc]
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x42b028
mov ecx, 0x43bd14
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42b0d6
test dx, dx
je 0x42b0d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42b0d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42b0b0
xor eax, eax
jmp 0x42b0db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42b127
cmp dword [edi - 4], 1
jle 0x42b0f7
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004020a0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
call fcn.0042a010
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0041b493
add esp, 8
test eax, eax
jl 0x42b1a6
cmp eax, dword [edi - 8]
jg 0x42b1a6
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
add edi, 0xfffffff0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42b143
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
inc ebp
cmp ebp, dword [esi - 0xc]
jl 0x42aff0
mov edi, dword [esp + 0x18]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b16d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b189
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x2764]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b3f1
add esp, 0x275c
ret 4
push 0x80070057
call fcn.004021d0
int3