Function at 0x50b9c0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, 0x1124
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1120], eax
cmp byte [0x5c684a], 0
jne 0x50bd03
cmp byte [esp + 0x1128], 0
jne 0x50ba0b
call fcn.0050bd20
mov ecx, dword [esp + 0x1120]
xor ecx, esp
call fcn.0052f708
add esp, 0x1124
ret 4
push ebx
xor ebx, ebx
mov ecx, 0x5c5810
push esi
push edi
xor edi, edi
mov dword [esp + 0x10c4], ebx
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10cc], ebx
mov dword [esp + 0x10d0], ebx
mov dword [esp + 0x10d4], ebx
mov dword [esp + 0x10d8], ebx
mov dword [esp + 0x10dc], ebx
call fcn.0045ceb0
lea eax, [esp + 0x34]
mov ecx, 0x5c5810
push eax
call fcn.0045ceb0
test al, al
je 0x50bb42
mov byte [esp + 0xf], bl
lea eax, [esp + 0x34]
push eax
call fcn.004a2d90
push 3
mov esi, eax
push 0x56b68c
push esi
call fcn.004c11b0
test eax, eax
je 0x50ba94
push 3
push 0x56b694
push esi
call fcn.004c11b0
test eax, eax
jne 0x50babb
movzx eax, word [esi + 6]
push eax
call fcn.0053d6e0
add esp, 4
test eax, eax
je 0x50babb
movzx eax, word [esi + 8]
cmp eax, 0x2e
je 0x50bb68
test ax, ax
je 0x50bb68
push 3
push 0x5675ac
push esi
call fcn.004c11b0
test eax, eax
je 0x50baff
push 3
push 0x5675b4
push esi
call fcn.004c11b0
test eax, eax
je 0x50baff
push 3
push 0x5675bc
push esi
call fcn.004c11b0
test eax, eax
je 0x50baff
push 3
push 0x566fac
push esi
call fcn.004c11b0
test eax, eax
jne 0x50bb0d
movzx eax, word [esi + 6]
cmp eax, 0x2e
je 0x50bb68
test ax, ax
je 0x50bb68
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50bb2b
lea eax, [esp + 0x34]
push eax
call fcn.00490c30
test al, al
jne 0x50bb6d
lea eax, [esp + 0x34]
mov ecx, 0x5c5810
push eax
call fcn.0045ceb0
test al, al
jne 0x50ba66
push ebp
push 0
mov ecx, 0x5c5810
call fcn.0045ceb0
lea eax, [esp + 0x38]
mov ecx, 0x5c5810
push eax
call fcn.0045ceb0
test al, al
je 0x50bcd4
jmp 0x50bbd4
mov byte [esp + 0xf], 1
push 0x64
lea eax, [esp + 0x38]
push eax
call fcn.004d8300
push 0x204
mov esi, eax
call fcn.004b68d0
push esi
push eax
call fcn.00502bd0
add esp, 8
push 0x205
call fcn.004b68d0
push eax
call fcn.00502e70
movzx eax, byte [esp + 0x13]
add esp, 4
neg eax
sbb eax, eax
and eax, 0xffffff87
add eax, 0xce
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x5d281c
call fcn.00487dd0
jmp 0x50bd00
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
jmp 0x50bbe0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50bbe0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
add esi, ebx
lea ebp, [esi + esi]
lea eax, [ebp + 2]
push eax
push edi
call fcn.00537b8a
mov edi, eax
add esp, 8
test edi, edi
je 0x50bcc9
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], edi
lea edx, [ebx + ebx]
mov eax, ecx
sub edx, eax
add edx, edi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x50bc20
lea eax, [esp + 0x38]
mov ecx, 0x5c5810
push eax
mov ebx, esi
call fcn.0045ceb0
test al, al
jne 0x50bbd0
test ebx, ebx
je 0x50bcd0
xor eax, eax
mov word [edi + ebp], ax
inc dword [0x5923d8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov eax, dword [0x5923dc]
mov dword [esp + 0x18], eax
mov eax, 0x40
mov word [esp + 0x28], ax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
dec dword [0x5923d8]
mov esi, eax
push edi
call fcn.00537b6f
add esp, 4
test esi, esi
jne 0x50bcff
cmp dword [esp + 0x2a], esi
jne 0x50bcff
mov ecx, 0x594454
call fcn.004de200
push 0x557718
mov ecx, 0x5c5810
call fcn.00460460
jmp 0x50bcff
mov eax, dword [esp + 0x14]
push eax
jmp 0x50bcf7
mov edi, dword [esp + 0x14]
push 0x65
call fcn.004b68d0
push 0x14c
mov esi, eax
call fcn.004b68d0
push 0x30
push esi
push eax
push dword [0x5923dc]
call fcn.004fdf00
push edi
call fcn.00537b6f
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1120]
xor ecx, esp
call fcn.0052f708
add esp, 0x1124
ret 4