Function at 0x10013890
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x460
mov edi, ecx
lea ecx, [esp + 0x50]
push dword [ebp + 8]
call fcn.100114a0
add esp, 4
cmp dword [esp + 0x50], 0
je 0x100138ce
mov esi, dword [esp + 0x58]
movzx ebx, byte [esp + 0x54]
cmp bl, 4
jne 0x10013dbe
jmp 0x10013e45
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], edi
cmp eax, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 4], ecx
jb 0x10013948
mov esi, ecx
mov edx, 0x5c005c
mov esi, dword [esi + 4]
xor edx, dword [ecx]
mov ecx, 0x5c003f
xor esi, ecx
or esi, edx
je 0x100139d5
mov esi, dword [esp + 4]
mov edx, 0x3f005c
xor edx, dword [esi]
xor ecx, dword [esi + 4]
or ecx, edx
je 0x100139d5
cmp eax, 0xf8
jae 0x100139de
mov eax, dword [esp + 4]
cmp word [eax + 2], 0x3a
jne 0x100139ae
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 4]
jmp 0x1001397b
cmp eax, 3
je 0x10013967
cmp eax, 2
je 0x100139ae
cmp eax, 1
jne 0x100139de
mov eax, dword [esp + 4]
cmp word [eax], 0
jne 0x100139de
jmp 0x100139d5
cmp word [ecx + 2], 0x3a
jne 0x100139ae
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 4]
test ax, ax
je 0x100139a1
cmp ax, 0x2f
je 0x10013992
movzx eax, ax
cmp eax, 0x5c
jne 0x100139ae
mov eax, dword [esp + 4]
movzx eax, word [eax]
jmp 0x10013995
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x100139b5
cmp eax, 0x5c
je 0x100139b5
jmp 0x100139d5
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x100139ae
cmp eax, 0x5c
jne 0x100139d5
mov eax, dword [esp + 4]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x100139c3
movzx eax, ax
cmp eax, 0x2f
jne 0x100139de
mov eax, dword [esp + 4]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x100139d5
cmp eax, 0x5c
jne 0x100139de
mov eax, dword [esp + 4]
jmp 0x10013d7c
mov ebx, 0x200
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 2
mov dword [esp + 0xc], 0
cmp ebx, 0x201
jae 0x10013a40
jmp 0x10013a2e
jbe 0x10013ad3
cmp ebx, 0x201
jae 0x10013a40
lea eax, [esp + 0x50]
mov esi, ebx
mov dword [esp + 0x10], 0x200
mov ebx, eax
jmp 0x10013a79
mov eax, dword [esp + 0xc]
sub ebx, edi
sub eax, edi
cmp eax, ebx
jae 0x10013a67
mov edx, edi
lea ecx, [esp + 0x28]
push ebx
call fcn.10011840
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0x34]
mov esi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
push 0
mov dword [esp + 0xc], ebx
push ebx
push esi
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetFullPathNameW
mov ebx, eax
test eax, eax
jne 0x10013aa0
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10013b1d
cmp ebx, esi
jne 0x10013a20
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10013f6e
add esi, esi
mov eax, 0xffffffff
cmovb esi, eax
mov ebx, esi
cmp ebx, 0x201
jb 0x10013a2e
jmp 0x10013a40
mov edx, dword [esp + 0x10]
cmp ebx, edx
ja 0x10013f87
mov ecx, dword [esp + 0x14]
cmp ebx, 2
mov dword [esp + 0x20], 0
jbe 0x10013b43
mov eax, dword [esp + 8]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x10013b4a
mov edx, dword [esp + 8]
cmp word [edx + 4], 0x5c
jne 0x10013b4a
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 0x103677ac
jmp 0x10013bf1
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl eax, 0x18
xor edx, edx
xor ebx, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
shr esi, 8
test edi, edi
jne 0x10013d47
jmp 0x10013d64
je 0x10013bb3
jmp 0x10013be1
cmp ebx, 4
jb 0x10013bb3
mov edx, dword [esp + 8]
mov dword [esp + 0xc], 0
cmp word [edx], 0x5c
jne 0x10013be9
cmp eax, 0x3f
je 0x10013b83
cmp eax, 0x5c
jne 0x10013bc1
mov eax, dword [esp + 8]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x10013b9b
cmp eax, 0x3f
je 0x10013b8e
jmp 0x10013bb3
mov eax, dword [esp + 8]
cmp word [eax + 4], 0x3f
jne 0x10013bb3
mov eax, dword [esp + 8]
cmp word [eax + 6], 0x5c
jne 0x10013bb3
jmp 0x10013be9
mov eax, dword [esp + 8]
cmp word [eax + 6], 0x5c
jne 0x10013bb3
add dword [esp + 8], 8
add ebx, 0xfffffffc
jmp 0x10013b08
mov eax, dword [esp + 8]
cmp word [eax], 0x5c
jne 0x10013be1
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x10013be1
add dword [esp + 8], 4
add ebx, 0xfffffffe
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x103677b4
jmp 0x10013bf1
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.Index_out_of_bounds
mov eax, dword [esp + 0xc]
lea edi, [ebx + eax + 1]
cmp edi, ecx
jbe 0x10013c81
xor eax, eax
cmp edi, 0x40000000
lea edx, [edi + edi]
setb al
add eax, eax
test ecx, ecx
je 0x10013c2e
lea esi, [ecx + ecx]
mov ecx, dword [esp + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 2
jmp 0x10013c36
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x44]
lea esi, [esp + 0x38]
push esi
push eax
call fcn.10001640
add esp, 8
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 0x48]
je 0x10013c71
mov edx, dword [esp + 0x4c]
cmp edx, 0x80000001
je 0x10013c81
test edx, edx
jne 0x10013f98
call fcn.10002bc0
jmp 0x10013f9d
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esp + 4]
cmp esi, dword [esp + 0xc]
jae 0x10013caf
xor edx, edx
lea ecx, [esp + 0x18]
push dword [esp + 0xc]
call fcn.10011840
add esp, 4
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
lea ecx, [ecx + edi*2]
add eax, eax
push eax
push dword [esp + 0x14]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, dword [esp + 0xc]
mov eax, esi
sub eax, edi
mov dword [esp + 0x20], edi
cmp eax, ebx
jae 0x10013cf3
mov edx, edi
lea ecx, [esp + 0x18]
push ebx
call fcn.10011840
add esp, 4
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x10013cf7
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
lea eax, [ebx + ebx]
lea ecx, [esi + edi*2]
push eax
push dword [esp + 0xc]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0xc
mov edx, dword [esp + 0x14]
add edi, ebx
mov dword [esp + 0x20], edi
cmp edi, edx
jne 0x10013d30
lea ecx, [esp + 0x18]
call fcn.100117a0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov word [eax + edi*2], 0
inc edi
mov bl, 4
mov dl, 1
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x10013d64
push dword [esp + 0x2c]
push 0
push dword [0x1036e078]
mov dword [esp + 0x10], eax
mov edi, edx
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 4]
mov edx, edi
mov edi, dword [esp + 0x24]
test dl, dl
je 0x10013e1f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 7
push 0x80000000
mov edi, eax
push eax
call sub.KERNEL32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x10013e0d
mov esi, eax
mov bl, 4
cmp dword [esp + 0x14], 0
je 0x10013db1
push edi
push 0
push dword [0x1036e078]
call sub.KERNEL32.dll_HeapFree
mov edi, dword [esp + 0x24]
cmp bl, 4
je 0x10013e45
movzx eax, bl
cmp eax, 3
jne 0x10013e02
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x10013df4
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x10013de6
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x1036e078]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x1036e078]
call sub.KERNEL32.dll_HeapFree
mov dword [edi], 0
jmp 0x10013f66
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp dword [esp + 0x14], 0
jne 0x10013da3
jmp 0x10013db1
cmp dword [esp + 0x18], 0
je 0x10013e34
push eax
push 0
push dword [0x1036e078]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 8]
shld esi, eax, 8
cmp bl, 4
jne 0x10013dbe
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
lea eax, [esp + 0x50]
push eax
push esi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x10013ed8
test byte [esp + 0x51], 4
je 0x10013e93
xorps xmm0, xmm0
movlps qword [esp + 0x38], xmm0
lea eax, [esp + 0x38]
push 8
push eax
push 9
push esi
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x10013eda
cmp dword [esp + 0x70], 0
jne 0x10013edf
mov eax, dword [esp + 0x74]
test esi, esi
mov dword [esp + 4], eax
je 0x10013ee7
mov dword [esp + 0x50], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x10013f55
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], edi
jmp 0x10013eed
jmp 0x10013eda
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
jmp 0x10013f60
mov dword [esp + 0x24], edi
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x10013f40
mov edi, eax
push dword [esp + 4]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
je 0x10013f40
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x10013f60
mov eax, dword [esp + 0x24]
mov dword [eax], 0
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
jmp 0x10013f60
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_rustc_84c898d65adf2f39a5a98507f1fe0ce10a2b8dbclibrary_alloc_srccollections_btree_navigate.rs
push 0x10367b48
call fcn.10003da0
add esp, 4
jmp 0x10013f9d
mov ecx, ebx
push 0x10367b58
call fcn.10003a80
add esp, 4
jmp 0x10013f9d
call fcn.10002c00
ud2