Function at 0x416090
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.00413930
add esp, 4
mov eax, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x458]
mov esi, dword [ebp - 0x454]
test eax, eax
je 0x4165a0
cmp esi, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jb 0x41612a
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 0x4161ac
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x4161ac
cmp esi, 0xf8
jae 0x4161b4
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x416187
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x416157
cmp esi, 3
je 0x416144
cmp esi, 2
je 0x416187
cmp esi, 1
jne 0x4161b4
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x4161b4
jmp 0x4161ac
cmp word [eax + 2], 0x3a
jne 0x416187
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x416177
cmp ax, 0x2f
je 0x416165
movzx eax, ax
cmp eax, 0x5c
jne 0x416187
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x41618d
cmp eax, 0x5c
je 0x41618d
jmp 0x4161ac
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x416187
cmp eax, 0x5c
jne 0x4161ac
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x41619b
movzx eax, ax
cmp eax, 0x2f
jne 0x4161b4
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x4161ac
cmp eax, 0x2f
jne 0x4161b4
mov eax, dword [ebp - 0x10]
jmp 0x4164d5
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 0x416201
jmp 0x416220
mov esi, dword [ebp - 0x1c]
jbe 0x4162a5
cmp edi, 0x201
jae 0x416220
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
mov esi, edi
mov dword [ebp - 0x30], 0x200
mov edi, eax
jmp 0x41624d
sub edi, esi
sub ebx, esi
cmp ebx, edi
jae 0x41623f
mov edx, esi
lea ecx, [ebp - 0x44]
push edi
call fcn.00413e50
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 0x416272
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4162e6
cmp edi, esi
jne 0x4161f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x41670c
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x1c]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jae 0x416220
jmp 0x416201
mov edx, dword [ebp - 0x30]
cmp edi, edx
ja 0x416725
mov edx, dword [ebp - 0x2c]
cmp edi, 2
mov dword [ebp - 0x20], 0
jbe 0x416300
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x416307
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 4], 0x5c
jne 0x416307
mov ebx, 4
mov dword [ebp - 0x18], 0x7f5be0
jmp 0x416391
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x4164af
jmp 0x4164bf
je 0x416360
jmp 0x416388
cmp edi, 3
jbe 0x416360
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp word [ecx], 0x5c
jne 0x41638a
cmp eax, 0x3f
je 0x416334
cmp eax, 0x5c
jne 0x41636d
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x41634a
cmp eax, 0x3f
je 0x41633e
jmp 0x416360
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x3f
jne 0x416360
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416360
jmp 0x41638a
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416360
add dword [ebp - 0x14], 8
add edi, 0xfffffffc
jmp 0x4162d5
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
jne 0x416388
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x416388
add dword [ebp - 0x14], 4
add edi, 0xfffffffe
mov ebx, 8
mov dword [ebp - 0x18], 0x7f5be8
jmp 0x416391
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 0x416402
mov ecx, edx
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x4163c9
mov ebx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x4163d0
mov dword [ebp - 0x4c], 0
lea ebx, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push ebx
push eax
call fcn.00413db0
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x41666e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
cmp ecx, 0x80000001
jne 0x416736
xor esi, esi
cmp edx, ebx
jae 0x41641f
xor edx, edx
lea ecx, [ebp - 0x28]
push ebx
call fcn.00413e50
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 0x416463
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.00413e50
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x41646b
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 0x416498
lea ecx, [ebp - 0x28]
call fcn.00413d10
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 0x4164bf
push dword [ebp - 0x38]
push 0
push dword [0x7fe0c0]
call sub.KERNEL32.dll_HeapFree
test bl, bl
je 0x416576
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x41659d
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 0x416564
mov esi, eax
mov bl, 4
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x41650d
push eax
push 0
push dword [0x7fe0c0]
call sub.KERNEL32.dll_HeapFree
cmp bl, 4
je 0x4165a9
movzx eax, bl
cmp eax, 3
jne 0x416556
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 0x416548
cmp dword [edi + 8], 9
jb 0x41653a
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x7fe0c0]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x7fe0c0]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x416701
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x4164ff
jmp 0x41650d
cmp dword [ebp - 0x24], 0
je 0x41664b
push dword [ebp - 0x28]
push 0
push dword [0x7fe0c0]
call sub.KERNEL32.dll_HeapFree
mov ebx, edi
cmp bl, 4
jne 0x416516
jmp 0x4165a9
mov esi, dword [ebp - 0x20]
cmp bl, 4
jne 0x416516
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 0x416649
test byte [ebp - 0x45b], 4
je 0x416605
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 0x41665b
cmp dword [ebp - 0x43c], 0
jne 0x416660
mov eax, dword [ebp - 0x438]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x41668a
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 0x4166ed
mov eax, dword [ebp - 0x45c]
jmp 0x41668c
jmp 0x41665b
mov ebx, edi
cmp bl, 4
jne 0x416516
jmp 0x4165a9
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x4166fb
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 0x416408
jmp 0x41641f
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 0x4166da
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 0x4166da
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 0x4166fb
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
jmp 0x4166fb
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 0x7f6004
call fcn.00404630
add esp, 4
jmp 0x416749
mov ecx, edi
push 0x7f5ff4
call fcn.00404310
add esp, 4
jmp 0x416749
test ecx, ecx
jne 0x416741
call fcn.004036d0
jmp 0x416749
mov edx, dword [ebp - 0x54]
call fcn.00403710
ud2