Function at 0x1011d810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101884b6
mov eax, dword fs:[0]
push eax
mov eax, 0x26c0
call fcn.101790f0
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x2668], edi
mov dword [ebp - 0x266c], eax
mov dword [ebp - 0x2664], ecx
test edi, edi
je 0x1011df6b
test eax, eax
je 0x1011df6b
mov eax, edi
call fcn.1011eda0
mov esi, eax
mov dword [ebp - 0x2650], esi
test esi, esi
jne 0x1011d896
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push edx
push ecx
push edi
push ecx
push str.Error:_file__1_open_failed_
push eax
jmp 0x1011df80
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x2678], edi
mov dword [ebp - 0x2674], ecx
call fcn.1011f2d0
xor ebx, ebx
mov dword [ebp - 0x2654], ebx
push 0x4c
lea edx, [ebp - 0x26c8]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x613]
push 0
push eax
mov byte [ebp - 0x614], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x26cc]
push 0
push ecx
mov eax, esi
call fcn.1011f030
add esp, 0x10
test eax, eax
jne 0x1011da32
add ebx, dword [ebp - 0x26b0]
call fcn.1011f310
test eax, eax
je 0x1011d8b5
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ebx
push ecx
push str.____________unzip_total_size__________
push edx
mov dword [ebp - 0x2658], ebx
call fcn.10035c90
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
call fcn.1011f2d0
mov dword [ebp - 0x2660], 0
test edi, edi
je 0x1011de11
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x26cc]
push 0
push edx
mov eax, esi
call fcn.1011f030
add esp, 0x10
test eax, eax
jne 0x1011de1d
lea eax, [ebp - 0x414]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1011d9a0
sub eax, edx
mov dword [ebp - 0x2670], eax
mov eax, dword [ebp - 0x266c]
lea ecx, [ebp - 0x2630]
call fcn.1000ba40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2620]
lea eax, [ecx - 1]
cmp ecx, eax
jbe 0x1011de59
cmp dword [ebp - 0x261c], 8
mov ecx, dword [ebp - 0x2630]
jae 0x1011d9ed
lea ecx, [ebp - 0x2630]
movzx eax, word [ecx + eax*2]
xor bl, bl
cmp eax, 0x2f
je 0x1011da91
cmp eax, 0x5c
je 0x1011da91
push 1
push 0x101a37bc
lea eax, [ebp - 0x2630]
push eax
call fcn.1005e8a0
cmp eax, 0xffffffff
je 0x1011da80
lea ecx, [ebp - 0x2630]
push ecx
mov eax, 0x101a37bc
call fcn.1000f0b0
mov bl, 1
jmp 0x1011da91
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
push ecx
push str._file_info_failed.
push ecx
lea eax, [ebp - 0x614]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Error_:_get
push ecx
call fcn.10035c90
add esp, 0xc
push eax
call fcn.10035c90
add esp, 0xc
push eax
call fcn.10035c90
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.1011eff0
jmp 0x1011df99
lea edx, [ebp - 0x2630]
push edx
mov eax, 0x101a37b0
call fcn.1000f0b0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10124806
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x414]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1011dae1
push edi
push esi
sub eax, ecx
push eax
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
lea ecx, [ebp - 0x264c]
call fcn.1000ba40
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0
lea edx, [ebp - 0x264c]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2630]
call fcn.1000aef0
test bl, bl
je 0x1011db88
push 1
lea eax, [ebp - 0x265c]
push eax
lea ecx, [ebp - 0x2630]
mov esi, 0x2f
push ecx
mov dword [ebp - 0x265c], esi
call fcn.1005e8a0
cmp eax, 0xffffffff
je 0x1011db88
mov dword [ebp - 0x265c], esi
nop
push 1
push eax
lea eax, [ebp - 0x2630]
call fcn.1011dfc0
push 1
lea edx, [ebp - 0x265c]
push edx
lea eax, [ebp - 0x2630]
push eax
call fcn.1005e8a0
cmp eax, 0xffffffff
jne 0x1011db60
mov ecx, dword [ebp - 0x2670]
mov al, byte [ebp + ecx - 0x415]
cmp al, 0x5c
je 0x1011dce9
cmp al, 0x2f
je 0x1011dce9
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
push ecx
lea eax, [ebp - 0x414]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.file_:
push ecx
call fcn.10035c90
add esp, 0xc
push eax
call fcn.10035c90
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, dword [ebp - 0x2650]
mov ecx, esi
call fcn.1011f5b0
test eax, eax
jne 0x1011de64
lea edx, [ebp - 0x2630]
push edx
call fcn.1011d5f0
mov eax, dword [ebp - 0x2630]
add esp, 4
cmp dword [ebp - 0x261c], 8
jae 0x1011dc13
lea eax, [ebp - 0x2630]
push 0x101b9cdc
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x1011deb9
xor ebx, ebx
mov edi, edi
mov ecx, dword [ebp - 0x2650]
lea eax, [ebp - 0x2614]
push eax
push ecx
call fcn.1011f760
mov esi, eax
add esp, 8
test esi, esi
js 0x1011def9
push edi
jle 0x1011dcdb
push 1
lea edx, [ebp - 0x2614]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add dword [ebp - 0x2654], esi
mov eax, fcn.1002ecb0
add esp, 0x10
test eax, eax
je 0x1011dc30
inc ebx
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x32
mov edx, ebx
sub edx, ecx
je 0x1011dca2
mov eax, dword [ebp - 0x2658]
cmp dword [ebp - 0x2654], eax
jne 0x1011dc30
cmp dword [ebp - 0x2638], 8
mov eax, dword [ebp - 0x264c]
jae 0x1011dcb7
lea eax, [ebp - 0x264c]
mov ecx, dword [ebp - 0x2664]
mov edx, dword [ebp - 0x2658]
push ecx
mov ecx, dword [ebp - 0x2654]
push 0
push edx
push 0
push ecx
push eax
call fcn.1002ecb0
jmp 0x1011dc30
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
jmp 0x1011ddad
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
push edx
push ecx
lea eax, [ebp - 0x2630]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push str.dir_:
push ecx
call fcn.1011e330
add esp, 0xc
push eax
call fcn.1011e590
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea edx, [ebp - 0x2630]
push edx
call fcn.1011d5f0
mov esi, eax
add esp, 4
test esi, esi
jns 0x1011ddad
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push eax
push ecx
lea ecx, [ebp - 0x2630]
push ecx
push ecx
push str.Error:_create_dir_failed.
push edx
call fcn.1011e330
add esp, 0xc
push eax
call fcn.1011e590
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
cmp esi, 0x11
jne 0x1011dd85
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push str.Error:_Directory_was_not_created_because_dirname_is_the_name_of_an_existing_file__directory__or_device.
push ecx
jmp 0x1011dd9d
cmp esi, 2
jne 0x1011ddad
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push edx
push ecx
push str.Error:_Path_was_not_found.
push eax
call fcn.1011e330
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [ebp - 0x2650]
push ecx
call fcn.1011f9e0
mov edi, dword [ebp - 0x2660]
mov ebx, dword [ebp - 0x2678]
inc edi
add esp, 4
cmp edi, ebx
jae 0x1011dde0
mov esi, dword [ebp - 0x2650]
call fcn.1011f310
test eax, eax
jne 0x1011df47
lea esi, [ebp - 0x264c]
call fcn.1000ba80
lea esi, [ebp - 0x2630]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ba80
mov esi, dword [ebp - 0x2650]
mov dword [ebp - 0x2660], edi
cmp edi, ebx
jb 0x1011d951
call fcn.1011eff0
mov al, 1
jmp 0x1011df9b
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [ebp - 0x2668]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push edx
push eax
push str.Error:_could_not_read_file_info.
push ecx
call fcn.10035c90
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.1011eff0
jmp 0x1011df99
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
push ecx
lea eax, [ebp - 0x414]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Error:_could_not_open_file_in_zip.
push ecx
call fcn.10035c90
add esp, 0xc
push eax
call fcn.10035c90
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.1011eff0
lea esi, [ebp - 0x264c]
call fcn.1000ba80
lea esi, [ebp - 0x2630]
call fcn.1000ba80
jmp 0x1011df99
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
push edx
push ecx
lea eax, [ebp - 0x2630]
push eax
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push str.Error:_could_not_open_destination_file.
push ecx
call fcn.1011e330
add esp, 0xc
push eax
call fcn.1011e590
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push esi
call fcn.1011f9e0
add esp, 4
jmp 0x1011de99
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push edx
push esi
push str.Error:
push eax
call fcn.1011e330
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov esi, dword [ebp - 0x2650]
push esi
call fcn.1011f9e0
add esp, 4
call fcn.1011eff0
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
jmp 0x1011de9e
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push ecx
push ecx
push edx
call fcn.1011e7c0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x1011de99
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t____]
push eax
push ecx
push edi
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
push str.Error:_file__1_is_not_exist_
push ecx
call fcn.1011e330
add esp, 0xc
push eax
call fcn.1011e330
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret