Function at 0x416080
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.00413920
add esp, 4
mov eax, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x458]
mov esi, dword [ebp - 0x454]
test eax, eax
je 0x416590
cmp esi, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jb 0x41611a
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 0x41619c
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x41619c
cmp esi, 0xf8
jae 0x4161a4
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x416177
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x416147
cmp esi, 3
je 0x416134
cmp esi, 2
je 0x416177
cmp esi, 1
jne 0x4161a4
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x4161a4
jmp 0x41619c
cmp word [eax + 2], 0x3a
jne 0x416177
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x416167
cmp ax, 0x2f
je 0x416155
movzx eax, ax
cmp eax, 0x5c
jne 0x416177
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x41617d
cmp eax, 0x5c
je 0x41617d
jmp 0x41619c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x416177
cmp eax, 0x5c
jne 0x41619c
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x41618b
movzx eax, ax
cmp eax, 0x2f
jne 0x4161a4
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x41619c
cmp eax, 0x2f
jne 0x4161a4
mov eax, dword [ebp - 0x10]
jmp 0x4164c5
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 0x4161f1
jmp 0x416210
mov esi, dword [ebp - 0x1c]
jbe 0x416295
cmp edi, 0x201
jae 0x416210
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
mov esi, edi
mov dword [ebp - 0x30], 0x200
mov edi, eax
jmp 0x41623d
sub edi, esi
sub ebx, esi
cmp ebx, edi
jae 0x41622f
mov edx, esi
lea ecx, [ebp - 0x44]
push edi
call fcn.00413e40
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 0x416262
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4162d6
cmp edi, esi
jne 0x4161e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4166fc
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x1c]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jae 0x416210
jmp 0x4161f1
mov edx, dword [ebp - 0x30]
cmp edi, edx
ja 0x416715
mov edx, dword [ebp - 0x2c]
cmp edi, 2
mov dword [ebp - 0x20], 0
jbe 0x4162f0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x4162f7
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 4], 0x5c
jne 0x4162f7
mov ebx, 4
mov dword [ebp - 0x18], 0x7f49e0
jmp 0x416381
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x41649f
jmp 0x4164af
je 0x416350
jmp 0x416378
cmp edi, 3
jbe 0x416350
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp word [ecx], 0x5c
jne 0x41637a
cmp eax, 0x3f
je 0x416324
cmp eax, 0x5c
jne 0x41635d
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x41633a
cmp eax, 0x3f
je 0x41632e
jmp 0x416350
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x3f
jne 0x416350
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416350
jmp 0x41637a
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416350
add dword [ebp - 0x14], 8
add edi, 0xfffffffc
jmp 0x4162c5
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
jne 0x416378
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x416378
add dword [ebp - 0x14], 4
add edi, 0xfffffffe
mov ebx, 8
mov dword [ebp - 0x18], 0x7f49e8
jmp 0x416381
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 0x4163f2
mov ecx, edx
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x4163b9
mov ebx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x4163c0
mov dword [ebp - 0x4c], 0
lea ebx, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push ebx
push eax
call fcn.00413da0
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x41665e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
cmp ecx, 0x80000001
jne 0x416726
xor esi, esi
cmp edx, ebx
jae 0x41640f
xor edx, edx
lea ecx, [ebp - 0x28]
push ebx
call fcn.00413e40
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 0x416453
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.00413e40
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x41645b
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 0x416488
lea ecx, [ebp - 0x28]
call fcn.00413d00
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 0x4164af
push dword [ebp - 0x38]
push 0
push dword [0x7fd0c0]
call sub.KERNEL32.dll_HeapFree
test bl, bl
je 0x416566
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x41658d
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 0x416554
mov esi, eax
mov bl, 4
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x4164fd
push eax
push 0
push dword [0x7fd0c0]
call sub.KERNEL32.dll_HeapFree
cmp bl, 4
je 0x416599
movzx eax, bl
cmp eax, 3
jne 0x416546
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 0x416538
cmp dword [edi + 8], 9
jb 0x41652a
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x7fd0c0]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x7fd0c0]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x4166f1
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x4164ef
jmp 0x4164fd
cmp dword [ebp - 0x24], 0
je 0x41663b
push dword [ebp - 0x28]
push 0
push dword [0x7fd0c0]
call sub.KERNEL32.dll_HeapFree
mov ebx, edi
cmp bl, 4
jne 0x416506
jmp 0x416599
mov esi, dword [ebp - 0x20]
cmp bl, 4
jne 0x416506
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 0x416639
test byte [ebp - 0x45b], 4
je 0x4165f5
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 0x41664b
cmp dword [ebp - 0x43c], 0
jne 0x416650
mov eax, dword [ebp - 0x438]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x41667a
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 0x4166dd
mov eax, dword [ebp - 0x45c]
jmp 0x41667c
jmp 0x41664b
mov ebx, edi
cmp bl, 4
jne 0x416506
jmp 0x416599
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x4166eb
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 0x4163f8
jmp 0x41640f
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 0x4166ca
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 0x4166ca
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 0x4166eb
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4166eb
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 0x7f4e04
call fcn.00404620
add esp, 4
jmp 0x416739
mov ecx, edi
push 0x7f4df4
call fcn.00404300
add esp, 4
jmp 0x416739
test ecx, ecx
jne 0x416731
call fcn.004036c0
jmp 0x416739
mov edx, dword [ebp - 0x54]
call fcn.00403700
ud2