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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x878], ecx
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x86d]
call fcn.00410160
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0044e2e0
lea ecx, [ebp - 0x414]
add esp, 0xc
lea esi, [ebp - 0x20c]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x411754
movzx eax, word [esi + ecx]
test ax, ax
je 0x411754
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x411736
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x104
lea eax, [ebp - 0x414]
nop dword [eax]
cmp word [eax], 0
je 0x41177e
add eax, 2
sub ecx, 1
jne 0x411770
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4117d6
lea ecx, [ebp - 0x414]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x4117c9
mov edi, 0x47e984
mov eax, 0x7ffffffe
sub edi, ecx
nop dword [eax]
test eax, eax
je 0x4117c9
movzx esi, word [edi + ecx]
test si, si
je 0x4117c9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4117b0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41180a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
je 0x41191f
nop dword [eax]
nop word [eax + eax]
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x4118bf
mov ecx, 0x47e98c
lea eax, [ebp - 0x840]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411876
test dx, dx
je 0x411872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411876
add eax, 4
add ecx, 4
test dx, dx
jne 0x411850
xor eax, eax
jmp 0x41187b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41190d
mov ecx, 0x47e990
lea eax, [ebp - 0x840]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4118b6
test dx, dx
je 0x4118b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4118b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411890
xor eax, eax
jmp 0x4118bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x41190d
test esi, esi
jne 0x41190d
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x411830
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x874]
call fcn.00402780
mov ecx, dword [ebp - 0x878]
lea eax, [ebp - 0x874]
push eax
call fcn.00411a70
mov edx, dword [ebp - 0x874]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop ebx
test eax, eax
jg 0x411969
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042e446
mov esp, ebp
pop ebp
ret