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

Disassembly:
sub esp, 0xd60
mov eax, dword [0x54a2b0]
mov dword [esp + 0xd5c], eax
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
mov dword [esp], ecx
jae 0x49b1d8
mov eax, 0x546d28
push edi
push 0x104
push eax
lea eax, [esp + 0x55c]
push eax
call fcn.004c30d0
lea edi, [esp + 0x560]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b1f7
mov cx, word [0x50c4c4]
mov word [edi], cx
lea edi, [esp + 0x554]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b211
mov edx, dword [0x50c4c8]
mov eax, dword [0x50c4cc]
mov ecx, dword [0x50c4d0]
mov dword [edi], edx
mov edx, dword [0x50c4d4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea edi, [esp + 0x554]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b243
mov ax, word [0x50c4d8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x558]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x49b286
xor eax, eax
pop edi
mov ecx, dword [esp + 0xd5c]
call fcn.004c2e45
add esp, 0xd60
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebp
push esi
nop
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x49b5e1
mov al, byte [esp + 0x18]
test al, 0x10
jne 0x49b290
test al, 1
je 0x49b2c6
lea ecx, [esp + 0x44]
push 0x80
push ecx
call fcn.004c308e
add esp, 8
xor eax, eax
jmp 0x49b2d0
mov cl, byte [esp + eax + 0x44]
mov byte [esp + eax + 0xb6c], cl
inc eax
test cl, cl
jne 0x49b2d0
lea eax, [esp + 0xb6c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b2f0
sub eax, edx
lea ebp, [esp + eax + 0xb68]
mov edi, str..dat
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x49b459
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
jae 0x49b329
mov eax, 0x546d28
push 0x104
push eax
lea eax, [esp + 0x160]
push eax
call fcn.004c30d0
lea edi, [esp + 0x164]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b347
mov cx, word [0x50c4e4]
mov word [edi], cx
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b361
mov edx, dword [0x50c4e8]
mov eax, dword [0x50c4ec]
mov ecx, dword [0x50c4f0]
mov dword [edi], edx
mov edx, dword [0x50c4f4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea eax, [esp + 0x44]
mov dword [edi + 0xc], edx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b391
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b3a2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x546d3c]
and ecx, 3
cmp eax, 0x10
mov eax, dword [0x546d28]
rep movsb byte es:[edi], byte [esi]
jae 0x49b3ce
mov eax, 0x546d28
push 0x104
push eax
lea eax, [esp + 0x76c]
push eax
call fcn.004c30d0
lea edi, [esp + 0x770]
add esp, 0xc
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b3f0
mov ecx, 6
mov esi, str.medialeveldatalevels_
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
movsb byte es:[edi], byte [esi]
mov edx, eax
jmp 0x49b410
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b410
lea edi, [esp + 0x764]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b421
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x764]
push ecx
lea edx, [esp + 0x15c]
push edx
call ebx
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str..lev
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x49b290
cmp dword [0x546d3c], 0x10
mov eax, dword [0x546d28]
jae 0x49b482
mov eax, 0x546d28
push 0x104
push eax
lea eax, [esp + 0x364]
push eax
call fcn.004c30d0
lea edi, [esp + 0x368]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b4a0
mov cx, word [0x50c51c]
mov word [edi], cx
lea edi, [esp + 0x35c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b4c0
mov edx, dword [0x50c520]
mov eax, dword [0x50c524]
mov ecx, dword [0x50c528]
mov dword [edi], edx
mov edx, dword [0x50c52c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea eax, [esp + 0x44]
mov dword [edi + 0xc], edx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b4f0
lea edi, [esp + 0x35c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b501
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x546d3c]
and ecx, 3
cmp eax, 0x10
mov eax, dword [0x546d28]
rep movsb byte es:[edi], byte [esi]
jae 0x49b52d
mov eax, 0x546d28
push 0x104
push eax
lea eax, [esp + 0x970]
push eax
call fcn.004c30d0
lea edi, [esp + 0x974]
add esp, 0xc
dec edi
jmp 0x49b550
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49b550
mov ecx, dword [str.medialeveldataxml_]
mov edx, dword [0x50c534]
mov eax, dword [0x50c538]
mov dword [edi], ecx
mov ecx, dword [0x50c53c]
mov dword [edi + 4], edx
mov edx, dword [0x50c540]
mov dword [edi + 8], eax
mov ax, word [0x50c544]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov word [edi + 0x14], ax
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b593
lea edi, [esp + 0x968]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b5a4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x968]
push ecx
lea edx, [esp + 0x360]
push edx
call ebx
lea eax, [esp + 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x49b290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
push esi
je 0x49b60c
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov ecx, dword [esp + 0xd5c]
call fcn.004c2e45
add esp, 0xd60
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [ecx + 0x118], 6
mov ecx, dword [esp + 0xd64]
pop ebx
mov eax, 0x64
pop edi
call fcn.004c2e45
add esp, 0xd60
ret