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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47223f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x569c
call fcn.004491a0
mov eax, dword [0x49e5f4]
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 0x440503
push str.No_file_to_unzip
lea ecx, [ebp - 0x5688]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x5688]
push 0x4939d8
push eax
call fcn.0044b5d4
test esi, esi
jne 0x44050a
lea esi, [edi + 0xc]
push esi
call fcn.0043feba
test eax, eax
jne 0x44053b
push str.failed_CreateFolder
lea ecx, [ebp - 0x5694]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x5694]
push 0x4939d8
jmp 0x4404fd
lea eax, [ebp - 0x566c]
mov ecx, edi
push eax
call fcn.0043ff64
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 0x4407bc
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 0x4405a6
push 0x4788ac
lea eax, [ebp - 0x21c]
push eax
call esi
push 0x5c
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x4405cf
push ecx
push ebx
lea eax, [ebp - 0x566c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4405cf
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.0043fe78
test eax, eax
jne 0x44061b
push str.failed_CreateFilePath
lea ecx, [ebp - 0x56a0]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x56a0]
push 0x4939d8
jmp 0x4404fd
cmp byte [edi + 4], bl
je 0x440640
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x440640
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4407bc
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.00403e21
lea eax, [ebp - 0x5234]
mov byte [ebp - 4], 1
push eax
xor eax, eax
cmp esi, 0xffffffff
setne al
push eax
call fcn.004158b7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5234]
mov byte [ebp - 4], bl
call fcn.00409040
push str.unzOpenCurrentFile
push dword [edi + 8]
call fcn.004423c2
pop ecx
push eax
call fcn.00440879
pop ecx
pop ecx
mov byte [ebp - 4], 2
push 0x5000
lea eax, [ebp - 0x521c]
push eax
push dword [edi + 8]
call fcn.004425e7
add esp, 0xc
mov dword [ebp - 0x5670], eax
test eax, eax
jle 0x44078d
push str.WriteFile_error
lea ecx, [ebp - 0x5234]
mov dword [ebp - 0x5674], ebx
call fcn.00403e21
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.004158b7
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5234]
mov byte [ebp - 4], 2
call fcn.00409040
mov eax, dword [ebp - 0x5670]
cmp dword [ebp - 0x5674], eax
je 0x4406bd
push str.dwBytesWritten___nRet
lea ecx, [ebp - 0x56ac]
call fcn.0040487f
mov dword [ebp - method.std::bad_exception.virtual_0], vtable.std::runtime_error.0
lea eax, [ebp - 0x56ac]
push 0x4939d8
jmp 0x4404fd
push dword [edi + 8]
call fcn.0044215a
pop ecx
test esi, esi
je 0x4407a1
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.00440324
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.00449031
mov esp, ebp
pop ebp
ret 8