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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4549ee
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0x5c
push eax
call fcn.0043db8c
add esp, 8
test eax, eax
jne 0x402677
or eax, 0xffffffff
jmp 0x40267b
sub eax, dword [esi]
sar eax, 1
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0x268]
push eax
mov ecx, esi
call fcn.00401d70
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x264]
push ecx
mov ecx, esi
call fcn.004021a0
mov ebx, 1
mov byte [ebp - 4], bl
push ebx
push 0x45e6a8
lea ecx, [ebp - 0x264]
call fcn.004018e0
mov edx, dword [ebp - 0x264]
mov eax, dword [edx - 0xc]
push 0x24c
lea ecx, [ebp - 0x25c]
push 0
push ecx
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x260], 0
call fcn.0043e210
push 0x45e6a0
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.004022d0
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40273e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x40276d
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40282b
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x260], 0x10
jne 0x4027e8
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x264]
push ecx
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0043e167
add esp, 0xc
test eax, eax
jne 0x4027e8
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x270]
push eax
call fcn.004022d0
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402773
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40282b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret