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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b646
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
push str.Log.log
lea eax, [esp + 0x24]
push 0x4bb3b0
push eax
call fcn.00408f40
add esp, 0xc
xor esi, esi
lea ecx, [esp + 0x9c]
mov dword [esp + 0x1f0], esi
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x418a75
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4188fa
xor esi, esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x418acb
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x418add
mov ax, word [esp + 0x2c]
cmp ax, 0x76c
jae 0x41893e
xor eax, eax
xor ecx, ecx
jmp 0x418973
movzx ecx, word [esp + 0x38]
movzx edx, word [esp + 0x36]
push 0xffffffffffffffff
push ecx
movzx ecx, word [esp + 0x3c]
push edx
movzx edx, word [esp + 0x3e]
push ecx
movzx ecx, word [esp + 0x3e]
push edx
movzx edx, ax
push ecx
push edx
lea ecx, [esp + 0x58]
call fcn.0041bd60
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.0046fd10
add esp, 8
cmp eax, esi
jne 0x4189a0
mov ecx, 9
lea esi, [esp + 0x54]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x78]
push edx
call fcn.00470baa
push 0
mov esi, eax
mov edi, edx
call fcn.004705e8
add esp, 8
sub eax, esi
sbb edx, edi
mov dword [esp + 0x50], edx
js 0x418a4e
jg 0x4189cf
cmp eax, 0x8ca0
jbe 0x418a4e
push str.Log_
lea eax, [esp + 0x2c]
push 0x4bb3b0
push eax
call fcn.00408f40
lea ecx, [esp + 0xd4]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x208], 1
call fcn.00408f40
mov eax, dword [eax]
add esp, 0x18
push eax
call ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1f0], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4188f8
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x1f0], 0xffffffff
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 0x418aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0046da06
mov esp, ebp
pop ebp
ret
push 0x80070057
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00405140
push 0x80070057
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00405140
int3