Function at 0x4160a0
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.00413940
add esp, 4
mov eax, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x458]
mov esi, dword [ebp - 0x454]
test eax, eax
je 0x4165b0
cmp esi, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jb 0x41613a
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 0x4161bc
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x4161bc
cmp esi, 0xf8
jae 0x4161c4
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x416197
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x416167
cmp esi, 3
je 0x416154
cmp esi, 2
je 0x416197
cmp esi, 1
jne 0x4161c4
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x4161c4
jmp 0x4161bc
cmp word [eax + 2], 0x3a
jne 0x416197
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x416187
cmp ax, 0x2f
je 0x416175
movzx eax, ax
cmp eax, 0x5c
jne 0x416197
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x41619d
cmp eax, 0x5c
je 0x41619d
jmp 0x4161bc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x416197
cmp eax, 0x5c
jne 0x4161bc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x4161ab
movzx eax, ax
cmp eax, 0x2f
jne 0x4161c4
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x4161bc
cmp eax, 0x2f
jne 0x4161c4
mov eax, dword [ebp - 0x10]
jmp 0x4164e5
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 0x416211
jmp 0x416230
mov esi, dword [ebp - 0x1c]
jbe 0x4162b5
cmp edi, 0x201
jae 0x416230
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x1c], esi
mov esi, edi
mov dword [ebp - 0x30], 0x200
mov edi, eax
jmp 0x41625d
sub edi, esi
sub ebx, esi
cmp ebx, edi
jae 0x41624f
mov edx, esi
lea ecx, [ebp - 0x44]
push edi
call fcn.00413e60
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 0x416282
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4162f6
cmp edi, esi
jne 0x416200
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x41671c
lea edi, [esi + esi]
test esi, esi
mov esi, dword [ebp - 0x1c]
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jae 0x416230
jmp 0x416211
mov edx, dword [ebp - 0x30]
cmp edi, edx
ja 0x416735
mov edx, dword [ebp - 0x2c]
cmp edi, 2
mov dword [ebp - 0x20], 0
jbe 0x416310
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x416317
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 4], 0x5c
jne 0x416317
mov ebx, 4
mov dword [ebp - 0x18], 0x8f17e0
jmp 0x4163a1
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x1c], 0
jne 0x4164bf
jmp 0x4164cf
je 0x416370
jmp 0x416398
cmp edi, 3
jbe 0x416370
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp word [ecx], 0x5c
jne 0x41639a
cmp eax, 0x3f
je 0x416344
cmp eax, 0x5c
jne 0x41637d
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x2e
je 0x41635a
cmp eax, 0x3f
je 0x41634e
jmp 0x416370
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x3f
jne 0x416370
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416370
jmp 0x41639a
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
jne 0x416370
add dword [ebp - 0x14], 8
add edi, 0xfffffffc
jmp 0x4162e5
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x5c
jne 0x416398
movzx eax, word [eax + 2]
cmp ax, 0x5c
jne 0x416398
add dword [ebp - 0x14], 4
add edi, 0xfffffffe
mov ebx, 8
mov dword [ebp - 0x18], 0x8f17e8
jmp 0x4163a1
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 0x416412
mov ecx, edx
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x4163d9
mov ebx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x4163e0
mov dword [ebp - 0x4c], 0
lea ebx, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push ebx
push eax
call fcn.00413dc0
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x41667e
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x30]
cmp ecx, 0x80000001
jne 0x416746
xor esi, esi
cmp edx, ebx
jae 0x41642f
xor edx, edx
lea ecx, [ebp - 0x28]
push ebx
call fcn.00413e60
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 0x416473
mov edx, esi
lea ecx, [ebp - 0x28]
push edi
call fcn.00413e60
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x41647b
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 0x4164a8
lea ecx, [ebp - 0x28]
call fcn.00413d20
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 0x4164cf
push dword [ebp - 0x38]
push 0
push dword [0x8fa0c0]
call sub.KERNEL32.dll_HeapFree
test bl, bl
je 0x416586
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
je 0x4165ad
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 0x416574
mov esi, eax
mov bl, 4
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x41651d
push eax
push 0
push dword [0x8fa0c0]
call sub.KERNEL32.dll_HeapFree
cmp bl, 4
je 0x4165b9
movzx eax, bl
cmp eax, 3
jne 0x416566
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 0x416558
cmp dword [edi + 8], 9
jb 0x41654a
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x8fa0c0]
call sub.KERNEL32.dll_HeapFree
push esi
push 0
push dword [0x8fa0c0]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x416711
xor ebx, ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x41650f
jmp 0x41651d
cmp dword [ebp - 0x24], 0
je 0x41665b
push dword [ebp - 0x28]
push 0
push dword [0x8fa0c0]
call sub.KERNEL32.dll_HeapFree
mov ebx, edi
cmp bl, 4
jne 0x416526
jmp 0x4165b9
mov esi, dword [ebp - 0x20]
cmp bl, 4
jne 0x416526
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 0x416659
test byte [ebp - 0x45b], 4
je 0x416615
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 0x41666b
cmp dword [ebp - 0x43c], 0
jne 0x416670
mov eax, dword [ebp - 0x438]
test esi, esi
mov dword [ebp - 0x1c], eax
je 0x41669a
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 0x4166fd
mov eax, dword [ebp - 0x45c]
jmp 0x41669c
jmp 0x41666b
mov ebx, edi
cmp bl, 4
jne 0x416526
jmp 0x4165b9
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
jmp 0x41670b
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 0x416418
jmp 0x41642f
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 0x4166ea
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 0x4166ea
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 0x41670b
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
jmp 0x41670b
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 0x8f1c04
call fcn.00404640
add esp, 4
jmp 0x416759
mov ecx, edi
push 0x8f1bf4
call fcn.00404320
add esp, 4
jmp 0x416759
test ecx, ecx
jne 0x416751
call fcn.004036e0
jmp 0x416759
mov edx, dword [ebp - 0x54]
call fcn.00403720
ud2