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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ce6
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x41a3b0]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], cx
push 0xffffffffffffffff
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.004030a0
push 2
push 0x414668
lea ecx, [ebp - 0x40]
call fcn.004031b0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4056c0
xor esi, esi
jmp 0x4059e5
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
push eax
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004030a0
push 1
push 0x414594
lea ecx, [ebp - 0x28]
call fcn.004031b0
cmp word [ebp - 0x264], 0
jne 0x405706
xor ecx, ecx
jmp 0x40571f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405710
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.004031b0
test byte [ebp - 0x290], 0x10
je 0x40599c
xor eax, eax
mov dword [ebp - 0x2d0], 7
mov dword [ebp - 0x2d4], 0
mov word [ebp - 0x2e4], ax
cmp word [ebp - 0x264], ax
jne 0x405766
xor ecx, ecx
jmp 0x40577f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405770
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004028f0
push 1
push 0x41440c
push dword [ebp - 0x2d4]
or ebx, 1
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x298], ebx
call fcn.00403290
test eax, eax
je 0x4058e0
xor eax, eax
mov dword [ebp - 0x2b8], 7
mov dword [ebp - 0x2bc], 0
mov word [ebp - 0x2cc], ax
cmp word [ebp - 0x264], ax
jne 0x4057eb
xor ecx, ecx
jmp 0x405803
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057f4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004028f0
push 2
push 0x414670
push dword [ebp - 0x2bc]
or ebx, 2
mov dword [ebp - 4], 3
push 0
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x298], ebx
call fcn.00403290
test eax, eax
je 0x4058e0
xor eax, eax
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x2a4], 0
mov word [ebp - 0x2b4], ax
cmp word [ebp - 0x264], ax
jne 0x405872
xor ecx, ecx
jmp 0x40588f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
jmp 0x405880
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405880
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004028f0
or ebx, 4
mov dword [ebp - 4], 4
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x298], ebx
jb 0x4058bc
mov eax, dword [esi]
jmp 0x4058be
mov eax, esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2a4]
push 0
call fcn.00403290
mov byte [ebp - 0x291], 1
test eax, eax
jne 0x4058e7
mov byte [ebp - 0x291], 0
test bl, 4
je 0x405923
and ebx, 0xfffffffb
cmp dword [ebp - 0x2a0], 8
jb 0x405906
push dword [ebp - 0x2b4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x2a4], 0
mov word [ebp - 0x2b4], ax
test bl, 2
je 0x40595f
and ebx, 0xfffffffd
cmp dword [ebp - 0x2b8], 8
jb 0x405942
push dword [ebp - 0x2cc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b8], 7
mov dword [ebp - 0x2bc], 0
mov word [ebp - 0x2cc], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x405985
and ebx, 0xfffffffe
cmp dword [ebp - 0x2d0], 8
jb 0x405985
push dword [ebp - 0x2e4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp - 0x291], 0
je 0x4059ae
lea eax, [ebp - 0x28]
push eax
call fcn.00405a20
add esp, 4
jmp 0x4059ae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x4059c3
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp dword [ebp - 0x2c], 8
jb 0x4059f6
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
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.00411746
mov esp, ebp
pop ebp
ret