Function at 0x10145730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x101c1b88]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10144380
add esp, 0x20
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x101457b3
mov eax, dword [ebp - 0x16c]
push eax
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call fcn.1011ed45
add esp, 8
mov eax, dword [ebp - 0x16c]
jmp 0x10145c42
mov dword [ebp - 0xc], 0x2000
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1011a99a
add esp, 4
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x101457ec
push str.Error_allocating_memory_n
call fcn.1011ed45
add esp, 4
mov eax, 0xffffff98
jmp 0x10145c42
lea edx, [ebp - 0x110]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x10145838
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x10145821
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x1014582d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10145801
mov eax, dword [ebp - 0x164]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10145875
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x10145870
lea eax, [ebp - 0x110]
push eax
push str.creating_directory:__s_n
call fcn.1011ed45
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.101454e0
add esp, 4
jmp 0x10145c2d
mov dword [ebp - 0x174], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x10145895
lea eax, [ebp - 0x110]
mov dword [ebp - 0x178], eax
jmp 0x101458a1
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10144fb0
add esp, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x101458d0
mov eax, dword [ebp - 0x16c]
push eax
push str.error__d_with_zipfile_in_unzOpenCurrentFile_n
call fcn.1011ed45
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x10145912
mov ecx, dword [ebp + 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x10145912
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10144f90
add esp, 8
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x10145912
mov edx, dword [ebp + 8]
push edx
call fcn.10142b70
add esp, 4
xor eax, eax
jmp 0x10145c42
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x10145a0c
cmp dword [ebp - 0x16c], 0
jne 0x10145a0c
push 0x101c35f4
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.1011ae28
add esp, 8
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x101459e1
mov edx, dword [ebp - 0x17c]
push edx
call fcn.1011ace8
add esp, 4
mov eax, dword [ebp - 0x178]
push eax
push str.The_file__s_exist._Overwrite____y_es___n_o___A_ll:
call fcn.1011ed45
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
push 0x101c362c
call fcn.10121536
add esp, 8
mov dl, byte [ebp - 0x200]
mov byte [ebp - 0x17d], dl
movsx eax, byte [ebp - 0x17d]
cmp eax, 0x61
jl 0x101459bd
movsx ecx, byte [ebp - 0x17d]
cmp ecx, 0x7a
jg 0x101459bd
movsx edx, byte [ebp - 0x17d]
sub edx, 0x20
mov byte [ebp - 0x17d], dl
movsx eax, byte [ebp - 0x17d]
cmp eax, 0x59
je 0x101459e1
movsx ecx, byte [ebp - 0x17d]
cmp ecx, 0x4e
je 0x101459e1
movsx edx, byte [ebp - 0x17d]
cmp edx, 0x41
jne 0x10145961
movsx eax, byte [ebp - 0x17d]
cmp eax, 0x4e
jne 0x101459f7
mov dword [ebp - 0x174], 1
movsx ecx, byte [ebp - 0x17d]
cmp ecx, 0x41
jne 0x10145a0c
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
cmp dword [ebp - 0x174], 0
jne 0x10145acf
cmp dword [ebp - 0x16c], 0
jne 0x10145acf
push 0x101c3630
mov eax, dword [ebp - 0x178]
push eax
call fcn.1011ae28
add esp, 8
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x10145ab2
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x10145ab2
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x110]
cmp edx, eax
je 0x10145ab2
mov ecx, dword [ebp - 0x164]
mov dl, byte [ecx - 1]
mov byte [ebp - 0x201], dl
mov eax, dword [ebp - 0x164]
mov byte [eax - 1], 0
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.10145590
add esp, 4
mov edx, dword [ebp - 0x164]
mov al, byte [ebp - 0x201]
mov byte [edx - 1], al
push 0x101c3634
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.1011ae28
add esp, 8
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jne 0x10145acf
mov edx, dword [ebp - 0x178]
push edx
push str.error_opening__s_n
call fcn.1011ed45
add esp, 8
cmp dword [ebp - 0x170], 0
je 0x10145be7
mov eax, dword [ebp - 0x178]
push eax
push str._extracting:__s_n
call fcn.1011ed45
add esp, 8
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10142f60
add esp, 0xc
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
jge 0x10145b2c
mov ecx, dword [ebp - 0x16c]
push ecx
push str.error__d_with_zipfile_in_unzReadCurrentFile_n
call fcn.1011ed45
add esp, 8
jmp 0x10145b7f
cmp dword [ebp - 0x16c], 0
jle 0x10145b72
mov edx, dword [ebp - 0x170]
push edx
push 1
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.1011f045
add esp, 0x10
cmp eax, 1
je 0x10145b72
push str.error_in_writing_extracted_file_n
call fcn.1011ed45
add esp, 4
mov dword [ebp - 0x16c], 0xffffffff
jmp 0x10145b7f
cmp dword [ebp - 0x16c], 0
jg 0x10145af0
mov edx, dword [ebp - 0x170]
push edx
call fcn.1011ace8
add esp, 4
cmp dword [ebp - 0x16c], 0
jne 0x10145be7
sub esp, 0x18
mov eax, esp
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
mov edx, dword [ebp - 0x124]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x120]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x11c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x118]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x114]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x178]
push ecx
call fcn.10145510
add esp, 0x20
cmp dword [ebp - 0x16c], 0
jne 0x10145c21
mov edx, dword [ebp + 8]
push edx
call fcn.10142a80
add esp, 4
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x10145c1f
mov eax, dword [ebp - 0x16c]
push eax
push str.error__d_with_zipfile_in_unzCloseCurrentFile_n
call fcn.1011ed45
add esp, 8
jmp 0x10145c2d
mov ecx, dword [ebp + 8]
push ecx
call fcn.10142a80
add esp, 4
mov edx, dword [ebp - 0x168]
push edx
call fcn.1011a8bd
add esp, 4
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011a380
mov esp, ebp
pop ebp
ret