Function at 0x40f870
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e21b1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28c]
mov eax, dword [eax + 0x90]
sub eax, 0x10
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x284], 0
call fcn.00421520
lea ecx, [esp + 0x14]
call fcn.00468100
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40f91f
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40fb2c
cmp ecx, eax
jg 0x40fb2c
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40f91f
cmp ax, 0x2f
je 0x40f91f
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.004139a0
push 0x18
push str.PluginsPluginsSetupBak_
lea eax, [esp + 0x1c]
push eax
call fcn.004060a0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x20], esi
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x14
push str.QMSystemSetup_7.exe
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x290], 1
call fcn.004060a0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40fab2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x4f09d4
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f9b6
test dx, dx
je 0x40f9b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f9b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f990
xor eax, eax
jmp 0x40f9bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fa97
mov ecx, 0x4f1128
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f9f6
test dx, dx
je 0x40f9f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f9f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f9d0
xor eax, eax
jmp 0x40f9fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fa97
test byte [esp + 0x24], 0x10
jne 0x40fa90
mov eax, esi
call fcn.004012e0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov byte [esp + 0x284], 2
lea edx, [eax + 2]
jmp 0x40fa30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fa30
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004060a0
mov esi, dword [esp + 0x1c]
push esi
call edi
push 0x4f1130
mov ecx, 0x5158b0
call fcn.00489840
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x284], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
jmp 0x40fa9c
lea edx, [esp + 0x24]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f983
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x284], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fafe
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004b83ee
add esp, 0x278
ret 4
push 0x80070057
call fcn.00401350
int3