Function at 0x10014120
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.10011ab0
add esp, 4
mov eax, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x458]
mov esi, dword [ebp - 0x454]
test eax, eax
je 0x10014630
cmp esi, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jb 0x100141ba
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 0x1001423c
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x1001423c
cmp esi, 0xf8
jae 0x10014244
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x10014217
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x100141e7
cmp esi, 3
je 0x100141d4
cmp esi, 2
je 0x10014217
cmp esi, 1
jne 0x10014244
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x10014244
jmp 0x1001423c
cmp word [eax + 2], 0x3a
jne 0x10014217
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x10014207
cmp ax, 0x2f
je 0x100141f5
movzx eax, ax
cmp eax, 0x5c
jne 0x10014217
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x1001421d
cmp eax, 0x5c
je 0x1001421d
jmp 0x1001423c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x10014217
cmp eax, 0x5c
jne 0x1001423c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x1001422b
movzx eax, ax
cmp eax, 0x2f
jne 0x10014244
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x1001423c
cmp eax, 0x2f
jne 0x10014244
mov eax, dword [ebp - 0x10]
jmp 0x10014565
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 0x10014291
jmp 0x100142b0
mov esi, dword [ebp - 0x1c]
jbe 0x10014335
cmp edi, 0x201
jae 0x100142b0
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
mov esi, edi
mov dword [ebp - 0x30], 0x200
mov edi, eax
jmp 0x100142dd
sub edi, esi
sub ebx, esi
cmp ebx, edi
jae 0x100142cf
mov edx, esi
lea ecx, [ebp - 0x44]
push edi
call fcn.10011ee0
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 0x10014302
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10014376
cmp edi, esi
jne 0x10014280
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1001479c
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x1c]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jae 0x100142b0
jmp 0x10014291
mov edx, dword [ebp - 0x30]
cmp edi, edx
ja 0x100147b5
mov edx, dword [ebp - 0x2c]
cmp edi, 2
mov dword [ebp - 0x20], 0
jbe 0x10014390
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x10014397
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 4], 0x5c
jne 0x10014397
mov ebx, 4
mov dword [ebp - 0x18], 0x104ef49c
jmp 0x10014421
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x1001453f
jmp 0x1001454f
je 0x100143f0
jmp 0x10014418
cmp edi, 3
jbe 0x100143f0
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp word [ecx], 0x5c
jne 0x1001441a
cmp eax, 0x3f
je 0x100143c4
cmp eax, 0x5c
jne 0x100143fd
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x100143da
cmp eax, 0x3f
je 0x100143ce
jmp 0x100143f0
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x3f
jne 0x100143f0
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x100143f0
jmp 0x1001441a
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x100143f0
add dword [ebp - 0x14], 8
add edi, 0xfffffffc
jmp 0x10014365
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
jne 0x10014418
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x10014418
add dword [ebp - 0x14], 4
add edi, 0xfffffffe
mov ebx, 8
mov dword [ebp - 0x18], 0x104ef4a4
jmp 0x10014421
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 0x10014492
mov ecx, edx
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x10014459
mov ebx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x10014460
mov dword [ebp - 0x4c], 0
lea ebx, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push ebx
push eax
call fcn.10011e40
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x100146fe
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
cmp ecx, 0x80000001
jne 0x100147c6
xor esi, esi
cmp edx, ebx
jae 0x100144af
xor edx, edx
lea ecx, [ebp - 0x28]
push ebx
call fcn.10011ee0
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 0x100144f3
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.10011ee0
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x100144fb
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 0x10014528
lea ecx, [ebp - 0x28]
call fcn.10011da0
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 0x1001454f
push dword [ebp - 0x38]
push 0
push dword [0x104f8080]
call sub.KERNEL32.dll_HeapFree
test bl, bl
je 0x10014606
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x1001462d
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 0x100145f4
mov esi, eax
mov bl, 4
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x1001459d
push eax
push 0
push dword [0x104f8080]
call sub.KERNEL32.dll_HeapFree
cmp bl, 4
je 0x10014639
movzx eax, bl
cmp eax, 3
jne 0x100145e6
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 0x100145d8
cmp dword [edi + 8], 9
jb 0x100145ca
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x104f8080]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x104f8080]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x10014791
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x1001458f
jmp 0x1001459d
cmp dword [ebp - 0x24], 0
je 0x100146db
push dword [ebp - 0x28]
push 0
push dword [0x104f8080]
call sub.KERNEL32.dll_HeapFree
mov ebx, edi
cmp bl, 4
jne 0x100145a6
jmp 0x10014639
mov esi, dword [ebp - 0x20]
cmp bl, 4
jne 0x100145a6
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 0x100146d9
test byte [ebp - 0x45b], 4
je 0x10014695
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 0x100146eb
cmp dword [ebp - 0x43c], 0
jne 0x100146f0
mov eax, dword [ebp - 0x438]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x1001471a
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 0x1001477d
mov eax, dword [ebp - 0x45c]
jmp 0x1001471c
jmp 0x100146eb
mov ebx, edi
cmp bl, 4
jne 0x100145a6
jmp 0x10014639
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x1001478b
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 0x10014498
jmp 0x100144af
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 0x1001476a
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 0x1001476a
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 0x1001478b
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001478b
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 0x104ef848
call fcn.10003c40
add esp, 4
jmp 0x100147d9
mov ecx, edi
push 0x104ef838
call fcn.10003920
add esp, 4
jmp 0x100147d9
test ecx, ecx
jne 0x100147d1
call fcn.10002c90
jmp 0x100147d9
mov edx, dword [ebp - 0x54]
call fcn.10002cd0
ud2