Function at 0x416090
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x210], edi
push 0x208
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], eax
call fcn.004e6b5b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4160ed
cmp dword [ebp + 0x10], esi
jne 0x41626e
push str.could_not_allocate_MAX_PATH_buffer
call fcn.0048a0f0
add esp, 4
jmp 0x41626e
push 0x250
call fcn.004e6b1f
mov esi, eax
add esp, 4
mov dword [ebp - 0x208], esi
test esi, esi
jne 0x416121
cmp dword [ebp + 0x10], eax
jne 0x41626e
push str.could_not_allocate_WIN32_FIND_DATA
call fcn.0048a0f0
add esp, 4
jmp 0x41626e
push 0x104
push ebx
push 0x54897c
push edi
call fcn.0048f340
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x10
push esi
push ebx
call edi
mov dword [ebp - 0x20c], eax
cmp eax, 0xffffffff
je 0x41626e
lea eax, [esi + 0x2c]
mov ecx, 0x5489a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41617c
test dx, dx
je 0x416178
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41617c
add eax, 4
add ecx, 4
test dx, dx
jne 0x416156
xor eax, eax
jmp 0x416181
sbb eax, eax
or eax, 1
test eax, eax
je 0x416226
mov ecx, 0x5489a4
lea eax, [esi + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4161b7
test dx, dx
je 0x4161b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4161b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x416191
xor eax, eax
jmp 0x4161bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x416226
test byte [esi], 0x10
jne 0x416226
push 0x104
push ebx
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 0x210]
call fcn.0048f340
push 1
push ebx
call fcn.00415fb0
add esp, 0x18
test eax, eax
jne 0x416226
cmp word [esi + 0x234], 0
lea eax, [esi + 0x234]
je 0x41621a
push 0x104
push ebx
push eax
push dword [ebp - 0x210]
call fcn.0048f340
push 1
push ebx
call fcn.00415fb0
add esp, 0x18
test eax, eax
jne 0x416226
inc dword [ebp - 0x214]
cmp dword [ebp + 0x10], 0
je 0x41629b
push esi
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41614e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
jne 0x416410
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x4162c9
mov dword [ebp - 0x218], 1
mov esi, dword [ebp - 0x208]
push 2
push ebx
call fcn.00507268
push 0x250
push esi
call fcn.00507268
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x218]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.0048a250
push eax
push ebx
push 0x2f53
call fcn.00489f40
add esp, 0x14
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41626e
push 0x104
push ebx
push 0x54897c
push dword [ebp - 0x210]
call fcn.0048f340
add esp, 0x10
push dword [ebp - 0x208]
push ebx
call edi
mov dword [ebp - 0x20c], eax
cmp eax, 0xffffffff
je 0x416268
mov edi, dword [ebp - 0x208]
mov ecx, 0x5489a0
lea eax, [edi + 0x2c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41632e
test dx, dx
je 0x41632a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41632e
add eax, 4
add ecx, 4
test dx, dx
jne 0x416308
xor eax, eax
jmp 0x416333
sbb eax, eax
or eax, 1
test eax, eax
je 0x41639b
mov ecx, 0x5489a4
lea eax, [edi + 0x2c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416366
test dx, dx
je 0x416362
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416366
add eax, 4
add ecx, 4
test dx, dx
jne 0x416340
xor eax, eax
jmp 0x41636b
sbb eax, eax
or eax, 1
test eax, eax
je 0x41639b
push 0x104
push ebx
lea eax, [edi + 0x2c]
push eax
push dword [ebp - 0x210]
call fcn.0048f340
add esp, 0x10
test byte [edi], 0x10
je 0x41639b
push 0
push ebx
call fcn.00416070
add esp, 8
test eax, eax
je 0x4163fd
push edi
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416300
call esi
cmp eax, 0x12
jne 0x4163ea
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x214]
test eax, eax
jne 0x4163e3
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, edi
jmp 0x41626e
cmp dword [ebp + 0x10], 0
jne 0x4163fd
push str.FindNextFile
call fcn.0048a190
add esp, 4
push dword [ebp - 0x20c]
mov esi, edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41626e
cmp dword [ebp + 0x10], 0
jne 0x416423
push str.FindNextFile
call fcn.0048a190
add esp, 4
mov esi, dword [ebp - 0x208]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41626e