Function at 0x4018f0
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x1e0
lea eax, [esp + 0x60]
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1f4]
push 0
push 0
push 0
push 0
push 0x100
push eax
push ecx
push edi
call fcn.00404cb0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x401943
push esi
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret
push 0x2000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401977
push str.Error_allocating_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret
mov al, byte [esp + 0x70]
lea ebp, [esp + 0x70]
test al, al
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x70]
je 0x4019a6
cmp al, 0x2f
je 0x401993
cmp al, 0x5c
jne 0x40199a
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40198b
mov ebp, dword [esp + 0x10]
cmp byte [ebp], 0
mov eax, dword [esp + 0x1f8]
mov ecx, dword [eax]
jne 0x4019df
test ecx, ecx
jne 0x401c2c
lea ecx, [esp + 0x70]
push ecx
push str.creating_directory:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
lea edx, [esp + 0x78]
push edx
call fcn.004017e0
add esp, 0xc
jmp 0x401c2c
test ecx, ecx
jne 0x4019e7
lea ebp, [esp + 0x70]
mov ecx, dword [esp + 0x200]
push ecx
push edi
call fcn.004058c0
mov esi, eax
add esp, 8
test esi, esi
je 0x401a11
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
push esi
push str.error__d_with_zipfile_in_unzOpenCurrentFilePassword_n
call ebx
add esp, 8
jmp 0x401a17
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
mov edi, dword [esp + 0x1fc]
cmp dword [edi], 0
jne 0x401ace
test esi, esi
jne 0x401c1c
push 0x40f028
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x401ad6
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
push str.The_file__s_exists._Overwrite____y_es___n_o___A_ll:
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_scanf]
lea edx, [esp + 0x17c]
push edx
push 0x40f1a0
call esi
add esp, 0x14
cmp eax, 1
jne 0x401ab2
mov al, byte [esp + 0x170]
cmp al, 0x61
jl 0x401a83
cmp al, 0x7a
jg 0x401a83
sub al, 0x20
cmp al, 0x59
je 0x401aba
cmp al, 0x4e
je 0x401bf9
cmp al, 0x41
je 0x401aba
push ebp
push str.The_file__s_exists._Overwrite____y_es___n_o___A_ll:
call ebx
lea eax, [esp + 0x178]
push eax
push 0x40f1a0
call esi
add esp, 0x10
cmp eax, 1
je 0x401a72
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp al, 0x4e
je 0x401bf9
cmp al, 0x41
jne 0x401ad6
mov dword [edi], 1
jmp 0x401ad6
test esi, esi
jne 0x401c1c
push 0x40f020
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x401b40
mov ecx, dword [esp + 0x1f8]
cmp dword [ecx], 0
jne 0x401b2c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x70]
cmp eax, edx
je 0x401b2c
mov bl, byte [eax - 1]
mov edi, eax
push ebp
mov byte [edi - 1], 0
call fcn.004017f0
push 0x40f020
push ebp
mov byte [edi - 1], bl
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x401b40
push ebp
push str.error_opening__s_n
call ebx
add esp, 8
jmp 0x401bf9
push ebp
push str._extracting:__s_n
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1fc]
push 0x2000
push eax
push ecx
call fcn.004058e0
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x401ba5
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
jle 0x401bc3
push edi
push 1
push esi
mov esi, dword [esp + 0x20]
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x401bb2
mov edx, dword [esp + 0x1f4]
push 0x2000
push esi
push edx
call fcn.004058e0
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x401b6e
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
push esi
push str.error__d_with_zipfile_in_unzReadCurrentFile_n
call ebx
add esp, 8
jmp 0x401bc9
push str.error_in_writing_extracted_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
or esi, 0xffffffff
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
test edi, edi
je 0x401bd7
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
jne 0x401c1c
mov eax, dword [esp + 0x28]
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x70]
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
push ebp
call fcn.00401760
add esp, 0x20
mov ecx, dword [esp + 0x1f4]
push ecx
call fcn.00405c10
mov esi, eax
add esp, 4
test esi, esi
je 0x401c2c
push esi
push str.error__d_with_zipfile_in_unzCloseCurrentFile_n
call ebx
add esp, 8
jmp 0x401c2c
mov edx, dword [esp + 0x1f4]
push edx
call fcn.00405c10
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret