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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
mov word [esp + 0xc], ax
mov word [esp + 0x1c], ax
movzx eax, word [edx]
mov byte [esp + 0x2c], 0
push esi
push edi
cmp eax, 8
jne 0x4a4093
mov ecx, dword [edx + 8]
jmp 0x4a419f
mov edi, 0x4008
cmp ax, di
jne 0x4a40a7
mov eax, dword [edx + 8]
mov ecx, dword [eax]
jmp 0x4a419f
mov dword [esp + 0x10], 0
cmp eax, 0xa
jne 0x4a40cc
cmp dword [edx + 8], 0x80020004
jne 0x4a40cc
mov byte [esp + 0x34], 1
mov esi, 0x80020005
jmp 0x4a4324
cmp eax, 9
je 0x4a40dd
mov esi, 0x4009
mov ecx, eax
cmp ax, si
jne 0x4a4153
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x4a40e9
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a431f
push 0
push 0
lea edx, [esp + 0x1c]
xor eax, eax
push edx
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
push edx
push 3
push 0
push 0x556a40
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x35], esi
test esi, esi
js 0x4a4328
movzx ecx, word [esp + 0x14]
lea edx, [esp + 0x14]
mov eax, ecx
cmp cx, di
jne 0x4a4148
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
jmp 0x4a419f
cmp eax, 8
jne 0x4a4153
mov ecx, dword [esp + 0x1c]
jmp 0x4a419f
cmp cx, 1
jne 0x4a4163
mov esi, 0x800a005e
jmp 0x4a4324
mov eax, 0x400c
cmp cx, ax
jne 0x4a4178
lea ecx, [ecx]
mov edx, dword [edx + 8]
cmp word [edx], ax
je 0x4a4170
push 8
push 2
push 0x400
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x35], esi
test esi, esi
js 0x4a4328
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x35], 0
test ecx, ecx
je 0x4a4318
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
je 0x4a4318
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push edx
mov edx, eax
call fcn.004d2497
mov edi, dword [esp + 0x3c]
mov esi, eax
test esi, esi
js 0x4a41f7
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a4202
mov esi, 0x80004005
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a4303
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
push 0
push 0
push edi
call esi
mov dword [esp + 0x4c], eax
xor ecx, ecx
add eax, 0x105
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
jne 0x4a4230
xor edi, edi
jmp 0x4a4241
push ecx
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
push dword [esp + 0x54]
push dword [esp + 0x48]
call esi
xor esi, esi
jmp 0x4a4260
cmp word [esp + 0x7c], 0x2e
jne 0x4a4283
mov ax, word [esp + 0x7e]
test ax, ax
je 0x4a42af
cmp ax, 0x2e
jne 0x4a4283
cmp word [esp + 0x80], 0
je 0x4a42af
push 0x208
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x14]
call fcn.004d634d
add esp, 0xc
test byte [esp + 0x50], 0x10
jne 0x4a42af
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4a42e2
inc esi
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a4260
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x4e05c4]
call ebx
test esi, esi
jne 0x4a4301
mov esi, 0x80004005
jmp 0x4a4303
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
push dword [0x4e05c4]
call ebx
mov esi, 0x80004005
jmp 0x4a4303
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a4328
push eax
push 0
push dword [0x4e05c4]
call ebx
jmp 0x4a4328
mov esi, 0x80004005
jmp 0x4a4328
mov esi, 0x800a005b
mov dword [esp + 0x35], esi
cmp word [esp + 0x14], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x4a433d
lea eax, [esp + 0x14]
push eax
call edi
cmp word [esp + 0x24], 0
je 0x4a434c
lea eax, [esp + 0x24]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4