Function at 0x100140c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027456
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x10037018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push 0x100
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x1a0]
push 0
push edx
mov dword [ebp - 0x138], eax
call fcn.10017750
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10014130
push edi
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x100142ec
push 0x2000
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x10014160
push str.Error_allocating_memory_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, 0xffffff98
jmp 0x100142ee
mov eax, ebx
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014180
sub eax, edx
mov esi, eax
mov eax, ebx
lea ecx, [ebp - 0x12c]
call fcn.10001c80
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100141a8
sub eax, edx
push eax
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0x12c]
call fcn.10003a50
cmp dword [ebp - 0x118], 0x10
mov eax, dword [ebp - 0x12c]
jae 0x100141d8
lea eax, [ebp - 0x12c]
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
mov al, byte [ebp - 0x110]
add esp, 0xc
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x13c], ecx
test al, al
je 0x10014228
cmp al, 0x2f
je 0x1001420c
cmp al, 0x5c
jne 0x10014215
lea edx, [ecx + 1]
mov dword [ebp - 0x13c], edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10014204
mov eax, dword [ebp - 0x13c]
cmp byte [eax], 0
jne 0x10014256
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x100142c3
lea ecx, [ebp - 0x110]
push ecx
push str.creating_directory:__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
lea eax, [ebp - 0x110]
call fcn.10013f30
jmp 0x100142c3
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x10014264
lea eax, [ebp - 0x110]
mov ecx, eax
push ecx
mov dword [ebp - 0x134], eax
call sym.libBasic.dll_public:_static_wchar_t____cdecl_BASUtilityString::ConvertUtf8ToUnicode_char_const__
mov ebx, eax
add esp, 4
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x148], ebx
mov edx, dword [ebp - 0x138]
push edx
mov byte [ebp - 4], 1
call fcn.10017f60
mov edi, eax
test edi, edi
je 0x1001430a
push edi
push str.error__d_with_zipfile_in_unzOpenCurrentFilePassword_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov ebx, dword [ebp - 0x138]
call fcn.100183c0
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x140]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x100142ec
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.MSVCR100.dll__wfopen]
push 0x1002aad8
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10014388
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x1001436e
mov esi, dword [ebp - 0x13c]
lea ecx, [ebp - 0x110]
cmp esi, ecx
je 0x1001436e
mov dl, byte [esi - 1]
mov eax, dword [ebp - 0x134]
push eax
mov byte [ebp - 0x12d], dl
mov byte [esi - 1], 0
call fcn.10013f60
mov cl, byte [ebp - 0x12d]
add esp, 4
push 0x1002aad8
push ebx
mov byte [esi - 1], cl
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x10014388
mov edx, dword [ebp - 0x134]
push edx
push str.error_opening__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x10014446
mov eax, dword [ebp - 0x134]
push eax
push str._extracting:__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
lea ecx, [ecx]
mov ebx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x138]
push ebx
call fcn.10018140
mov edi, eax
test edi, edi
js 0x1001446f
jle 0x100143e2
push esi
push 1
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x100143a0
push str.error_in_writing_extracted_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
or edi, 0xffffffff
test esi, esi
je 0x100143f0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test edi, edi
jne 0x100142a8
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x15c]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x158]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x154]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x150]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x14c]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x190]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x134]
call fcn.10013ea0
add esp, 0x18
mov ebx, dword [ebp - 0x138]
call fcn.100183c0
mov edi, eax
test edi, edi
je 0x100142b3
push edi
push str.error__d_with_zipfile_in_unzCloseCurrentFile_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x100142b3
push edi
push str.error__d_with_zipfile_in_unzReadCurrentFile_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x100143e2