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

Disassembly:
push 0xffffffffffffffff
push 0x421f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x42a364]
xor eax, dword [esp + 0x1a8]
push edi
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1b4]
push edi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
call fcn.004016a9
mov eax, dword [esp + 0x1c]
cmp eax, 2
mov dword [esp + 0x1a8], edi
jae 0x4130a6
cmp dword [esp + 0x20], 0x10
jb 0x41309f
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00417290
add esp, 4
xor al, al
jmp 0x4132a6
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, 0x10
cmp esi, ebx
mov edx, ecx
jae 0x4130c0
lea edx, [esp + 0x18]
cmp byte [edx + eax - 1], 0x5c
jne 0x4130d6
cmp esi, ebx
jae 0x4130cf
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], 0x2f
je 0x4130f8
mov eax, 0x4266bc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4130e0
sub eax, edx
push eax
push 0x4266bc
lea ecx, [esp + 0x1c]
call fcn.00404b79
push 0x4244a4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004049a5
mov ecx, dword [eax + 0x18]
add esp, 0xc
cmp ecx, ebx
jb 0x41311b
mov eax, dword [eax + 4]
jmp 0x41311e
add eax, 4
lea ecx, [esp + 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp dword [esp + 0x64], ebx
jb 0x41313f
mov edx, dword [esp + 0x50]
push edx
call fcn.00417290
add esp, 4
cmp ebp, 0xffffffff
jne 0x413160
cmp dword [esp + 0x2c], ebx
jb 0x413157
mov eax, dword [esp + 0x18]
push eax
call fcn.00417290
add esp, 4
xor al, al
jmp 0x4132a3
xor edi, edi
test byte [esp + 0x68], 0x10
je 0x413214
mov edi, 0x4244a0
lea esi, [esp + 0x94]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x413271
mov edi, 0x42449c
lea esi, [esp + 0x94]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x413271
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004049a5
push eax
mov byte [esp + 0x1c4], 1
call fcn.004132d0
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0x64]
neg bl
sbb bl, bl
inc bl
cmp eax, 0x10
mov byte [esp + 0x1b4], 0
jb 0x4131ef
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00417290
add esp, 4
test bl, bl
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov ebx, 0x10
je 0x413271
mov byte [esp + 0x13], 0
jmp 0x413271
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004049a5
mov eax, dword [esp + 0x54]
add esp, 0xc
cmp eax, ebx
mov eax, dword [esp + 0x34]
jae 0x41323e
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41324d
mov byte [esp + 0x13], al
cmp dword [esp + 0x48], ebx
jb 0x413260
mov edx, dword [esp + 0x34]
push edx
call fcn.00417290
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
lea eax, [esp + 0x68]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41315e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], ebx
jb 0x41329f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00417290
add esp, 4
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19c]
xor ecx, dword [esp + 0x1ac]
pop edi
add esp, 0x1a8
jmp fcn.00418c67