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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1019fbfc]
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 [0x101923c0]
mov edx, ecx
cmp eax, 0x101923c0
je 0x10086a3e
test byte [eax + 0x44], 4
je 0x10086a3e
push ecx
push edi
push dword [eax + 0x3c]
mov edx, 0x1001cc28
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.100400e3
mov edx, dword [ebx + 0xc]
mov eax, dword [0x101923c0]
cmp edx, 0x10
jbe 0x10086a6d
cmp eax, 0x101923c0
je 0x10086a63
test byte [eax + 0x44], 1
je 0x10086a63
push dword [eax + 0x3c]
mov edx, 0x1001cc28
push dword [eax + 0x38]
push 0xb
pop ecx
call fcn.10040067
mov eax, 0x80004005
jmp 0x10086db4
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x10086ab5
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 [0x101a27b8]
mov ecx, edi
call esi
mov esi, 0x80070002
test eax, eax
je 0x10086aaa
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x21c]
xor ecx, ecx
inc ecx
jmp 0x10086ac1
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 0x10086b71
test ecx, ecx
jne 0x10086aec
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 0x10086b67
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x10086b54
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 0x10086b54
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 0x10086b67
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 0x10086b76
mov esi, 0x80004005
test esi, esi
js 0x10086b8a
mov ecx, dword [ebp - 0x214]
add ecx, ebx
mov dword [ebp - 0x21c], ecx
jmp 0x10086b90
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x238], 0
test esi, esi
js 0x10086d92
mov edi, ebx
cmp ebx, ecx
jae 0x10086bc6
mov al, byte [edi]
cmp al, 0xa
je 0x10086bb6
cmp al, 0xd
je 0x10086bb6
inc edi
cmp edi, ecx
jb 0x10086ba5
jmp 0x10086bc6
inc edi
cmp edi, ecx
jae 0x10086bc6
mov al, byte [edi]
cmp al, 0xa
je 0x10086bc5
cmp al, 0xd
jne 0x10086bc6
inc edi
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x228], eax
je 0x10086d50
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
and dword [ebp - 0x224], 0
push ecx
push eax
push ebx
call fcn.10086984
mov dword [ebp - 0x230], eax
test eax, eax
je 0x10086ce9
cmp dword [ebp - 0x214], 9
jbe 0x10086ce9
push 9
push 0x1001cc18
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10086ce9
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.10086984
mov dword [ebp - 0x230], eax
test eax, eax
je 0x10086ce9
cmp byte [eax], 0x22
jne 0x10086ce9
cmp dword [ebp - 0x214], 2
jbe 0x10086ce9
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 0x10086c99
cmp byte [eax], 0x22
je 0x10086c9e
inc eax
sub ecx, 1
jne 0x10086c93
test ecx, ecx
je 0x10086ce9
sub eax, edx
mov ecx, 0x104
cmp eax, ecx
jae 0x10086ce9
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 0x10086ce9
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x224], 1
call fcn.100869c0
mov esi, eax
test esi, esi
js 0x10086d40
cmp dword [ebp - 0x224], 0
jne 0x10086d40
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 [0x101a27b8]
call dword [esi + 0x10]
mov esi, eax
test esi, esi
js 0x10086d40
mov eax, dword [ebp - 0x218]
mov ecx, ebx
mov edx, dword [ebp - 0x228]
push dword [eax + 8]
call fcn.10109f5b
mov ecx, dword [ebp - 0x218]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x21c]
mov ebx, edi
test esi, esi
jns 0x10086b9f
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x10086d98
mov eax, dword [ebx]
lea ecx, [ebp - 0x238]
push ecx
push 2
mov edi, 0x1001cc24
mov esi, dword [eax]
push edi
push eax
mov ecx, dword [esi + 0x10]
call dword [0x101a27b8]
call dword [esi + 0x10]
mov esi, eax
test esi, esi
js 0x10086d98
push dword [ebx + 8]
mov ecx, edi
push 2
pop edx
call fcn.10109f5b
mov dword [ebx + 8], eax
jmp 0x10086d98
mov ebx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10086daf
mov edx, dword [ebp - 0x220]
mov ecx, eax
call fcn.1010a14f
dec dword [ebx + 0xc]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret 8