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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x34], edi
jne 0x100700a
xor eax, eax
jmp 0x10074c2
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x30], esi
jne 0x1007037
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10074c1
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x1007055
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x1007030
xor esi, esi
cmp byte [eax], 0x74
jne 0x1007095
cmp byte [eax + 1], 0x74
jne 0x1007095
cmp byte [eax + 2], 0x63
jne 0x1007095
cmp byte [eax + 3], 0x66
jne 0x1007095
mov edi, dword [eax + 0xc]
mov esi, edi
shl esi, 0x10
mov edx, edi
mov ecx, 0xff00
and edx, ecx
add esi, edx
xor edx, edx
mov dword [ebp + 8], edi
mov dh, byte [ebp + 0xa]
shl esi, 8
shr edi, 0x18
add esi, edx
add esi, edi
jmp 0x100709a
mov ecx, 0xff00
xor edx, edx
add eax, esi
mov dx, word [eax + 4]
mov dword [ebp - 0x10], eax
mov edi, edx
movzx dx, dh
shl edi, 8
add edi, edx
cmp di, bx
mov dword [ebp - 0x2c], edi
je 0x100749e
lea esi, [eax + 0xc]
mov dword [ebp + 8], ebx
jbe 0x100749e
mov al, byte [esi]
cmp al, 0x6d
jne 0x100711a
cmp byte [esi + 1], 0x61
jne 0x100711a
cmp byte [esi + 2], 0x78
jne 0x100711a
cmp byte [esi + 3], 0x70
jne 0x100711a
mov edx, dword [esi + 8]
mov eax, edx
shl eax, 0x10
mov edi, edx
mov dword [ebp - 8], edx
xor ebx, ebx
mov bh, byte [ebp - 6]
and edi, ecx
add eax, edi
shl eax, 8
add eax, dword [ebp - 0x10]
shr edx, 0x18
add eax, ebx
add edx, eax
movzx edx, word [edx + 4]
mov eax, edx
movzx dx, dh
shl eax, 8
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x1007341
cmp al, 0x68
jne 0x100716a
cmp byte [esi + 1], 0x65
jne 0x100716a
cmp byte [esi + 2], 0x61
jne 0x100716a
cmp byte [esi + 3], 0x64
jne 0x100716a
mov edx, dword [esi + 8]
mov eax, edx
shl eax, 0x10
mov edi, edx
mov dword [ebp - 8], edx
xor ebx, ebx
mov bh, byte [ebp - 6]
and edi, ecx
add eax, edi
shl eax, 8
add eax, dword [ebp - 0x10]
shr edx, 0x18
add eax, ebx
add edx, eax
movzx edx, word [edx + 0x32]
mov eax, edx
movzx dx, dh
shl eax, 8
add eax, edx
mov dword [ebp - 0x28], eax
jmp 0x1007341
cmp al, 0x6c
jne 0x10071ab
cmp byte [esi + 1], 0x6f
jne 0x10071ab
cmp byte [esi + 2], 0x63
jne 0x10071ab
cmp byte [esi + 3], 0x61
jne 0x10071ab
mov edx, dword [esi + 8]
mov eax, edx
shl eax, 0x10
mov edi, edx
mov dword [ebp - 8], edx
xor ebx, ebx
mov bh, byte [ebp - 6]
and edi, ecx
add eax, edi
shl eax, 8
add eax, dword [ebp - 0x10]
shr edx, 0x18
add eax, ebx
add edx, eax
mov dword [ebp - 0x24], edx
jmp 0x1007341
cmp al, 0x63
jne 0x1007341
cmp byte [esi + 1], 0x6d
jne 0x1007341
cmp byte [esi + 2], 0x61
jne 0x1007341
cmp byte [esi + 3], 0x70
jne 0x1007341
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov edx, eax
shl edx, 0x10
mov edi, eax
xor ebx, ebx
mov bh, byte [ebp - 6]
and edi, ecx
add edx, edi
shl edx, 8
add edx, dword [ebp - 0x10]
shr eax, 0x18
and dword [ebp - 8], 0
add edx, ebx
add eax, edx
mov edi, eax
xor eax, eax
mov ax, word [edi + 2]
mov dword [ebp - 0x18], edi
mov edx, eax
movzx ax, ah
shl edx, 8
add edx, eax
movzx edx, dx
test edx, edx
lea eax, [edi + 4]
mov dword [ebp - 0x1c], edx
jle 0x1007341
xor edx, edx
mov dx, word [eax + 2]
mov edi, edx
movzx dx, dh
shl edi, 8
add edi, edx
xor edx, edx
mov dx, word [eax]
mov ebx, edx
movzx dx, dh
shl ebx, 8
add ebx, edx
cmp bx, 3
jne 0x1007251
cmp di, 1
je 0x1007264
test di, di
je 0x1007264
add eax, 0x40
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1c]
jl 0x100721f
jmp 0x1007341
mov ebx, dword [eax + 4]
mov eax, ebx
shl eax, 0x10
mov edx, ebx
and edx, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dh, byte [ebp - 0x1a]
shl eax, 8
add eax, dword [ebp - 0x18]
shr ebx, 0x18
add eax, edx
add ebx, eax
xor eax, eax
mov ax, word [ebx]
mov edx, eax
movzx ax, ah
shl edx, 8
add edx, eax
cmp dx, 4
jne 0x1007341
movzx eax, word [ebx + 6]
mov ecx, eax
shl eax, 8
shr ecx, 8
add ecx, eax
sar ecx, 1
dec ecx
movzx edi, cx
lea eax, [edi + edi*2]
shl eax, 1
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x100749e
and dword [ebp - 8], 0
test edi, edi
jle 0x100733c
lea ecx, [ebx + edi*4 + 0x14]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + edi*2 + 0x12]
add eax, 4
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
movzx ecx, word [ebx + ecx*2 + 0xe]
mov edx, ecx
movzx cx, ch
shl edx, 8
add edx, ecx
mov ecx, dword [ebp - 0x18]
mov word [eax - 2], dx
movzx ecx, word [ecx]
mov edx, ecx
movzx cx, ch
add dword [ebp - 0x18], 2
shl edx, 8
add edx, ecx
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x1c], 2
mov word [eax - 4], dx
movzx ecx, word [ecx]
mov edx, ecx
movzx cx, ch
shl edx, 8
add edx, ecx
inc dword [ebp - 8]
mov word [eax], dx
add eax, 6
cmp dword [ebp - 8], edi
jl 0x10072e9
mov ecx, 0xff00
add esi, 0x10
inc dword [ebp + 8]
mov ax, word [ebp + 8]
cmp ax, word [ebp - 0x2c]
jb 0x10070c8
cmp word [ebp - 0x20], 0
je 0x100749e
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100749e
cmp word [ebp - 0x14], 0
je 0x100749e
cmp dword [ebp - 0xc], 0
je 0x100749e
xor eax, eax
cmp word [ebp - 0x28], ax
mov dword [ebp - 0x1c], 4
jne 0x1007396
mov dword [ebp - 0x1c], 2
cmp word [ebp - 0x14], ax
mov dword [ebp + 8], eax
jbe 0x100749e
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + eax*2]
lea edi, [ecx + eax*2]
mov si, word [edi]
mov dword [ebp - 0x18], edi
jmp 0x100746d
mov ax, word [edi + 4]
add ax, si
cmp ax, word [ebp - 0x20]
ja 0x100748a
movzx ecx, ax
movzx eax, word [ebp - 0x1c]
lea edx, [ecx + 1]
imul edx, eax
imul eax, ecx
cmp word [ebp - 0x28], 0
jne 0x10073ed
mov ax, word [eax + ebx]
cmp ax, word [edx + ebx]
jmp 0x10073f3
mov eax, dword [eax + ebx]
cmp eax, dword [edx + ebx]
je 0x100746c
mov ecx, dword [ebp - 4]
test ecx, ecx
mov eax, dword [ebp + 0xc]
jne 0x100741e
inc dword [eax]
push 4
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x100749e
mov word [eax], si
mov word [eax + 2], si
jmp 0x100746c
mov eax, dword [eax]
lea ecx, [ecx + eax*4 - 2]
xor edx, edx
mov dx, word [ecx]
movzx edi, si
movzx ebx, dx
sub edi, ebx
cmp edi, 1
jne 0x100743c
inc edx
mov word [ecx], dx
jmp 0x1007466
mov edi, dword [ebp + 0xc]
inc eax
mov dword [edi], eax
shl eax, 2
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x100749e
mov ecx, dword [edi]
mov word [eax + ecx*4 - 4], si
mov ecx, dword [edi]
mov word [eax + ecx*4 - 2], si
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
inc esi
cmp si, word [edi + 2]
jbe 0x10073bb
inc dword [ebp + 8]
mov ax, word [ebp + 8]
cmp ax, word [ebp - 0x14]
jb 0x10073a3
jmp 0x100749e
cmp dword [ebp - 4], 0
je 0x100749a
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
and dword [ebp - 4], 0
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0xc], 0
je 0x10074be
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 8