Function at 0x100c1010
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [edx]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], eax
push edi
push eax
mov ebx, ecx
mov dword [esp + 0x1c], edi
call fcn.1003fdc0
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jns 0x100c1080
call fcn.100fe8aa
mov edx, dword [esp + 0xc]
push str.open
mov ecx, dword [eax]
call fcn.100301f0
mov esi, eax
mov dword [esp + 0x30], 0x1015de6d
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], edi
xorps xmm0, xmm0
mov dword [esp + 0x34], edi
movlpd qword [esp + 0x18], xmm0
test esi, esi
jns 0x100c1099
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0x1015de6d
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
movlpd qword [esp + 0x18], xmm0
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.100389b0
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
js 0x100c138b
mov edx, dword [ebx + 4]
test byte [edx + 0x20], 0x10
jne 0x100c10d2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebx + 4]
or dword [eax + 0x20], 0x10
jmp 0x100c10ec
mov eax, dword [edx + 0x18]
cmp eax, dword [esp + 0x18]
jne 0x100c1374
mov eax, dword [edx + 0x1c]
cmp eax, dword [esp + 0x1c]
jne 0x100c1374
mov eax, dword [ebp + 8]
test dword [eax + 4], 0x40000000
jne 0x100c1107
mov ecx, ebx
call fcn.100c0320
test al, al
jne 0x100c138b
mov eax, dword [ebx + 4]
push 1
push 1
push dword [eax + 0x14]
lea eax, [esp + 0x20]
push 0
push dword [ebx]
push eax
call sym.user32.dll_git_filter_list_load
mov edi, dword [esp + 0x2c]
mov ecx, eax
add esp, 0x18
mov dword [esp + 0xc], ecx
test ecx, ecx
js 0x100c138b
test edi, edi
jne 0x100c1277
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x28]
push dword [esp + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
call fcn.101017fb
add esp, 4
mov dword [esp + 0x14], eax
cmp dword [0x1015bdfc], edi
jne 0x100c117a
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov dword [0x1015bdfc], ecx
test esi, esi
je 0x100c1255
cmp dword [esp + 0xc], 0
jbe 0x100c1255
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp eax, 0xffffffff
jne 0x100c11c5
call fcn.100fe8aa
push str.failed_to_mmap._Invalid_handle_value
push 2
mov dword [eax], 9
call fcn.10028220
add esp, 8
jmp 0x100c126e
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 8], eax
test eax, eax
je 0x100c123d
cmp eax, 0xffffffff
je 0x100c123d
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
test eax, eax
jne 0x100c121a
push str.failed_to_mmap._No_data_written
push 2
call fcn.10028220
add esp, 8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
jmp 0x100c126e
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
or dword [ebx + 0xc], 0x200
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
jmp 0x100c138b
push str.failed_to_mmap._Invalid_handle_value
push 2
call fcn.10028220
add esp, 8
mov dword [esi + 8], 0
jmp 0x100c126e
push str.out_____void__0___len___0
push str.unrecoverable_internal_error
push 0x1013b008
push 0x23
call fcn.10028220
add esp, 0x10
call sym.user32.dll_git_error_clear
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x2c]
mov edx, esi
push dword [eax + 0x18]
call fcn.10038a20
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x100c138b
mov dword [esp + 0x18], 0x1015de6d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
test edi, edi
je 0x100c130b
cmp dword [edi + 4], eax
je 0x100c130b
push dword [esp + 0x34]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push esi
mov edx, edi
call fcn.10032b00
mov ecx, eax
add esp, 8
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x100c138b
cmp dword [esp + 0x30], eax
jbe 0x100c1301
test esi, esi
je 0x100c1301
cmp esi, 0x1015de6c
je 0x100c1301
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
jne 0x100c138b
jmp 0x100c135d
movq xmm0, qword [esp + 0x18]
mov eax, dword [esp + 0x34]
movq qword [esp + 0x38], xmm0
cmp dword [esp + 0x3c], 0
movq xmm0, qword [esp + 0x2c]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
jbe 0x100c1355
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100c1355
cmp eax, 0x1015de6c
je 0x100c1355
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 4
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x20]
or dword [ebx + 0xc], 0x100
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], eax
jmp 0x100c138b
push str.file_changed_before_we_could_read_it
push 0x1e
call fcn.10028220
add esp, 8
mov dword [esp + 0xc], 0xffffffff
test edi, edi
je 0x100c140d
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
je 0x100c13d0
xor ebx, ebx
cmp esi, eax
jae 0x100c13a4
mov eax, dword [edi]
add eax, ebx
jmp 0x100c13a6
xor eax, eax
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x100c13c5
push dword [eax + 8]
push edx
call dword [0x101182f8]
call dword [esp + 0x1c]
add esp, 8
mov eax, dword [edi + 4]
inc esi
add ebx, 0xc
cmp esi, eax
jb 0x100c139e
push dword [edi]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push edi
call dword [0x101182f8]
call esi
add esp, 4
push dword [esp + 0x10]
call fcn.10105cc0
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret