Function at 0x401470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1e4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1f8]
push 0
push 0
push 0
push 0
push 0x100
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
call sub.zlibwapi.dll_Ordinal_124
mov esi, eax
test esi, esi
je 0x4014c2
push esi
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call fcn.00401c45
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret
push 0x2000
call fcn.00401d02
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4014f4
push str.Error_allocating_memory_n
call fcn.00401c45
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret
mov al, byte [esp + 0x74]
lea ebx, [esp + 0x74]
mov dword [esp + 0x10], ebx
mov ecx, ebx
test al, al
je 0x401523
cmp al, 0x2f
je 0x40150e
cmp al, 0x5c
jne 0x401517
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
mov ebx, edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401506
cmp byte [ebx], al
jne 0x401554
mov eax, dword [esp + 0x1fc]
cmp dword [eax], 0
jne 0x40178e
lea ecx, [esp + 0x74]
push ecx
push str.creating_directory:__s_n
call fcn.00401c45
lea edx, [esp + 0x7c]
push edx
call fcn.00401080
add esp, 0xc
jmp 0x40178e
mov eax, dword [esp + 0x1fc]
cmp dword [eax], 0
mov dword [esp + 0x18], 0
lea ebp, [esp + 0x74]
je 0x40156e
mov ebp, ebx
mov ecx, dword [esp + 0x204]
push ecx
push edi
call sub.zlibwapi.dll_Ordinal_79
mov esi, eax
test esi, esi
je 0x401590
push esi
push str.error__d_with_zipfile_in_unzOpenCurrentFilePassword_n
call fcn.00401c45
add esp, 8
mov edi, dword [esp + 0x200]
cmp dword [edi], 0
jne 0x40162f
test esi, esi
jne 0x401781
push 0x40d63c
push ebp
call fcn.00402537
add esp, 8
test eax, eax
je 0x401637
push eax
call fcn.00402407
add esp, 4
push ebp
push str.The_file__s_exists._Overwrite____y_es___n_o___A_ll:
call fcn.00401c45
lea edx, [esp + 0x17c]
push edx
push 0x40d600
call fcn.0040237d
add esp, 0x10
cmp eax, 1
jne 0x401610
mov al, byte [esp + 0x174]
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4015f9
sub al, 0x20
cmp al, 0x59
je 0x401605
cmp al, 0x4e
je 0x401609
cmp al, 0x41
jne 0x4015c3
cmp al, 0x4e
jne 0x401617
mov ecx, 1
jmp 0x40161b
push 1
call fcn.00402298
mov ecx, dword [esp + 0x18]
cmp al, 0x41
jne 0x401625
mov dword [edi], 1
test ecx, ecx
jne 0x40174b
jmp 0x401637
test esi, esi
jne 0x401781
push 0x40d5fc
push ebp
call fcn.00402537
mov edi, eax
add esp, 8
test edi, edi
jne 0x401699
mov edx, dword [esp + 0x1fc]
cmp dword [edx], eax
jne 0x401686
lea eax, [esp + 0x74]
cmp ebx, eax
je 0x401686
mov bl, byte [ebx - 1]
mov esi, dword [esp + 0x10]
push ebp
mov byte [esi - 1], 0
call fcn.00401090
push 0x40d5fc
push ebp
mov byte [esi - 1], bl
call fcn.00402537
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401699
push ebp
push str.error_opening__s_n
call fcn.00401c45
add esp, 8
jmp 0x40174b
push ebp
push str._extracting:__s_n
call fcn.00401c45
add esp, 8
jmp 0x4016b0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1f8]
push 0x2000
push ebx
push ecx
call sub.zlibwapi.dll_Ordinal_68
mov esi, eax
test esi, esi
js 0x40176e
jle 0x4016f5
push edi
push 1
push esi
push ebx
call fcn.00401f9b
add esp, 0x10
cmp eax, 1
je 0x4016b0
push str.error_in_writing_extracted_file_n
call fcn.00401c45
add esp, 4
or esi, 0xffffffff
test edi, edi
je 0x401702
push edi
call fcn.00402407
add esp, 4
test esi, esi
jne 0x401781
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
sub esp, 0x18
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x44]
push edx
push ebp
mov dword [eax + 0x14], ecx
call fcn.00401000
add esp, 0x20
mov eax, dword [esp + 0x1f8]
push eax
call sub.zlibwapi.dll_Ordinal_72
mov esi, eax
test esi, esi
je 0x40178e
push esi
push str.error__d_with_zipfile_in_unzCloseCurrentFile_n
call fcn.00401c45
add esp, 8
jmp 0x40178e
push esi
push str.error__d_with_zipfile_in_unzReadCurrentFile_n
call fcn.00401c45
add esp, 8
jmp 0x4016f5
mov ecx, dword [esp + 0x1f8]
push ecx
call sub.zlibwapi.dll_Ordinal_72
mov edx, dword [esp + 0x14]
push edx
call fcn.00401c0b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret