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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x1052320]
xor eax, dword [ebp + 4]
push esi
push 9
push 0x1f
mov dword [ebp - 4], eax
call fcn.0101e7fe
test eax, eax
jne 0x1016bf8
push 0x1001e08
mov esi, 0x10452d0
push esi
call fcn.01017628
push 0x1001db8
push esi
call fcn.01017628
push 0x1001d94
push esi
call fcn.01017628
xor eax, eax
add esp, 0x18
inc eax
jmp 0x10172bc
xor eax, eax
and byte [ebp - 0x130], al
and byte [ebp - 0x234], al
and byte [ebp - 0x338], al
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
inc eax
cmp dword [ebp + 8], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jle 0x1016f0c
mov dword [ebp - 8], 2
mov eax, dword [ebp - 0x24]
lea ebx, [edi + eax*4]
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1016cdf
cmp cl, 0x2f
je 0x1016cdf
cmp dword [ebp - 0x1c], 1
je 0x1016f2a
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], eax
jne 0x1016ca6
lea eax, [eax + eax + 2]
mov dword [ebp - 0x28], eax
shl eax, 2
push eax
call fcn.01017886
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x10170bf
cmp dword [ebp - 0x1c], 0
jbe 0x1016c97
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.010177c7
mov eax, dword [ebp - 0x20]
pop ecx
mov dword [ebp - 0x10], eax
mov esi, 0x104
push esi
call fcn.01017886
test eax, eax
mov edx, dword [ebp - 0x1c]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + edx*4], eax
je 0x10170bf
push dword [ebx]
push 0x1001584
push esi
push eax
call fcn.01017733
mov ebx, dword [ebp - 0x24]
add esp, 0x10
inc dword [ebp - 0x1c]
jmp 0x1016ed3
inc eax
mov cl, byte [eax]
cmp cl, 0x44
jne 0x1016cf2
push 0xb
lea esi, [eax + 1]
pop eax
jmp 0x1016d93
cmp cl, 0x45
jne 0x1016cfe
lea esi, [eax + 1]
push 2
jmp 0x1016d39
cmp cl, 0x54
jne 0x1016d0b
lea esi, [eax + 1]
xor eax, eax
inc eax
jmp 0x1016d71
cmp cl, 0x46
jne 0x1016d3c
cmp byte [eax + 1], 0x6f
jne 0x1016d1a
push 8
jmp 0x1016d36
cmp cl, 0x46
jne 0x1016d3c
cmp byte [eax + 1], 0x63
jne 0x1016d29
push 9
jmp 0x1016d36
cmp cl, 0x46
jne 0x1016d3c
cmp byte [eax + 1], 0x68
jne 0x1016d3c
push 0xa
lea esi, [eax + 2]
pop eax
jmp 0x1016d71
cmp byte [eax], 0
mov esi, eax
je 0x1016d4e
cmp byte [esi], 0x3a
je 0x1016d4e
inc esi
cmp byte [esi], 0
jne 0x1016d43
cmp byte [esi], 0
je 0x1016d57
and byte [esi], 0
inc esi
push 0x1045040
push eax
call fcn.01014b80
cmp eax, 0xb
pop ecx
pop ecx
je 0x1016d84
test eax, eax
je 0x1016f1b
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
test dword [ebp - 0x18], edx
jne 0x1016f1b
or dword [ebp - 0x18], edx
cmp eax, 2
je 0x1016d93
cmp eax, 0xb
je 0x1016d93
cmp eax, 1
jne 0x1016db9
cmp byte [esi], 0x3a
jne 0x1016d9c
and byte [esi], 0
inc esi
cmp byte [esi], 0
jne 0x1016db9
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jge 0x1016f2a
mov ebx, dword [ebp - 0x24]
inc ebx
inc dword [ebp - 8]
mov esi, dword [edi + ebx*4]
jmp 0x1016dbc
mov ebx, dword [ebp - 0x24]
cmp eax, 8
je 0x1016dcb
cmp eax, 9
je 0x1016dcb
cmp eax, 0xa
jne 0x1016df8
cmp byte [esi], 0x3a
jne 0x1016dd4
and byte [esi], 0
inc esi
cmp byte [esi], 0
jne 0x1016df8
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jge 0x1016df8
mov ecx, dword [edi + ebx*4 + 4]
mov cl, byte [ecx]
cmp cl, 0x2d
je 0x1016df8
cmp cl, 0x2f
je 0x1016df8
inc ebx
inc dword [ebp - 8]
mov esi, dword [edi + ebx*4]
cmp eax, 4
je 0x1016ecf
cmp eax, 5
je 0x1016ec9
cmp eax, 7
jbe 0x1016ed3
cmp eax, 0xa
jbe 0x1016ea9
cmp eax, 0xb
jne 0x1016ed3
cmp byte [esi], 0
mov edx, esi
je 0x1016e41
cmp byte [esi], 0x3d
je 0x1016e37
inc esi
cmp byte [esi], 0
jne 0x1016e2c
cmp byte [esi], 0
je 0x1016e41
and byte [esi], 0
jmp 0x1016e59
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jge 0x1016e5c
mov eax, dword [edi + ebx*4 + 4]
cmp byte [eax], 0x3d
jne 0x1016e5c
inc ebx
inc dword [ebp - 8]
mov esi, dword [edi + ebx*4]
inc esi
jmp 0x1016e5e
xor esi, esi
test esi, esi
je 0x1016e7a
cmp byte [esi], 0
jne 0x1016e7a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jge 0x1016f2a
inc ebx
inc dword [ebp - 8]
mov esi, dword [edi + ebx*4]
mov ecx, dword [0x104fb60]
inc ecx
cmp ecx, 0x100
jae 0x1016f2a
mov eax, dword [0x104fb60]
shl eax, 3
mov dword [eax + 0x104f360], edx
mov dword [eax + 0x104f364], esi
mov dword [0x104fb60], ecx
jmp 0x1016ed3
push esi
push 0x1001584
lea eax, [ebp - 0x130]
push 0x104
push eax
call fcn.01017733
add esp, 0x10
and byte [ebp - 0x2d], 0
jmp 0x1016ed3
or dword [ebp - 0x14], 1
jmp 0x1016ed3
or dword [ebp - 0x14], 4
inc ebx
inc dword [ebp - 8]
cmp ebx, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
jl 0x1016c3a
cmp dword [ebp - 0x1c], 0
je 0x1016f0c
mov esi, dword [ebp - 0x18]
xor eax, eax
inc eax
mov ecx, esi
shr ecx, 0xa
mov edx, esi
shr edx, 9
and edx, eax
and ecx, eax
add ecx, edx
mov edx, esi
shr edx, 8
and edx, eax
add ecx, edx
cmp ecx, eax
jle 0x1016f36
push dword [edi]
call fcn.01014c09
pop ecx
xor edi, edi
jmp 0x1017274
push dword [edi]
call fcn.01014c09
xor eax, eax
inc eax
jmp 0x10172b9
push dword [edi]
call fcn.01014c09
jmp 0x10170be
mov eax, dword [0x104fb60]
shl eax, 3
xor ebx, ebx
mov dword [eax + 0x104f360], ebx
mov dword [eax + 0x104f364], ebx
mov eax, esi
not eax
test ah, 0x10
je 0x1016f5a
call fcn.01014be5
push 0x1001d8c
mov edi, 0x104
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.01017733
push 0x10012b4
lea eax, [ebp - 0x338]
push edi
push eax
call fcn.01017733
add esp, 0x18
test esi, 0x2600
je 0x101705b
mov eax, dword [ebp - 0x10]
push ebx
push 0x10000000
push 3
push ebx
push 1
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x101705b
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x1017052
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x20], esi
je 0x1017049
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1017039
cmp ebx, 4
jb 0x1017039
push 0x10450a0
push dword [esi]
call fcn.01014bc8
test eax, eax
pop ecx
pop ecx
je 0x1017039
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0101e7f9
test eax, eax
jl 0x1017039
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
mov edi, 0x104
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
jne 0x101707e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push ebx
push 0x104f360
push dword [eax]
call fcn.0101de14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov esi, 0x10452d0
je 0x10170ad
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, 1
jbe 0x10170ad
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push eax
push 0x1001d20
push esi
call fcn.01017628
add esp, 0xc
cmp dword [ebp - 0x20], ebx
jge 0x10170c7
push 0x1001d68
push esi
call fcn.01017628
pop ecx
pop ecx
xor edi, edi
inc edi
jmp 0x1017274
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x10170e7
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, 4
jb 0x10170e7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x130], 0
mov dword [ebp - 0x20], ebx
jne 0x10171f9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1017101
sub eax, esi
je 0x101711d
mov dl, byte [eax + ecx - 1]
cmp dl, 0x5c
je 0x101711d
cmp dl, 0x2f
je 0x101711d
dec eax
jne 0x101710c
add ecx, eax
push ecx
push 0x1001584
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.01017733
lea esi, [ebp - 0x130]
add esp, 0x10
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x101713e
sub esi, eax
je 0x1017162
lea ecx, [ebp - 0x130]
dec ecx
mov al, byte [esi + ecx]
cmp al, 0x2e
je 0x1017162
cmp al, 0x5c
je 0x1017162
cmp al, 0x2f
je 0x1017162
dec esi
jne 0x1017150
cmp esi, ebx
je 0x1017170
cmp byte [ebp + esi - 0x131], 0x2e
je 0x101719d
lea esi, [ebp - 0x130]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1017179
sub esi, ecx
mov eax, edi
sub eax, esi
push 0x10014e0
push eax
lea eax, [ebp + esi - 0x130]
push eax
call fcn.01017733
add esp, 0xc
inc esi
test byte [ebp - 0x17], 4
je 0x10171aa
push 0x1001d64
jmp 0x10171e6
test byte [ebp - 0x17], 2
je 0x10171b7
push 0x1001d60
jmp 0x10171e6
mov ecx, dword [ebp - 0x14]
mov eax, 0xffff0000
and ecx, eax
cmp ecx, 0xfffe0000
jne 0x10171d0
push 0x1001d5c
jmp 0x10171e6
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10171dd
push 0x1001d58
jmp 0x10171e6
cmp ecx, eax
jne 0x10171f9
push 0x1001d54
sub edi, esi
lea eax, [ebp + esi - 0x130]
push edi
push eax
call fcn.01017733
add esp, 0xc
test byte [ebp - 0x17], 4
je 0x1017222
push dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x130]
push eax
call fcn.01016a0b
jmp 0x101724d
test byte [ebp - 0x17], 2
je 0x10172ca
push dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x130]
push eax
call fcn.01016b62
add esp, 0x18
test eax, eax
je 0x10172e0
lea eax, [ebp - 0x130]
push eax
push 0x1001d40
xor edi, edi
push 0x10452d0
inc edi
call fcn.01017628
add esp, 0xc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1017285
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1017296
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x2c], 0
xor esi, esi
cmp dword [ebp - 0x1c], esi
jbe 0x10172af
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
call fcn.010177c7
inc esi
cmp esi, dword [ebp - 0x1c]
pop ecx
jb 0x101729d
push dword [ebp - 0x10]
call fcn.010177c7
mov eax, edi
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0101735b
leave
ret
push dword [ebp - 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.010169aa
pop ecx
pop ecx
jmp 0x1017250
lea eax, [ebp - 0x130]
push eax
push 0x1001d24
call fcn.010175f7
mov edi, dword [ebp - 0x20]
pop ecx
pop ecx
jmp 0x1017274