Function at 0x1006dbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
cmp byte [esi], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], ecx
je 0x1006dc05
cmp byte [esi + 1], 0
je 0x1006dc01
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov edx, dword [ebp - 0x24]
jmp 0x1006dc08
xor ebx, ebx
jmp 0x1006dc08
mov ebx, dword [esi + 0x20]
mov eax, dword [edi]
test al, 8
jne 0x1006dcc6
cmp dword [ecx], 0
jne 0x1006dc31
push esi
push 1
push 4
push ecx
mov ecx, edx
call sym.HncFoundation.dll_private:_unsigned_int___thiscall_CRepairZip::lufread_void___unsigned_int__unsigned_int__struct_CRepairZip::LUFILE_type__
mov ecx, dword [ebp - 8]
cmp eax, 1
je 0x1006dc34
or dword [edi], 0x40
jmp 0x1006dc34
add ebx, 0xfffffffc
cmp dword [ecx], 0x6054b50
jne 0x1006dccb
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push 1
push 0x12
push eax
call sym.HncFoundation.dll_private:_unsigned_int___thiscall_CRepairZip::lufread_void___unsigned_int__unsigned_int__struct_CRepairZip::LUFILE_type__
cmp eax, 1
je 0x1006dc5b
or dword [edi], 0x40
jmp 0x1006dccb
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
add ecx, 0xc
push eax
mov dword [ebp - 0xc], ecx
call fcn.1006ba90
cmp word [ebp - 0x10], 0
je 0x1006dccb
call fcn.1006bae0
mov ecx, dword [ebp - 0x24]
push esi
call sym.HncFoundation.dll_private:_long_int___thiscall_CRepairZip::luftell_struct_CRepairZip::LUFILE_type__
movzx edx, word [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
push 1
push edx
push dword [eax + 0x20]
call sym.HncFoundation.dll_private:_unsigned_int___thiscall_CRepairZip::lufread_void___unsigned_int__unsigned_int__struct_CRepairZip::LUFILE_type__
cmp eax, 1
je 0x1006dccb
mov ecx, dword [ebp - 0x24]
push esi
call sym.HncFoundation.dll_private:_long_int___thiscall_CRepairZip::luftell_struct_CRepairZip::LUFILE_type__
mov ecx, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
movzx edx, word [ecx + 0x10]
cmp edx, eax
je 0x1006dcbe
cmovl eax, edx
mov word [ecx + 0x10], ax
or dword [edi], 0x80
jmp 0x1006dccb
or eax, 0x20
mov dword [edi], eax
test byte [edi], 0xe0
je 0x1006dd4e
mov ecx, dword [ebp - 0x28]
mov eax, ebx
sub eax, dword [ecx + 0x18]
mov dword [ecx + 0x14], eax
cmp byte [esi], 0
je 0x1006dcfb
cmp byte [esi + 1], 0
je 0x1006dcfe
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ebx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1006dcfe
mov dword [esi + 0x20], ebx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x6054b50
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 8]
push 0
push eax
push 0x12
lea eax, [ebx + 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, word [ebx + 0x1c]
test ax, ax
je 0x1006dd4e
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebx + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi], 0
je 0x1006dd71
cmp byte [esi + 1], 0
je 0x1006dd6d
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
jmp 0x1006dd74
xor eax, eax
jmp 0x1006dd74
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x10]
jae 0x1006ddae
mov eax, dword [edi]
test al, 0x20
jne 0x1006dd86
or eax, 0x100
mov dword [edi], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006ddae
or dword [edi], 0x8000
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10