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

Disassembly:
push 0xffffffffffffffff
push 0x4e22d1
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.004012d0
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x284], 0
call fcn.00421490
lea ecx, [esp + 0x14]
call fcn.00421540
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40f6cf
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40f8dc
cmp ecx, eax
jg 0x40f8dc
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x40f6cf
cmp ax, 0x2f
je 0x40f6cf
mov edx, 0x4f09a4
lea edi, [esp + 0x14]
call fcn.00413750
push 0x18
push str.PluginsPluginsSetupBak_
lea eax, [esp + 0x1c]
push eax
call fcn.00405fb0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x20], esi
call fcn.004012d0
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.00405fb0
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 0x40f862
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 0x40f766
test dx, dx
je 0x40f762
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f766
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f740
xor eax, eax
jmp 0x40f76b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f847
mov ecx, 0x4f1128
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f7a6
test dx, dx
je 0x40f7a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f7a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f780
xor eax, eax
jmp 0x40f7ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f847
test byte [esp + 0x24], 0x10
jne 0x40f840
mov eax, esi
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov byte [esp + 0x284], 2
lea edx, [eax + 2]
jmp 0x40f7e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405fb0
mov esi, dword [esp + 0x1c]
push esi
call edi
push 0x4f1130
mov ecx, 0x515890
call fcn.004899e0
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 0x40f83c
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 0x40f84c
lea edx, [esp + 0x24]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f733
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 0x40f88a
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 0x40f8ae
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.004b84de
add esp, 0x278
ret 4
push 0x80070057
call fcn.00401340
int3