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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ab0c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x5734
call fcn.004505f0
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x5668], esi
mov dword [ebp - 0x5660], eax
cmp dword [esi + 8], ebx
jne 0x438a6b
push str.No_file_to_unzip
lea ecx, [ebp - 0x5684]
call fcn.004073f1
lea eax, [ebp - 0x5684]
push eax
lea eax, [ebp - 0x56c8]
push eax
mov dword [ebp - 4], ebx
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x56c8]
push eax
call fcn.00441753
cmp eax, ebx
jne 0x438a78
lea eax, [esi + 0xc]
mov dword [ebp - 0x5660], eax
push dword [ebp - 0x5660]
call fcn.00438d7c
test eax, eax
jne 0x438abe
push str.failed_CreateFolder
lea ecx, [ebp - 0x5684]
call fcn.004073f1
lea eax, [ebp - 0x5684]
push eax
lea eax, [ebp - 0x5718]
push eax
mov dword [ebp - 4], 1
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x5718]
jmp 0x438a65
push esi
lea edi, [ebp - 0x565c]
call fcn.00438761
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
cmp word [ebp + eax*2 - 0x565e], 0x5c
je 0x438d40
push dword [ebp - 0x5660]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x224]
push eax
call edi
cmp word [ebp + eax*2 - 0x226], 0x5c
je 0x438b1d
push 0x4628b0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x565c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov edi, eax
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x5660], ebx
cmp eax, ebx
je 0x438b67
xor ecx, ecx
mov word [eax], cx
push edi
mov ecx, esi
call fcn.00438d7c
mov dword [ebp - 0x5660], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x5660], ebx
jne 0x438bb0
push str.failed_CreateFilePath
lea ecx, [ebp - 0x5684]
call fcn.004073f1
lea eax, [ebp - 0x5684]
push eax
lea eax, [ebp - 0x56f0]
push eax
mov dword [ebp - 4], 2
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x56f0]
jmp 0x438a65
cmp byte [esi + 4], bl
je 0x438bd5
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x438bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x438d40
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5660], eax
push str.failed_CreateFile
lea ecx, [ebp - 0x5684]
mov dword [ebp - 4], 3
call fcn.004073f1
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5660], 0xffffffff
setne al
cmp eax, ebx
jne 0x438c2d
lea eax, [ebp - 0x5684]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x5684]
mov byte [ebp - 4], 3
call fcn.0040860c
mov ecx, dword [esi + 8]
call fcn.00439e9b
push eax
call fcn.0043842f
pop ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x5224]
push eax
push dword [esi + 8]
call fcn.00439fde
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jle 0x438d03
push str.WriteFile_error
lea ecx, [ebp - 0x5684]
mov dword [ebp - 0x5664], ebx
call fcn.004073f1
push ebx
lea eax, [ebp - 0x5664]
push eax
push edi
lea eax, [ebp - 0x5224]
push eax
mov byte [ebp - 4], 6
push dword [ebp - 0x5660]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x438cb2
lea eax, [ebp - 0x5684]
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x5684]
mov byte [ebp - 4], 5
call fcn.0040860c
cmp dword [ebp - 0x5664], edi
je 0x438c52
push str.dwBytesWritten___nRet
lea ecx, [ebp - 0x56a0]
call fcn.004073f1
lea eax, [ebp - 0x56a0]
push eax
lea eax, [ebp - 0x5740]
push eax
mov byte [ebp - 4], 7
call fcn.00401273
push 0x4720a0
lea eax, [ebp - 0x5740]
jmp 0x438a65
mov dword [ebp - 4], 3
push dword [esi + 8]
call fcn.0043a205
pop ecx
cmp dword [ebp - 0x5660], ebx
je 0x438d27
push dword [ebp - 0x5660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x5240]
push eax
call fcn.00438dfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043d7ed
leave
ret 4