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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 0x25c]
push 0x100
lea ecx, [ebp - 0x15c]
push eax
push ecx
push edi
call fcn.004a5880
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4d6a40
push esi
push str.error__d_with_zipfile_in_unzGetCurrentFileInfo_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
mov eax, esi
lea esp, [ebp - 0x3ec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2000
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4d6a75
push str.Error_allocating_memory_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov eax, 0xffffff98
lea esp, [ebp - 0x3ec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x25c]
lea edx, [ebp - 0x25c]
test al, al
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x25c]
je 0x4d6aa7
cmp al, 0x2f
je 0x4d6a96
cmp al, 0x5c
jne 0x4d6a9c
lea edx, [ecx + 1]
mov dword [ebp - 4], edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4d6a8e
mov edx, dword [ebp - 4]
cmp byte [edx], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
jne 0x4d6b74
test ecx, ecx
jne 0x4d6e96
lea ecx, [ebp - 0x25c]
push ecx
push str.creating_directory:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
mov eax, dword [ebp + 0x18]
add esp, 8
lea edx, [ebp - 0x25c]
lea ecx, [ebp - 0x10c]
push edx
push eax
push 0x4f65d8
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov cl, byte [ebp - 0x10c]
add esp, 0x14
test cl, cl
lea eax, [ebp - 0x10c]
je 0x4d6b17
cmp byte [eax], 0x2f
jne 0x4d6b0f
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d6b07
lea edx, [ebp - 0x10c]
test edx, edx
jne 0x4d6b2e
xor eax, eax
push eax
call fcn.00435320
jmp 0x4d6e93
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.004d7fa0
mov ebx, esp
push edi
push ebx
lea ecx, [ebp - 0x10c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, ebx
push eax
call fcn.00435320
jmp 0x4d6e93
test ecx, ecx
jne 0x4d6b83
lea ebx, [ebp - 0x25c]
mov dword [ebp - 8], ebx
jmp 0x4d6b88
mov dword [ebp - 8], edx
mov ebx, edx
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call fcn.004a6310
mov esi, eax
add esp, 8
test esi, esi
je 0x4d6bae
mov edi, dword [sym.imp.MSVCRT.dll_printf]
push esi
push str.error__d_with_zipfile_in_unzOpenCurrentFilePassword_n
call edi
add esp, 8
jmp 0x4d6bb4
mov edi, dword [sym.imp.MSVCRT.dll_printf]
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x4d6c92
test esi, esi
jne 0x4d6e8a
mov eax, dword [ebp + 0x18]
push ebx
push eax
push 0x4f65d8
lea ecx, [ebp - 0x10c]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x10c]
push 0x4f73c4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
test eax, eax
je 0x4d6c9a
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebx
push str.The_file__s_exists._Overwrite____y_es___n_o___A_ll:
call edi
mov esi, dword [sym.imp.MSVCRT.dll_scanf]
add esp, 8
lea eax, [ebp - 0x2dc]
push eax
push 0x51143c
call esi
add esp, 8
cmp eax, 1
jne 0x4d6c73
mov al, byte [ebp - 0x2dc]
cmp al, 0x61
jl 0x4d6c42
cmp al, 0x7a
jg 0x4d6c42
sub al, 0x20
cmp al, 0x59
je 0x4d6c7b
cmp al, 0x4e
je 0x4d6e6b
cmp al, 0x41
je 0x4d6c7b
push ebx
push str.The_file__s_exists._Overwrite____y_es___n_o___A_ll:
call edi
add esp, 8
lea ecx, [ebp - 0x2dc]
push ecx
push 0x51143c
call esi
add esp, 8
cmp eax, 1
je 0x4d6c32
push 1
call dword [sym.imp.MSVCRT.dll_exit]
cmp al, 0x4e
je 0x4d6e6b
cmp al, 0x41
jne 0x4d6c9a
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x4d6c9a
test esi, esi
jne 0x4d6e8a
mov esi, dword [ebp + 0x18]
push ebx
push esi
push 0x4f65d8
lea eax, [ebp - 0x10c]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [ebp - 0x10c]
push 0x50a3b4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x4d6db8
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4d6da0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x25c]
cmp eax, ecx
je 0x4d6da0
mov bl, byte [eax - 1]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x3df]
mov byte [ebp - 0x3e0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x3e0]
push eax
push esi
push str._s_s_
push 0x103
push ecx
mov byte [edx - 1], 0
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x3e0]
add esp, 0x14
test edx, edx
jne 0x4d6d41
xor edi, edi
jmp 0x4d6d7a
lea eax, [ebp - 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004d7fa0
mov edi, esp
push esi
push edi
lea ecx, [ebp - 0x3e0]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.00435320
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x10c]
push 0x50a3b4
push eax
mov byte [edx - 1], bl
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [ebp - 8]
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4d6db8
push ebx
push str.error_opening__s_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x4d6e65
push ebx
push str._extracting:__s_n
call dword [sym.imp.MSVCRT.dll_printf]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push 0x2000
push ecx
push edx
call fcn.004a6330
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x4d6e0f
jle 0x4d6e31
push edi
push 1
push esi
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x4d6e20
mov eax, dword [ebp + 8]
push 0x2000
push esi
push eax
call fcn.004a6330
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x4d6ddf
push esi
push str.error__d_with_zipfile_in_unzReadCurrentFile_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x4d6e31
push str.error_in_writing_extracted_file_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
or esi, 0xffffffff
test edi, edi
je 0x4d6e3f
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
jne 0x4d6e8a
sub esp, 0x18
mov ecx, 6
lea esi, [ebp - 0x124]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14c]
push ecx
push ebx
call fcn.004d6950
add esp, 0x20
mov edi, dword [sym.imp.MSVCRT.dll_printf]
mov edx, dword [ebp + 8]
push edx
call fcn.004a65d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d6e96
push esi
push str.error__d_with_zipfile_in_unzCloseCurrentFile_n
call edi
add esp, 8
jmp 0x4d6e96
mov eax, dword [ebp + 8]
push eax
call fcn.004a65d0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
lea esp, [ebp - 0x3ec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret