Function at 0x440689
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4724ef
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x569c
call fcn.004493a0
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x5678], edi
cmp dword [edi + 8], ebx
jne 0x4406fc
push str.No_file_to_unzip
lea ecx, [ebp - 0x5688]
call fcn.004043f7
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x5688]
push 0x4938d0
push eax
call fcn.0044b7c4
test esi, esi
jne 0x440703
lea esi, [edi + 0xc]
push esi
call fcn.004400b3
test eax, eax
jne 0x440734
push str.failed_CreateFolder
lea ecx, [ebp - 0x5694]
call fcn.004043f7
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x5694]
push 0x4938d0
jmp 0x4406f6
lea eax, [ebp - 0x566c]
mov ecx, edi
push eax
call fcn.0044015d
lea eax, [ebp - 0x566c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x566e], cx
je 0x4409b5
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x21e], cx
je 0x44079f
push 0x4787f8
lea eax, [ebp - 0x21c]
push eax
call esi
push 0x5c
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x4407c8
push ecx
push ebx
lea eax, [ebp - 0x566c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4407c8
add eax, 2
push eax
lea eax, [ebp - 0x566c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x566c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00440071
test eax, eax
jne 0x440814
push str.failed_CreateFilePath
lea ecx, [ebp - 0x56a0]
call fcn.004043f7
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x56a0]
push 0x4938d0
jmp 0x4406f6
cmp byte [edi + 4], bl
je 0x440839
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x440839
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4409b5
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x567c], esi
push str.failed_CreateFile
lea ecx, [ebp - 0x5234]
mov dword [ebp - 4], ebx
call fcn.00403984
lea eax, [ebp - 0x5234]
mov byte [ebp - 4], 1
push eax
xor eax, eax
cmp esi, 0xffffffff
setne al
push eax
call fcn.0041564b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5234]
mov byte [ebp - 4], bl
call fcn.00408c45
push str.unzOpenCurrentFile
push dword [edi + 8]
call fcn.004425bb
pop ecx
push eax
call fcn.00440a72
pop ecx
pop ecx
mov byte [ebp - 4], 2
push 0x5000
lea eax, [ebp - 0x521c]
push eax
push dword [edi + 8]
call fcn.004427e0
add esp, 0xc
mov dword [ebp - 0x5670], eax
test eax, eax
jle 0x440986
push str.WriteFile_error
lea ecx, [ebp - 0x5234]
mov dword [ebp - 0x5674], ebx
call fcn.00403984
lea eax, [ebp - 0x5234]
mov byte [ebp - 4], 3
push eax
push ebx
lea eax, [ebp - 0x5674]
push eax
push dword [ebp - 0x5670]
lea eax, [ebp - 0x521c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.0041564b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5234]
mov byte [ebp - 4], 2
call fcn.00408c45
mov eax, dword [ebp - 0x5670]
cmp dword [ebp - 0x5674], eax
je 0x4408b6
push str.dwBytesWritten___nRet
lea ecx, [ebp - 0x56ac]
call fcn.004043f7
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x56ac]
push 0x4938d0
jmp 0x4406f6
push dword [edi + 8]
call fcn.00442353
pop ecx
test esi, esi
je 0x44099a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5250]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0044051d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret 8