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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
mov byte [ebp - 0x234], al
push esi
xor esi, esi
mov dword [ebp - 0x218], ebx
and dword [ebp - 0x228], esi
mov ecx, dword [ebx + 0xc]
and dword [ebp - 0x224], esi
inc ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x22c], esi
mov dword [ebx + 0xc], ecx
mov eax, dword [0x101973c0]
mov edx, ecx
cmp eax, 0x101973c0
je 0x1008701e
test byte [eax + 0x44], 4
je 0x1008701e
push ecx
push edi
push dword [eax + 0x3c]
mov edx, 0x1001c9a8
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.1003f64f
mov edx, dword [ebx + 0xc]
mov eax, dword [0x101973c0]
cmp edx, 0x10
jbe 0x1008704d
cmp eax, 0x101973c0
je 0x10087043
test byte [eax + 0x44], 1
je 0x10087043
push dword [eax + 0x3c]
mov edx, 0x1001c9a8
push dword [eax + 0x38]
push 0xb
pop ecx
call fcn.1003f5d3
mov eax, 0x80004005
jmp 0x10087395
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x10087095
mov edi, dword [ebx + 4]
push dword [ebp - 0x234]
push dword [ebp - 0x21c]
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x101a77c4]
mov ecx, edi
call esi
mov esi, 0x80070002
test eax, eax
je 0x1008708a
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x21c]
xor ecx, ecx
inc ecx
jmp 0x100870a1
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
or dword [ebp - 0x220], 0xffffffff
xor edx, edx
mov dword [ebp - 0x22c], edx
mov ebx, edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x214], edx
test esi, esi
js 0x10087151
test ecx, ecx
jne 0x100870cc
mov eax, edi
xor ebx, ebx
push ebx
push 0x100080
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x220], eax
cmp eax, 0xffffffff
je 0x10087147
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x10087134
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x10087134
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10087147
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x220], 0xffffffff
mov dword [ebp - 0x22c], ebx
test ebx, ebx
jne 0x10087156
mov esi, 0x80004005
test esi, esi
js 0x1008716b
mov eax, dword [ebp - 0x214]
lea ecx, [eax + ebx]
mov dword [ebp - 0x21c], ecx
jmp 0x10087171
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x238], 0
test esi, esi
js 0x10087373
mov edi, ebx
cmp ebx, ecx
jae 0x100871a7
mov al, byte [edi]
cmp al, 0xa
je 0x10087197
cmp al, 0xd
je 0x10087197
inc edi
cmp edi, ecx
jb 0x10087186
jmp 0x100871a7
inc edi
cmp edi, ecx
jae 0x100871a7
mov al, byte [edi]
cmp al, 0xa
je 0x100871a6
cmp al, 0xd
jne 0x100871a7
inc edi
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x228], eax
je 0x10087331
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
and dword [ebp - 0x224], 0
push ecx
push eax
push ebx
call fcn.10086f64
mov dword [ebp - 0x230], eax
test eax, eax
je 0x100872ca
cmp dword [ebp - 0x214], 9
jbe 0x100872ca
push 9
push 0x1001c998
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100872ca
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x214]
sub eax, 9
push ecx
push eax
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x230]
add eax, 9
push eax
call fcn.10086f64
mov dword [ebp - 0x230], eax
test eax, eax
je 0x100872ca
cmp byte [eax], 0x22
jne 0x100872ca
cmp dword [ebp - 0x214], 2
jbe 0x100872ca
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0x230]
add esp, 0xc
mov ecx, dword [ebp - 0x214]
inc edx
mov eax, edx
jmp 0x1008727a
cmp byte [eax], 0x22
je 0x1008727f
inc eax
sub ecx, 1
jne 0x10087274
test ecx, ecx
je 0x100872ca
sub eax, edx
mov ecx, 0x104
cmp eax, ecx
jae 0x100872ca
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100872ca
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x224], 1
call fcn.10086fa0
mov esi, eax
test esi, esi
js 0x10087321
cmp dword [ebp - 0x224], 0
jne 0x10087321
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x238]
push ecx
push dword [ebp - 0x228]
mov eax, dword [eax]
push ebx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x10]
call dword [0x101a77c4]
call dword [esi + 0x10]
mov esi, eax
test esi, esi
js 0x10087321
mov eax, dword [ebp - 0x218]
mov ecx, ebx
mov edx, dword [ebp - 0x228]
push dword [eax + 8]
call fcn.1010bd2c
mov ecx, dword [ebp - 0x218]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x21c]
mov ebx, edi
test esi, esi
jns 0x10087180
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x10087379
mov eax, dword [ebx]
lea ecx, [ebp - 0x238]
push ecx
push 2
mov edi, 0x1001c9a4
mov esi, dword [eax]
push edi
push eax
mov ecx, dword [esi + 0x10]
call dword [0x101a77c4]
call dword [esi + 0x10]
mov esi, eax
test esi, esi
js 0x10087379
push dword [ebx + 8]
mov ecx, edi
push 2
pop edx
call fcn.1010bd2c
mov dword [ebx + 8], eax
jmp 0x10087379
mov ebx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10087390
mov edx, dword [ebp - 0x220]
mov ecx, eax
call fcn.1010bf24
dec dword [ebx + 0xc]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 8