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

Disassembly:
mov eax, 0x1124
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1120], eax
cmp byte [0x5c784a], 0
jne 0x50c773
cmp byte [esp + 0x1128], 0
jne 0x50c47b
call fcn.0050c790
mov ecx, dword [esp + 0x1120]
xor ecx, esp
call fcn.00530218
add esp, 0x1124
ret 4
push ebx
xor ebx, ebx
mov ecx, 0x5c6810
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.0045d680
lea eax, [esp + 0x34]
mov ecx, 0x5c6810
push eax
call fcn.0045d680
test al, al
je 0x50c5b2
mov byte [esp + 0xf], bl
lea eax, [esp + 0x34]
push eax
call fcn.004a3770
push 3
mov esi, eax
push 0x56c88c
push esi
call fcn.004c1bf0
test eax, eax
je 0x50c504
push 3
push 0x56c894
push esi
call fcn.004c1bf0
test eax, eax
jne 0x50c52b
movzx eax, word [esi + 6]
push eax
call fcn.0053e1f0
add esp, 4
test eax, eax
je 0x50c52b
movzx eax, word [esi + 8]
cmp eax, 0x2e
je 0x50c5d8
test ax, ax
je 0x50c5d8
push 3
push 0x5687ac
push esi
call fcn.004c1bf0
test eax, eax
je 0x50c56f
push 3
push 0x5687b4
push esi
call fcn.004c1bf0
test eax, eax
je 0x50c56f
push 3
push 0x5687bc
push esi
call fcn.004c1bf0
test eax, eax
je 0x50c56f
push 3
push 0x567fac
push esi
call fcn.004c1bf0
test eax, eax
jne 0x50c57d
movzx eax, word [esi + 6]
cmp eax, 0x2e
je 0x50c5d8
test ax, ax
je 0x50c5d8
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50c59b
lea eax, [esp + 0x34]
push eax
call fcn.00491350
test al, al
jne 0x50c5dd
lea eax, [esp + 0x34]
mov ecx, 0x5c6810
push eax
call fcn.0045d680
test al, al
jne 0x50c4d6
push ebp
push 0
mov ecx, 0x5c6810
call fcn.0045d680
lea eax, [esp + 0x38]
mov ecx, 0x5c6810
push eax
call fcn.0045d680
test al, al
je 0x50c744
jmp 0x50c644
mov byte [esp + 0xf], 1
push 0x64
lea eax, [esp + 0x38]
push eax
call fcn.004d8d40
push 0x204
mov esi, eax
call fcn.004b7300
push esi
push eax
call fcn.005037c0
add esp, 8
push 0x205
call fcn.004b7300
push eax
call fcn.00503a60
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, 0x5d381c
call fcn.004885d0
jmp 0x50c770
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
jmp 0x50c650
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c650
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.0053869a
mov edi, eax
add esp, 8
test edi, edi
je 0x50c739
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 0x50c690
lea eax, [esp + 0x38]
mov ecx, 0x5c6810
push eax
mov ebx, esi
call fcn.0045d680
test al, al
jne 0x50c640
test ebx, ebx
je 0x50c740
xor eax, eax
mov word [edi + ebp], ax
inc dword [0x5933d8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov eax, dword [0x5933dc]
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 [0x5933d8]
mov esi, eax
push edi
call fcn.0053867f
add esp, 4
test esi, esi
jne 0x50c76f
cmp dword [esp + 0x2a], esi
jne 0x50c76f
mov ecx, 0x595454
call fcn.004dec40
push 0x558718
mov ecx, 0x5c6810
call fcn.00460c30
jmp 0x50c76f
mov eax, dword [esp + 0x14]
push eax
jmp 0x50c767
mov edi, dword [esp + 0x14]
push 0x65
call fcn.004b7300
push 0x14c
mov esi, eax
call fcn.004b7300
push 0x30
push esi
push eax
push dword [0x5933dc]
call fcn.004feae0
push edi
call fcn.0053867f
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1120]
xor ecx, esp
call fcn.00530218
add esp, 0x1124
ret 4