Function at 0x40f870
Capabilities:
Check if file exists
Create thread
Delete file
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7dc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ecx, 0x524e73
mov dword [ebp - 4], 0
call fcn.004e6414
push 0x104
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004bc490
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
push 4
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x6c], 0
call fcn.004b8e60
add esp, 4
mov dword [eax], 0
push 0
push 0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x178]
push eax
push 0x40f7d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x40fc31
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
push dword [ebp + 8]
mov byte [ebp + 0xf], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x40f9d1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x511184
call fcn.00408580
push ecx
mov byte [ebp - 4], 3
mov edi, esp
mov dword [ebp - 0x1c], edi
mov ebx, 0x82
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00408b90
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00405d30
add esp, 8
test al, al
jne 0x40f9cb
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push 0xc
push eax
call fcn.0040eec0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x40fbb2
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f9bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc3b
push ecx
push edx
call fcn.004b8e2a
add esp, 8
jmp 0x40fbb2
mov edi, dword [ebp - 0x14]
or ebx, 0xffffffff
cmp dword [0x523c54], 0
jne 0x40fa07
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f9fd
lea ecx, [ebp - 0x5c]
push ecx
call eax
jmp 0x40fa07
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x20]
push str.7za.exe
add edx, 4
mov dword [ebp - 0x1c], 1
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 4
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x40fa7c
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x40fa6d
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40fa6d
call fcn.00408b90
mov dword [ebp - 0x10], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40fa65
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x40fa7c
push dword [ecx + 4]
lea ecx, [ebp - 0x18]
push edx
call fcn.00408c90
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x511184
call fcn.00408580
push ecx
mov byte [ebp - 4], 5
lea ecx, [esi - 0x10]
mov edi, esp
mov ebx, 0x86
mov dword [ebp - 0x10], edi
call fcn.00408b90
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.00405d30
add esp, 8
test al, al
jne 0x40fb2e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fb2e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push 0x11
push eax
call fcn.0040eec0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x40fb25
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fb1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc3b
push ecx
push edx
call fcn.004b8e2a
add esp, 8
mov byte [ebp + 0xf], 0
jmp 0x40fbe9
xor ebx, ebx
push 0x50face
lea ecx, [ebp - 0x10]
call fcn.00408410
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
mov edi, dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, esp
add edi, 4
push str._t7z
call fcn.00408410
lea eax, [ebp - 0x10]
push eax
push edi
lea edx, [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00407090
mov byte [ebp - 4], 2
add esp, 0x10
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fb8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fbae
cmp eax, 0x103
je 0x40fbb2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 2
jl 0x40fb30
jmp 0x40fbb2
mov byte [ebp + 0xf], 1
mov eax, dword [ebp - 0x14]
push 0
push 0x32
push 0x466
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], 1
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
push esi
call edi
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40fc03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40fc1b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403bc0
call fcn.004c05a0
int3