Function at 0x1006c270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x3d], bl
cmp byte [esi], 0
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x1006c2ce
cmp byte [esi + 1], 0
je 0x1006c2ca
push 1
push 0
push 0
push dword [esi + 4]
call edx
sub eax, dword [esi + 0xc]
mov edx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1006c2d1
xor eax, eax
jmp 0x1006c2d1
mov eax, dword [esi + 0x20]
inc eax
cmp eax, dword [esi + 0x10]
ja 0x1006c8c0
cmp byte [esi], 0
je 0x1006c2fa
cmp byte [esi + 1], 0
je 0x1006c2f6
push 1
push 0
push 0
push dword [esi + 4]
call edx
sub eax, dword [esi + 0xc]
jmp 0x1006c2fd
xor eax, eax
jmp 0x1006c2fd
mov eax, dword [esi + 0x20]
add eax, 4
cmp eax, dword [esi + 0x10]
ja 0x1006c887
cmp byte [esi], 0
je 0x1006c331
cmp byte [esi + 1], 0
je 0x1006c328
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
jmp 0x1006c334
mov dword [ebp - 0x48], 0
jmp 0x1006c337
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x48], eax
cmp byte [esi], 0
mov edi, 4
je 0x1006c362
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x50]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006c35d
mov byte [esi + 8], 1
mov edi, dword [ebp - 0x24]
jmp 0x1006c389
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
lea eax, [ecx + 4]
cmp eax, edx
jbe 0x1006c373
mov edi, edx
sub edi, ecx
mov eax, dword [esi + 0x18]
add eax, ecx
push edi
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add dword [esi + 0x20], edi
shr edi, 2
cmp edi, 1
jne 0x1006c84a
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
cmp eax, 0x2014b50
je 0x1006c8c9
cmp eax, 0x4034b50
je 0x1006c405
cmp eax, 0x6054b50
je 0x1006c8c9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1006c811
cmp byte [ebp - 0x3d], 0
je 0x1006c7f6
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, dword [ebp - 0x5c]
push edi
push esi
call sym.HncFoundation.dll_private:_bool___thiscall_CRepairZip::SearchDataDescriptor_struct_CRepairZip::LUFILE_type___int___unsigned_int___struct_zip_data_descriptor_pack_s__
test al, al
je 0x1006c7de
test ebx, ebx
je 0x1006c3fc
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov byte [ebp - 0x3d], 0
jmp 0x1006c2a3
cmp byte [esi], 0
je 0x1006c428
cmp byte [esi + 1], 0
je 0x1006c424
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
jmp 0x1006c42b
xor eax, eax
jmp 0x1006c42b
mov eax, dword [esi + 0x20]
add eax, 0x1a
cmp eax, dword [esi + 0x10]
jbe 0x1006c439
mov eax, dword [ebp - 0x44]
or dword [eax], 1
cmp byte [esi], 0
mov edi, 0x1a
je 0x1006c469
push 0
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006c45f
mov byte [esi + 8], 1
mov eax, 0x4ec4ec4f
mul dword [ebp - 0x28]
jmp 0x1006c49a
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
lea eax, [ebx + 0x1a]
cmp eax, ecx
jbe 0x1006c47a
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR120.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov dword [esi + 0x20], eax
mov eax, 0x4ec4ec4f
mul edi
shr edx, 3
cmp edx, 1
jne 0x1006c8ab
push 0x3c
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1006c4ec
push 0x3c
push 0
push edi
call sub.MSVCR120.dll_memset
push 0x2a
push 0
push edi
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call sub.MSVCR120.dll_memset
add esp, 0x18
jmp 0x1006c4ee
xor edi, edi
mov ebx, dword [ebp - 0x60]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], edi
mov eax, dword [ebx + 4]
cmp ecx, eax
jae 0x1006c52b
mov ecx, dword [ebx]
lea edx, [ebp - 0x54]
cmp ecx, edx
ja 0x1006c52b
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [ebx + 8]
jne 0x1006c51b
push ecx
mov ecx, ebx
call fcn.1002ee90
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x1006c541
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x1006c541
cmp eax, dword [ebx + 8]
jne 0x1006c538
push ecx
mov ecx, ebx
call fcn.1002ee90
mov eax, dword [ebx + 4]
test eax, eax
je 0x1006c541
mov dword [eax], edi
add dword [ebx + 4], 4
mov ebx, dword [ebx + 4]
mov ebx, dword [ebx - 4]
test ebx, ebx
je 0x1006c811
push 0x2a
push 0
push ebx
call sub.MSVCR120.dll_memset
movzx eax, word [ebp - 0x20]
add esp, 0xc
mov word [ebx + 2], ax
movzx eax, word [ebp - 0x1e]
mov word [ebx + 4], ax
movzx eax, word [ebp - 0x1c]
mov word [ebx + 6], ax
movzx eax, word [ebp - 0x1a]
mov word [ebx + 8], ax
movzx eax, word [ebp - 0x18]
mov word [ebx + 0xa], ax
mov eax, dword [ebp - 0x16]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
mov eax, dword [ebp - 0x12]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xe]
mov dword [ebx + 0x14], eax
movzx eax, word [ebp - 0xa]
mov word [ebx + 0x18], ax
movzx eax, word [ebp - 8]
mov word [ebx + 0x1a], ax
je 0x1006c5b6
mov byte [ebp - 0x3d], 0
jmp 0x1006c5ca
cmp dword [ebx + 0x10], 0
je 0x1006c5c2
mov byte [ebp - 0x3d], 0
jmp 0x1006c5ca
cmp dword [ebx + 0x14], 0
sete byte [ebp - 0x3d]
mov ax, word [ebp - 0xa]
test ax, ax
je 0x1006c698
cmp byte [esi], 0
movzx edi, ax
je 0x1006c5fd
cmp byte [esi + 1], 0
je 0x1006c5f9
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
jmp 0x1006c600
xor eax, eax
jmp 0x1006c600
mov eax, dword [esi + 0x20]
add eax, edi
cmp eax, dword [esi + 0x10]
jbe 0x1006c60d
mov eax, dword [ebp - 0x44]
or dword [eax], 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1006c61e
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
movzx eax, word [ebx + 0x18]
push eax
call fcn.1009427d
mov ecx, eax
add esp, 4
mov dword [ebx + 0x2c], ecx
cmp byte [esi], 0
movzx eax, word [ebp - 0xa]
mov dword [ebp - 0x58], ecx
mov edi, eax
mov dword [ebp - 0x4c], eax
je 0x1006c663
push 0
lea edx, [ebp - 0x2c]
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006c65a
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x2c]
xor edx, edx
div edi
jmp 0x1006c68f
mov edx, dword [esi + 0x20]
add eax, edx
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jbe 0x1006c673
mov edi, ecx
sub edi, edx
mov ecx, dword [esi + 0x18]
push edi
add ecx, edx
push ecx
push dword [ebp - 0x58]
call sub.MSVCR120.dll_memcpy
add dword [esi + 0x20], edi
mov eax, edi
xor edx, edx
add esp, 0xc
div dword [ebp - 0x4c]
cmp eax, 1
jne 0x1006c8ab
mov ax, word [ebp - 8]
test ax, ax
je 0x1006c766
cmp byte [esi], 0
movzx edi, ax
je 0x1006c6cb
cmp byte [esi + 1], 0
je 0x1006c6c7
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
jmp 0x1006c6ce
xor eax, eax
jmp 0x1006c6ce
mov eax, dword [esi + 0x20]
add eax, edi
cmp eax, dword [esi + 0x10]
jbe 0x1006c6db
mov eax, dword [ebp - 0x44]
or dword [eax], 1
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x1006c6ec
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
movzx eax, word [ebx + 0x1a]
push eax
call fcn.1009427d
mov ecx, eax
add esp, 4
mov dword [ebx + 0x30], ecx
cmp byte [esi], 0
movzx eax, word [ebp - 8]
mov dword [ebp - 0x58], ecx
mov edi, eax
mov dword [ebp - 0x4c], eax
je 0x1006c731
push 0
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006c728
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x30]
xor edx, edx
div edi
jmp 0x1006c75d
mov edx, dword [esi + 0x20]
add eax, edx
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jbe 0x1006c741
mov edi, ecx
sub edi, edx
mov ecx, dword [esi + 0x18]
push edi
add ecx, edx
push ecx
push dword [ebp - 0x58]
call sub.MSVCR120.dll_memcpy
add dword [esi + 0x20], edi
mov eax, edi
xor edx, edx
add esp, 0xc
div dword [ebp - 0x4c]
cmp eax, 1
jne 0x1006c8ab
mov eax, 1
mov word [ebx + 0x1e], ax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x26], eax
mov ax, word [ebp - 0x20]
mov word [ebx], ax
cmp byte [esi], 0
mov ecx, dword [ebp - 0x12]
mov edi, ecx
je 0x1006c7a7
cmp byte [esi + 1], 0
je 0x1006c7a3
push 1
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x12]
jmp 0x1006c7aa
xor eax, eax
jmp 0x1006c7aa
mov eax, dword [esi + 0x20]
add eax, edi
cmp eax, dword [esi + 0x10]
ja 0x1006c82f
cmp byte [esi], 0
mov edi, dword [ebp - 0x44]
je 0x1006c7d6
cmp byte [esi + 1], 0
je 0x1006c2a3
push 1
push 0
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1006c2a3
add dword [esi + 0x20], ecx
jmp 0x1006c2a3
or dword [edi], 8
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 eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
or dword [eax], 8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffff
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
or dword [eax], 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x48]
test eax, eax
mov eax, dword [ebp - 0x44]
jne 0x1006c86f
pop edi
pop esi
mov dword [eax], 0xffff
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
or dword [eax], 1
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
cmp dword [ebp - 0x48], 0
jne 0x1006c8a8
mov dword [edi], 0xffff
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
or dword [edi], 1
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
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