Function at 0x1c015640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1c03c020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push eax
push eax
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCR90.dll_fseek]
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
push edi
push 1
push 0x20
push str.HncZip_1.0_r_n
call ebx
mov eax, dword [esi + 0x30]
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
push edi
push 1
lea eax, [esp + 0x40]
push 0x10
sar esi, 2
push eax
mov dword [esp + 0x48], esi
mov byte [esp + 0x4c], 1
mov byte [esp + 0x4d], 0
call ebx
mov ebx, esi
shl ebx, 5
add esp, 0x2c
add ebx, 0x30
xor edi, edi
test esi, esi
jle 0x1c015730
jmp 0x1c0156d0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
mov dword [esp + 0xc], eax
sar edx, 2
cmp edi, edx
jb 0x1c0156f2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + edi*4]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0xc], ebx
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0xc], eax
sar ecx, 2
cmp edi, ecx
jb 0x1c01571d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + edi*4]
movsx ecx, word [eax + 0x24]
inc edi
cmp edi, esi
lea ebx, [ebx + ecx*2 + 2]
jl 0x1c0156d0
xor edi, edi
test esi, esi
jle 0x1c015801
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0xc], eax
sar ecx, 2
cmp edi, ecx
jb 0x1c01575c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
add esp, 0xc
sar ecx, 2
mov dword [esp + 0xc], eax
cmp edi, ecx
jb 0x1c015798
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0xc], eax
sar ecx, 2
cmp edi, ecx
jb 0x1c0157c7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + edi*4]
add eax, 0x10
cmp dword [eax + 0x18], 8
jb 0x1c0157db
mov eax, dword [eax + 4]
jmp 0x1c0157de
add eax, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push 1
lea ecx, [edx + edx + 2]
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
inc edi
add esp, 0x10
cmp edi, esi
jl 0x1c01573a
mov edx, dword [esp + 0x14]
push 0
push ebx
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
mov ecx, dword [esp + 0x38]
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 4