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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009d2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
jb 0x10051b59
mov eax, dword [esi]
jmp 0x10051b5b
mov eax, esi
test eax, eax
je 0x10051e46
cmp word [eax], 0
je 0x10051e46
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10051e46
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.10008c80
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x78], 0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x10051cc1
lea edx, [esp + 0x38]
lea ecx, [esp + 0x20]
call fcn.10051a10
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], eax
cmp ecx, eax
je 0x10051c07
cmp dword [esp + 0x4c], 8
jb 0x10051be6
push dword [esp + 0x38]
call ebx
mov eax, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
mov word [esp + 0x38], cx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
call fcn.1000d5d0
cmp dword [esp + 0x34], 8
jb 0x10051c17
push dword [esp + 0x20]
call ebx
add esp, 4
cmp dword [esp + 0x48], 0
jne 0x10051c43
push 0x100b2814
mov ecx, edi
call fcn.10008550
cmp dword [esp + 0x4c], 8
jb 0x10051e52
push dword [esp + 0x38]
call ebx
add esp, 4
jmp 0x10051e52
mov dword [esp + 0x10], 0
mov byte [esp + 0x78], 1
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push eax
push 1
lea ecx, [esp + 0x1c]
call sym.iImportLib.dll_public:_bool___thiscall_zipHelper::Init_bool__wchar_t_const___bool_
cmp dword [esi + 0x14], 8
jb 0x10051c76
mov eax, dword [esi]
jmp 0x10051c78
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call sym.iImportLib.dll_public:_bool___thiscall_zipHelper::zipFile_wchar_t_const__
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10051ca2
cmp dword [ecx], 1
sete al
test al, al
je 0x10051c9b
call fcn.10061cc0
jmp 0x10051ca0
call fcn.100661e0
xor ecx, ecx
mov byte [esp + 0x78], 0
test ecx, ecx
je 0x10051cc1
cmp dword [ecx], 1
sete al
test al, al
je 0x10051cbc
call fcn.10061cc0
jmp 0x10051cc1
call fcn.100661e0
push dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.10050ff0
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x7c], 2
call sym.iImportLib.dll_int___cdecl_elex::LibCurlClient::CheckResult_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test eax, eax
jne 0x10051d5e
cmp byte [ebp + 0x10], al
je 0x10051e0e
cmp dword [esp + 0x4c], 8
jb 0x10051d11
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10051e0e
jmp 0x10051d15
lea eax, [esp + 0x38]
cmp word [eax], 0
je 0x10051e0e
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call eax
cmp eax, 0xffffffff
je 0x10051e0e
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
jmp 0x10051e08
cmp byte [ebp + 0x14], 0
jne 0x10051d6e
cmp byte [ebp + 0x10], 0
je 0x10051e0e
cmp dword [esp + 0x4c], 8
jb 0x10051d7f
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10051dc5
jmp 0x10051d83
lea eax, [esp + 0x38]
cmp word [eax], 0
je 0x10051dc5
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call eax
cmp eax, 0xffffffff
je 0x10051dc5
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x10051dcf
mov eax, dword [esi]
jmp 0x10051dd1
mov eax, esi
test eax, eax
je 0x10051e0e
cmp word [eax], 0
je 0x10051e0e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10051e0e
cmp dword [esi + 0x14], 8
jb 0x10051df1
mov eax, dword [esi]
jmp 0x10051df3
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x10051e07
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.1000f9e0
cmp dword [esp + 0x64], 8
jb 0x10051e2a
push dword [esp + 0x50]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jmp 0x10051c2a
push 0x100b2814
mov ecx, edi
call fcn.10008550
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret