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

Disassembly:
push 0xffffffffffffffff
push 0x40fb8c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x41413c]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41413c]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov dword [esp + 0x288], 1
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
call fcn.00402eb0
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov eax, 4
mov byte [esp + 0x28c], 2
call fcn.00402ff0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x40233a
lea eax, [edi - 0x10]
mov byte [esp + 0x288], 1
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402552
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402533
mov edi, edi
cmp word [esp + 0x58], 0x2e
je 0x40251b
lea edx, [esp + 0x58]
push 0x411f78
push edx
call fcn.00405043
add esp, 4
mov edi, eax
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov ecx, edi
call fcn.004029b0
mov byte [esp + 0x28c], 3
mov esi, dword [esp + 0x294]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4023bb
cmp eax, dword [esi]
jne 0x4023bb
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4023f6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4025df
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00404c7a
add esp, 0x10
add ebx, 0x10
mov dword [ebp], ebx
mov byte [esp + 0x290], 2
call fcn.00402040
add esp, 8
test eax, eax
je 0x402517
cmp word [edi], 0
je 0x402429
lea ebx, [ebx]
add edi, 2
cmp word [edi], 0
jne 0x402420
lea edx, [esp + 0x294]
push edx
lea eax, [esp + 0x20]
mov ecx, 0x2e
push eax
mov ebx, 0x411f7c
mov word [edi], cx
call fcn.00402b90
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ebx, [esp + 0x68]
mov byte [esp + 0x298], 4
call fcn.00402b90
add esp, 0x10
mov byte [esp + 0x288], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4024bc
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4024af
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4024af
call fcn.00402eb0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4024a6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4024bc
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00402e10
mov byte [esp + 0x288], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40250c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402350
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [edi - 0x10]
mov byte [esp + 0x288], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40255e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x290]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402589
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x294]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00404c1a
add esp, 0x278
ret
call fcn.00401730
int3