Function at 0x40c980
Capabilities:
Delete file
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44ac1f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea eax, [esp + 0x1e4]
push eax
mov edi, str..
lea esi, [esp + 0x20]
mov byte [esp + 0x1e0], 1
call fcn.00412bd0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 2
call fcn.00402280
mov ebp, 0x10
mov byte [esp + 0x1dc], 1
cmp dword [esp + 0x34], ebp
jb 0x40ca2a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x58]
jae 0x40ca38
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40cba5
test byte [esp + 0x8c], 0x10
jne 0x40cb7f
mov edi, 0x45325c
lea esi, [esp + 0xb8]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40cb7f
mov edi, 0x453260
lea esi, [esp + 0xb8]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40cb7f
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
lea eax, [esp + 0x1e4]
push eax
mov edi, 0x45290c
lea esi, [esp + 0x3c]
mov byte [esp + 0x1e0], 3
call fcn.00412bd0
push eax
lea edi, [esp + 0xc0]
lea esi, [esp + 0x24]
mov byte [esp + 0x1e4], 4
call fcn.00412bd0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1e8], 5
call fcn.00402280
cmp dword [esp + 0x34], ebp
jb 0x40cb10
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x40cb33
mov edx, dword [esp + 0x3c]
push edx
call fcn.00416c01
add esp, 4
push 0xc
push str..clientBak20
lea eax, [esp + 0x78]
push eax
call fcn.00402360
cmp eax, 0xffffffff
je 0x40cb61
cmp dword [esp + 0x88], ebp
mov eax, dword [esp + 0x74]
jae 0x40cb5a
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x1dc], 1
cmp dword [esp + 0x88], ebp
jb 0x40cb7f
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ca54
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x6c], ebp
jb 0x40cbb8
mov edx, dword [esp + 0x58]
push edx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x1fc], ebp
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x40cbe1
mov eax, dword [esp + 0x1e8]
push eax
call fcn.00416c01
add esp, 4
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004322f2
add esp, 0x1cc
ret 0x1c