Function at 0x1006a400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
movdqa xmmword [esp + 0x4c], xmm0
movdqa xmmword [esp + 0x2c], xmm0
movdqa xmmword [esp + 0x3c], xmm0
call dword [sym.imp.MSVCR120.dll_fseek]
push edi
push 1
lea eax, [esp + 0x64]
push 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x1c
lea ecx, [esp + 0x50]
mov edx, 0x100bb948
mov esi, 0x1c
jmp 0x1006a470
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1006a627
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1006a470
push edi
push 1
lea eax, [esp + 0x48]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov dword [esp + 0x18], 0
cmp dword [esp + 0x40], 0
jle 0x1006a607
mov esi, 0x30
mov dword [esp + 0xc], esi
push 0x28
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1006a4db
xor eax, eax
mov dword [edi + 0x24], 7
mov dword [edi + 0x20], 0
mov word [edi + 0x10], ax
jmp 0x1006a4dd
xor edi, edi
push 0
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCR120.dll_fseek]
push 0x208
lea eax, [esp + 0x80]
push 0
push eax
call sub.MSVCR120.dll_memset
push esi
push 1
lea eax, [esp + 0x40]
push 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fread]
push 0
push dword [esp + 0x58]
push esi
call dword [sym.imp.MSVCR120.dll_fseek]
movsx eax, word [esp + 0x64]
push esi
push 1
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.MSVCR120.dll_fread]
mov al, byte [esp + 0x64]
add esp, 0x44
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
cmp word [esp + 0x70], 0
jne 0x1006a568
xor eax, eax
jmp 0x1006a57f
lea eax, [esp + 0x70]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a570
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [edi + 0x10]
call fcn.1002a950
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov esi, dword [eax + 0x2c]
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x1006a5cd
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
cmp ecx, edx
ja 0x1006a5cd
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x1006a5bd
push ecx
mov ecx, esi
call fcn.1002ee90
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1006a5e3
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1006a5e3
cmp eax, dword [esi + 8]
jne 0x1006a5da
push ecx
mov ecx, esi
call fcn.1002ee90
mov eax, dword [esi + 4]
test eax, eax
je 0x1006a5e3
mov dword [eax], edi
add dword [esi + 4], 4
mov esi, dword [esp + 0x18]
add dword [esp + 0xc], 0x20
inc esi
cmp esi, dword [esp + 0x40]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xc]
jl 0x1006a4b4
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0x4001
call sym.HncFoundation.dll_private:_void___thiscall_CHncZIP::_AddError_int__int_
mov ecx, dword [esp + 0x27c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4