Function at 0x46db00
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x450
mov esi, ecx
lea ecx, [ebp - 0x45c]
push dword [ebp + 8]
call fcn.004683a0
add esp, 4
mov ecx, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x458]
mov edi, dword [ebp - 0x454]
cmp ecx, 0x80000000
jne 0x46dc09
mov ebx, eax
cmp bl, 3
je 0x46ddeb
movzx eax, bl
cmp eax, 4
jne 0x46de1a
xorps xmm0, xmm0
mov ebx, esi
mov dword [ebp - 0x42c], 0
movups xmmword [ebp - 0x43c], xmm0
movups xmmword [ebp - 0x44c], xmm0
movups xmmword [ebp - 0x45c], xmm0
lea esi, [ebp - 0x45c]
push esi
push edi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x46dc99
test byte [ebp - 0x45b], 4
je 0x46dbba
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push 8
push eax
push 9
push edi
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x46dce5
cmp dword [ebp - 0x43c], 0
jne 0x46dcea
mov eax, dword [ebp - 0x438]
test edi, edi
mov dword [ebp - 0x18], eax
je 0x46dcf2
mov dword [ebp - 0x45c], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push esi
push eax
push edi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x46dd53
mov eax, dword [ebp - 0x45c]
jmp 0x46dcf4
cmp edi, 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], esi
jbe 0x46dc73
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 0x46dda6
mov edx, dword [ebp - 0x10]
mov ecx, 0x3f005c
xor ecx, dword [edx]
xor eax, dword [edx + 4]
or eax, ecx
je 0x46dda6
cmp edi, 0xf8
jae 0x46de2b
mov eax, dword [ebp - 0x10]
cmp word [eax + 2], 0x3a
jne 0x46dd79
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
jmp 0x46dcb6
je 0x46dc9b
cmp edi, 2
je 0x46dd79
cmp edi, 1
jne 0x46de2b
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x46de2b
jmp 0x46dda6
jmp 0x46dce5
cmp word [eax + 2], 0x3a
jne 0x46dd79
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
test ax, ax
je 0x46dd69
cmp ax, 0x2f
je 0x46dcc8
movzx eax, ax
cmp eax, 0x5c
jne 0x46dd79
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x46dd7f
cmp eax, 0x5c
je 0x46dd7f
jmp 0x46dda6
call sub.kernel32.dll_GetLastError
mov dword [ebx], 0
jmp 0x46dd5e
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 0x46dd43
mov esi, eax
push dword [ebp - 0x18]
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
push esi
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46dd43
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0xc], ecx
mov dword [ebx], 1
jmp 0x46dd5e
mov dword [ebx], 0
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
jmp 0x46dd5e
call sub.kernel32.dll_GetLastError
mov dword [ebx], 0
push edi
call sub.kernel32.dll_CloseHandle
jmp 0x46de20
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x46dd79
cmp eax, 0x5c
jne 0x46dda6
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x46dd91
movzx eax, ax
cmp eax, 0x2f
jne 0x46de2b
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
cmp eax, 0x5c
je 0x46dda6
cmp eax, 0x2f
jne 0x46de2b
mov eax, dword [ebp - 0x10]
push 0
push 0
push 3
push 0
push 7
push 0x80000000
mov esi, eax
push eax
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x46df5b
mov edi, eax
mov bl, 4
cmp dword [ebp - 0x20], 0
je 0x46dddf
mov ecx, esi
mov edx, 2
call fcn.00404ac0
mov esi, dword [ebp - 0x34]
cmp bl, 3
jne 0x46db48
mov ebx, dword [edi + 4]
mov dword [ebp - 0x34], esi
mov esi, dword [edi]
mov eax, dword [ebx]
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x46de0b
mov edx, dword [ebx + 8]
mov ecx, esi
call fcn.00404ac0
mov ecx, edi
mov edx, 4
call fcn.00404ac0
mov esi, dword [ebp - 0x34]
mov dword [esi], 0
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0x200
xor edi, edi
xor esi, esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 2
cmp ebx, 0x201
jb 0x46de71
jmp 0x46de90
mov edi, dword [ebp - 0x18]
jbe 0x46df1d
cmp ebx, 0x201
jae 0x46de90
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x18], edi
mov edi, ebx
mov dword [ebp - 0x30], 0x200
mov ebx, eax
jmp 0x46debd
sub ebx, edi
sub esi, edi
cmp esi, ebx
jae 0x46deaf
mov edx, edi
lea ecx, [ebp - 0x44]
push ebx
call fcn.00468820
add esp, 4
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x38]
mov esi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
push 0
call sub.kernel32.dll_SetLastError
push 0
mov dword [ebp - 0x14], ebx
push ebx
push edi
push dword [ebp - 0x10]
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test eax, eax
jne 0x46dee6
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x46df73
cmp ebx, edi
jne 0x46de60
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x46e1d9
lea ebx, [edi + edi]
test edi, edi
mov edi, dword [ebp - 0x18]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jae 0x46de90
jmp 0x46de71
mov edx, dword [ebp - 0x30]
cmp ebx, edx
ja 0x46e1f2
cmp ebx, 2
mov dword [ebp - 0x24], 0
jbe 0x46df83
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 2]
cmp eax, 0x3a
jne 0x46df9a
cmp word [ecx + 4], 0x5c
jne 0x46df9a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x50439c
mov edx, 4
jmp 0x46e021
xor ebx, ebx
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp dword [ebp - 0x20], 0
jne 0x46ddd3
jmp 0x46dddf
xor ebx, ebx
call sub.kernel32.dll_GetLastError
mov edi, eax
xor eax, eax
jmp 0x46e153
mov eax, dword [ebp - 0x10]
jne 0x46e018
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
cmp cx, 0x5c
je 0x46dff3
jmp 0x46e018
movzx ecx, word [ecx]
cmp ebx, 3
jbe 0x46dfea
xor edx, edx
cmp cx, 0x5c
jne 0x46e1bb
cmp eax, 0x3f
je 0x46e1bb
cmp eax, 0x5c
jne 0x46dffa
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp eax, 0x3f
je 0x46e1c3
cmp eax, 0x2e
mov eax, dword [ebp - 0x10]
jne 0x46e003
mov ecx, dword [ebp - 0x14]
cmp word [ecx + 6], 0x5c
jne 0x46e003
add dword [ebp - 0x14], 8
add ebx, 0xfffffffc
jmp 0x46df4a
mov eax, dword [ebp - 0x10]
cmp cx, 0x5c
jne 0x46e018
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
cmp ax, 0x5c
mov eax, dword [ebp - 0x10]
jne 0x46e018
add dword [ebp - 0x14], 4
add ebx, 0xfffffffe
mov dword [ebp - 0x1c], 0x5043a4
mov edx, 8
jmp 0x46e021
xor edx, edx
mov dword [ebp - 0x1c], str.combase.dll
mov ecx, dword [ebp - 0x20]
mov esi, edx
mov dword [ebp - 0x30], edx
or esi, 1
add esi, ebx
cmp ecx, esi
jae 0x46e0a8
xor edx, edx
cmp esi, 0x40000000
lea eax, [esi + esi]
setb dl
add edx, edx
test ecx, ecx
je 0x46e05a
mov edi, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], ecx
jmp 0x46e061
mov dword [ebp - 0x4c], 0
lea edi, [ebp - 0x50]
lea ecx, [ebp - 0x5c]
push edi
push eax
call fcn.00468790
add esp, 8
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x58]
je 0x46e09a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
cmp ecx, 0x80000001
je 0x46e0a8
test ecx, ecx
jne 0x46e203
call fcn.00404f00
jmp 0x46e20b
mov edx, dword [ebp - 0x30]
mov eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x20]
xor esi, esi
cmp edi, edx
jae 0x46e0cd
mov eax, edx
xor edx, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.00468820
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov ecx, eax
lea eax, [edx + edx]
mov dword [ebp - 0x10], ecx
lea ecx, [ecx + esi*2]
push eax
push dword [ebp - 0x1c]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add esi, dword [ebp - 0x30]
mov ecx, edi
sub edi, esi
mov dword [ebp - 0x24], esi
cmp edi, ebx
jae 0x46e10f
mov edx, esi
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00468820
add esp, 4
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x46e115
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
lea eax, [ebx + ebx]
lea ecx, [edi + esi*2]
push eax
push dword [ebp - 0x14]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
add esi, ebx
mov dword [ebp - 0x24], esi
cmp esi, edx
jne 0x46e142
lea ecx, [ebp - 0x2c]
call fcn.00468700
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov word [edi + esi*2], 0
inc esi
mov eax, 4
mov bl, 1
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x34]
je 0x46e177
mov ecx, dword [ebp - 0x38]
mov edx, 2
mov dword [ebp - 0x18], ebx
mov ebx, esi
mov esi, eax
call fcn.00404ac0
mov eax, esi
mov esi, ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
test bl, bl
je 0x46e191
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000000
jne 0x46e1b3
mov edi, dword [ebp - 0x24]
jmp 0x46db3d
test ecx, ecx
je 0x46db3d
mov ecx, dword [ebp - 0x28]
mov edx, 2
mov ebx, esi
mov esi, eax
call fcn.00404ac0
mov eax, esi
mov esi, ebx
jmp 0x46db3d
mov dword [ebp - 0x20], ecx
jmp 0x46dda9
mov eax, dword [ebp - 0x10]
jmp 0x46e01a
mov eax, dword [ebp - 0x14]
cmp word [eax + 6], 0x5c
mov eax, dword [ebp - 0x10]
je 0x46e01a
jmp 0x46e003
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_home_nydrani_.cargo_registry_src_index.crates.io_6f17d22bba15001f_regex_automata_0.1.10_src_dense.rs
push 0x50489c
call fcn.0040db80
add esp, 4
jmp 0x46e20b
mov ecx, ebx
push 0x50488c
call fcn.0040d890
add esp, 4
jmp 0x46e20b
mov edx, dword [ebp - 0x54]
call fcn.00404f40
ud2