Function at 0x48b030
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp], edx
mov esi, ecx
mov eax, dword [0x742040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x10b
push 0x6d1c40
push 0x6d1dd8
push ebx
call fcn.004f2b50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e8e00
movsx ecx, byte [esi + 0xb]
test ecx, ecx
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x48b13e
test cl, cl
sets cl
cmp eax, 0x104
setae al
test cl, al
jne 0x48b23b
mov ecx, esi
push ebx
call fcn.004f3ca0
movsx eax, byte [esp + 0x1b]
test eax, eax
jns 0x48b0cc
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x48b242
lea ecx, [ebx + eax*2]
add eax, eax
mov edx, ebx
movzx edi, word [edx]
cmp edi, 0x2a
je 0x48b0f2
cmp edi, 0x3f
je 0x48b0f2
add edx, 2
add eax, 0xfffffffe
jne 0x48b0db
mov edx, ecx
cmp edx, ecx
sete al
sub edx, ebx
cmp edx, 0xfffffffe
sete bl
or bl, al
lea edi, [esp + 0x10]
mov ecx, edi
call fcn.004f2fc0
test bl, bl
je 0x48b1ef
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x48b11e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48b15e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x48b226
lea ecx, [esp + 0x20]
call fcn.004e8e70
mov bl, 1
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, eax
test bl, 1
jne 0x48b264
test bl, 0x10
jne 0x48b183
cmp byte [esi + 0xb], 0
jns 0x48b176
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48b13e
jmp 0x48b12a
cmp byte [esp], 0
je 0x48b250
lea eax, [esp + 0x12]
mov byte [eax + 9], 1
mov ecx, 0x6bebb8
lea edx, [esp + 0x10]
cmp edx, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x48b288
lea ebx, [esp + 0x10]
mov dword [ebx], 0x2a
mov ecx, esi
mov edx, ebx
push 1
call fcn.0048c9e0
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
js 0x48b297
test edi, edi
je 0x48b250
lea ecx, [esp + 0x20]
call fcn.004e8e70
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x48b149
mov ecx, esi
push edi
call fcn.004f3ca0
lea ebx, [esp + 4]
mov ecx, esi
push ebx
call fcn.004f35f0
movzx eax, byte [esp]
mov ecx, ebx
mov edx, edi
push eax
call fcn.0048c9e0
add esp, 4
mov esi, eax
mov ecx, ebx
call fcn.004f2fc0
mov ecx, edi
mov edi, esi
call fcn.004f2fc0
lea ecx, [esp + 0x20]
call fcn.004e8e70
mov bl, 1
test edi, edi
je 0x48b149
jmp 0x48b1e1
mov edi, 0xa1
jmp 0x48b1d8
lea ecx, [esp + 0x10]
call fcn.004f2fc0
jmp 0x48b114
cmp byte [esi + 0xb], 0
jns 0x48b258
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x48b17d
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x48b273
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x48b169
jmp 0x48b12a
push 0x6bebbc
push 0x6bd0bf
call fcn.0057cbd0
push dword [esp + 0x10]
call fcn.00540380
add esp, 4
jmp 0x48b1d4