Function at 0x100140f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x450
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x45c]
push dword [ebp + 8]
call fcn.10011a80
add esp, 4
mov eax, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x458]
mov esi, dword [ebp - 0x454]
test eax, eax
je 0x10014600
cmp esi, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jb 0x1001418a
mov edx, eax
mov ecx, 0x5c005c
mov edx, dword [edx + 4]
xor ecx, dword [eax]
mov eax, 0x5c003f
xor edx, eax
or edx, ecx
je 0x1001420c
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x1001420c
cmp esi, 0xf8
jae 0x10014214
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x100141e7
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x100141b7
cmp esi, 3
je 0x100141a4
cmp esi, 2
je 0x100141e7
cmp esi, 1
jne 0x10014214
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x10014214
jmp 0x1001420c
cmp word [eax + 2], 0x3a
jne 0x100141e7
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x100141d7
cmp ax, 0x2f
je 0x100141c5
movzx eax, ax
cmp eax, 0x5c
jne 0x100141e7
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x100141ed
cmp eax, 0x5c
je 0x100141ed
jmp 0x1001420c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x100141e7
cmp eax, 0x5c
jne 0x1001420c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x100141fb
movzx eax, ax
cmp eax, 0x2f
jne 0x10014214
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x1001420c
cmp eax, 0x2f
jne 0x10014214
mov eax, dword [ebp - 0x10]
jmp 0x10014535
mov dword [ebp - 0x2c], ebx
mov edi, 0x200
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 2
cmp edi, 0x201
jb 0x10014261
jmp 0x10014280
mov esi, dword [ebp - 0x1c]
jbe 0x10014305
cmp edi, 0x201
jae 0x10014280
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
mov esi, edi
mov dword [ebp - 0x30], 0x200
mov edi, eax
jmp 0x100142ad
sub edi, esi
sub ebx, esi
cmp ebx, edi
jae 0x1001429f
mov edx, esi
lea ecx, [ebp - 0x44]
push edi
call fcn.10011eb0
add esp, 4
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x38]
mov ebx, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
push 0
call sub.KERNEL32.dll_SetLastError
push 0
mov dword [ebp - 0x14], edi
push edi
push esi
push dword [ebp - 0x10]
call sub.KERNEL32.dll_GetFullPathNameW
mov edi, eax
test eax, eax
jne 0x100142d2
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10014346
cmp edi, esi
jne 0x10014250
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1001476c
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x1c]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jae 0x10014280
jmp 0x10014261
mov edx, dword [ebp - 0x30]
cmp edi, edx
ja 0x10014785
mov edx, dword [ebp - 0x2c]
cmp edi, 2
mov dword [ebp - 0x20], 0
jbe 0x10014360
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x10014367
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 4], 0x5c
jne 0x10014367
mov ebx, 4
mov dword [ebp - 0x18], 0x104f6a9c
jmp 0x100143f1
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x1001450f
jmp 0x1001451f
je 0x100143c0
jmp 0x100143e8
cmp edi, 3
jbe 0x100143c0
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp word [ecx], 0x5c
jne 0x100143ea
cmp eax, 0x3f
je 0x10014394
cmp eax, 0x5c
jne 0x100143cd
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x100143aa
cmp eax, 0x3f
je 0x1001439e
jmp 0x100143c0
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x3f
jne 0x100143c0
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x100143c0
jmp 0x100143ea
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x100143c0
add dword [ebp - 0x14], 8
add edi, 0xfffffffc
jmp 0x10014335
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
jne 0x100143e8
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x100143e8
add dword [ebp - 0x14], 4
add edi, 0xfffffffe
mov ebx, 8
mov dword [ebp - 0x18], 0x104f6aa4
jmp 0x100143f1
xor ebx, ebx
mov dword [ebp - 0x18], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov eax, dword [ebp - 0x10]
lea esi, [edi + ebx + 1]
mov dword [ebp - 0x30], ebx
cmp esi, edx
jbe 0x10014462
mov ecx, edx
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x10014429
mov ebx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x10014430
mov dword [ebp - 0x4c], 0
lea ebx, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push ebx
push eax
call fcn.10011e10
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x100146ce
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
cmp ecx, 0x80000001
jne 0x10014796
xor esi, esi
cmp edx, ebx
jae 0x1001447f
xor edx, edx
lea ecx, [ebp - 0x28]
push ebx
call fcn.10011eb0
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, eax
lea eax, [ebx + ebx]
mov dword [ebp - 0x10], ecx
lea ecx, [ecx + esi*2]
push eax
push dword [ebp - 0x18]
push ecx
mov ebx, edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, dword [ebp - 0x30]
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x20], esi
cmp eax, edi
jae 0x100144c3
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.10011eb0
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x100144cb
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
lea eax, [edi + edi]
lea ecx, [ebx + esi*2]
push eax
push dword [ebp - 0x14]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x2c]
add esi, edi
mov dword [ebp - 0x20], esi
cmp esi, edx
jne 0x100144f8
lea ecx, [ebp - 0x28]
call fcn.10011d70
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov word [ebx + esi*2], 0
inc esi
mov edi, 4
mov bl, 1
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], 0
je 0x1001451f
push dword [ebp - 0x38]
push 0
push dword [0x104ff078]
call sub.KERNEL32.dll_HeapFree
test bl, bl
je 0x100145d6
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x100145fd
mov edi, ebx
push 0
push 0
push 3
push 0
push 7
push 0x80000000
mov dword [ebp - 0x10], eax
push eax
call sub.KERNEL32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x100145c4
mov esi, eax
mov bl, 4
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x1001456d
push eax
push 0
push dword [0x104ff078]
call sub.KERNEL32.dll_HeapFree
cmp bl, 4
je 0x10014609
movzx eax, bl
cmp eax, 3
jne 0x100145b6
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x100145a8
cmp dword [edi + 8], 9
jb 0x1001459a
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x104ff078]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x104ff078]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x10014761
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x1001455f
jmp 0x1001456d
cmp dword [ebp - 0x24], 0
je 0x100146ab
push dword [ebp - 0x28]
push 0
push dword [0x104ff078]
call sub.KERNEL32.dll_HeapFree
mov ebx, edi
cmp bl, 4
jne 0x10014576
jmp 0x10014609
mov esi, dword [ebp - 0x20]
cmp bl, 4
jne 0x10014576
xorps xmm0, xmm0
mov dword [ebp - 0x42c], 0
movups xmmword [ebp - 0x43c], xmm0
movups xmmword [ebp - 0x44c], xmm0
movups xmmword [ebp - 0x45c], xmm0
lea edi, [ebp - 0x45c]
push edi
push esi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x100146a9
test byte [ebp - 0x45b], 4
je 0x10014665
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push 8
push eax
push 9
push esi
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x100146bb
cmp dword [ebp - 0x43c], 0
jne 0x100146c0
mov eax, dword [ebp - 0x438]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x100146ea
mov dword [ebp - 0x45c], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x1001474d
mov eax, dword [ebp - 0x45c]
jmp 0x100146ec
jmp 0x100146bb
mov ebx, edi
cmp bl, 4
jne 0x10014576
jmp 0x10014609
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x1001475b
mov ebx, dword [ebp - 0x30]
mov eax, ecx
mov edx, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
xor esi, esi
cmp edx, ebx
jb 0x10014468
jmp 0x1001447f
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [ebp - 0x10], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x1001473a
mov edi, eax
push dword [ebp - 0x1c]
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 0x1001473a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x1001475b
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001475b
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code
push 0x104f6e48
call fcn.10003c10
add esp, 4
jmp 0x100147a9
mov ecx, edi
push 0x104f6e38
call fcn.100038f0
add esp, 4
jmp 0x100147a9
test ecx, ecx
jne 0x100147a1
call fcn.10002c60
jmp 0x100147a9
mov edx, dword [ebp - 0x54]
call fcn.10002ca0
ud2