Function at 0x1007cc7
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push esi
push 1
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
jne 0x1007d0d
xor eax, eax
jmp 0x10081dc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x1007d32
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1007d06
push edi
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
jne 0x1007d5a
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
xor eax, eax
jmp 0x10081db
xor ecx, ecx
cmp byte [edi], 0x74
mov esi, 0xff00
jne 0x1007d97
cmp byte [edi + 1], 0x74
jne 0x1007d97
cmp byte [edi + 2], 0x63
jne 0x1007d97
cmp byte [edi + 3], 0x66
jne 0x1007d97
mov eax, dword [edi + 0xc]
mov ecx, eax
shl ecx, 0x10
mov edx, eax
and edx, esi
add ecx, edx
mov edx, eax
shr edx, 8
shl ecx, 8
and edx, esi
add ecx, edx
shr eax, 0x18
add ecx, eax
add edi, ecx
movzx eax, word [edi + 4]
mov ecx, eax
shr ax, 8
shl ecx, 8
add cx, ax
movzx eax, cx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x30], eax
test ax, ax
je 0x10081af
and dword [ebp + 8], 0
xor ecx, ecx
add edi, 0xc
cmp cx, ax
jae 0x10081af
mov al, byte [edi]
cmp al, 0x6d
jne 0x1007e22
cmp byte [edi + 1], 0x61
jne 0x1007e22
cmp byte [edi + 2], 0x78
jne 0x1007e22
cmp byte [edi + 3], 0x70
jne 0x1007e22
mov eax, dword [edi + 8]
mov ecx, eax
mov edx, eax
and edx, esi
shl ecx, 0x10
add ecx, edx
mov edx, eax
shr edx, 8
and edx, esi
add edx, dword [ebp - 0xc]
shl ecx, 8
shr eax, 0x18
add edx, ecx
add eax, edx
movzx eax, word [eax + 4]
mov ecx, eax
shr ax, 8
shl ecx, 8
add cx, ax
movzx eax, cx
mov dword [ebp - 0x24], eax
jmp 0x1008054
cmp al, 0x68
jne 0x1007e75
cmp byte [edi + 1], 0x65
jne 0x1007e75
cmp byte [edi + 2], 0x61
jne 0x1007e75
cmp byte [edi + 3], 0x64
jne 0x1007e75
mov eax, dword [edi + 8]
mov ecx, eax
mov edx, eax
and edx, esi
shl ecx, 0x10
add ecx, edx
mov edx, eax
shr edx, 8
and edx, esi
add edx, dword [ebp - 0xc]
shl ecx, 8
shr eax, 0x18
add edx, ecx
add eax, edx
movzx eax, word [eax + 0x32]
mov ecx, eax
shr ax, 8
shl ecx, 8
add cx, ax
movzx eax, cx
mov dword [ebp - 0x28], eax
jmp 0x1008054
cmp al, 0x6c
jne 0x1007eb5
cmp byte [edi + 1], 0x6f
jne 0x1007eb5
cmp byte [edi + 2], 0x63
jne 0x1007eb5
cmp byte [edi + 3], 0x61
jne 0x1007eb5
mov eax, dword [edi + 8]
mov ecx, eax
mov edx, eax
and edx, esi
shl ecx, 0x10
add ecx, edx
mov edx, eax
shr edx, 8
and edx, esi
add edx, dword [ebp - 0xc]
shl ecx, 8
shr eax, 0x18
add edx, ecx
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x1008054
cmp al, 0x63
jne 0x1008054
cmp byte [edi + 1], 0x6d
jne 0x1008054
cmp byte [edi + 2], 0x61
jne 0x1008054
cmp byte [edi + 3], 0x70
jne 0x1008054
mov eax, dword [edi + 8]
mov ecx, eax
shl ecx, 0x10
mov edx, eax
and edx, esi
add ecx, edx
and dword [ebp + 8], 0
mov edx, eax
shr edx, 8
and edx, esi
add edx, dword [ebp - 0xc]
shl ecx, 8
add edx, ecx
shr eax, 0x18
add eax, edx
movzx ecx, word [eax + 2]
mov edx, ecx
shl edx, 8
shr cx, 8
add dx, cx
movzx edx, dx
xor ebx, ebx
mov dword [ebp - 0x1c], edx
lea ecx, [eax + 4]
cmp bx, dx
jae 0x1008054
movzx edx, word [ecx + 2]
mov ebx, edx
shl ebx, 8
shr dx, 8
add bx, dx
movzx edx, bx
mov dword [ebp - 0x20], edx
movzx edx, word [ecx]
mov ebx, edx
shl ebx, 8
shr dx, 8
add bx, dx
cmp bx, 3
jne 0x1007f5e
cmp word [ebp - 0x20], 1
je 0x1007f73
cmp word [ebp - 0x20], 0
je 0x1007f73
mov dx, word [ebp - 0x1c]
add ecx, 8
inc dword [ebp + 8]
cmp word [ebp + 8], dx
jb 0x1007f25
jmp 0x1008054
mov ebx, dword [ecx + 4]
mov ecx, ebx
shl ecx, 0x10
mov edx, ebx
and edx, esi
add ecx, edx
mov edx, ebx
shr edx, 8
shl ecx, 8
and edx, esi
add edx, eax
add edx, ecx
shr ebx, 0x18
add ebx, edx
movzx eax, word [ebx]
mov ecx, eax
shl ecx, 8
shr ax, 8
add cx, ax
cmp cx, 4
jne 0x1008054
movzx eax, word [ebx + 6]
mov ecx, eax
shl eax, 8
shr ecx, 8
add ecx, eax
sar ecx, 1
dec ecx
movzx eax, cx
mov dword [ebp - 8], eax
movzx eax, ax
imul eax, eax, 6
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10081af
movzx ecx, word [ebp - 8]
and dword [ebp - 0x14], 0
test ecx, ecx
jle 0x1008054
lea edx, [ebx + ecx*4 + 0x14]
lea ecx, [ebx + ecx*2 + 0x12]
add eax, 4
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ebx + ecx*2 + 0xe]
mov edx, ecx
shr cx, 8
shl edx, 8
add dx, cx
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
add dword [ebp - 0x1c], 2
mov word [eax - 2], dx
mov edx, ecx
shr cx, 8
shl edx, 8
add dx, cx
mov ecx, dword [ebp - 0x20]
movzx ecx, word [ecx]
add dword [ebp - 0x20], 2
mov word [eax - 4], dx
mov edx, ecx
shr cx, 8
shl edx, 8
add dx, cx
movzx ecx, word [ebp - 8]
inc dword [ebp - 0x14]
mov word [eax], dx
add eax, 6
cmp dword [ebp - 0x14], ecx
jl 0x1007ffa
add edi, 0x10
inc dword [ebp + 8]
mov ax, word [ebp + 8]
cmp ax, word [ebp - 0x30]
jb 0x1007dcd
xor eax, eax
cmp word [ebp - 0x24], ax
je 0x10081af
mov edx, dword [ebp - 0x18]
cmp edx, eax
je 0x10081af
cmp word [ebp - 8], ax
je 0x10081af
cmp dword [ebp - 0x10], eax
je 0x10081af
mov dword [ebp - 0x20], 4
cmp word [ebp - 0x28], ax
jne 0x10080a6
mov dword [ebp - 0x20], 2
mov dword [ebp + 8], eax
xor eax, eax
jmp 0x100818f
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 0x10]
imul eax, eax, 6
add eax, ecx
movzx ecx, word [eax + 2]
movzx esi, word [eax]
mov dword [ebp - 0x30], ecx
cmp si, cx
ja 0x1008188
mov ax, word [eax + 4]
add ax, si
movzx edi, ax
cmp di, word [ebp - 0x24]
ja 0x100819b
movzx ecx, word [ebp - 0x20]
movzx eax, di
lea ebx, [eax + 1]
imul eax, ecx
imul ebx, ecx
cmp word [ebp - 0x28], 0
jne 0x1008104
mov ax, word [eax + edx]
cmp ax, word [ebx + edx]
jmp 0x100810a
mov eax, dword [eax + edx]
cmp eax, dword [ebx + edx]
je 0x1008179
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x1008135
inc dword [eax]
push 4
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x10081af
mov word [eax], si
mov word [eax + 2], si
jmp 0x1008179
mov eax, dword [eax]
lea ecx, [ecx + eax*4 - 2]
movzx edx, word [ecx]
movzx ebx, si
sub ebx, edx
cmp ebx, 1
jne 0x100814d
inc word [ecx]
jmp 0x1008179
mov ebx, dword [ebp + 0xc]
inc eax
mov dword [ebx], eax
je 0x10081af
shl eax, 2
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_realloc]
pop ecx
pop ecx
test eax, eax
je 0x10081af
mov ecx, dword [ebx]
mov word [eax + ecx*4 - 4], si
mov ecx, dword [ebx]
mov dword [ebp - 4], eax
mov word [eax + ecx*4 - 2], si
mov edx, dword [ebp - 0x18]
inc esi
inc edi
cmp si, word [ebp - 0x30]
jbe 0x10080d9
inc dword [ebp + 8]
mov ax, word [ebp + 8]
cmp ax, word [ebp - 8]
jb 0x10080b0
jmp 0x10081af
cmp dword [ebp - 4], 0
je 0x10081ab
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x10], 0
je 0x10081d8
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8