Function at 0x41a460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x451
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp dword [esi + 0x60], eax
je 0x41a4bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x41a701
mov eax, edi
inc eax
cmp eax, 2
jb 0x41a4b5
mov dword [esi + 0x60], edi
call fcn.005050f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x41a7fd
lea ecx, [esi + 8]
push 1
call fcn.00428de0
test al, al
je 0x41a7fd
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x50]
xor ebx, ebx
test eax, eax
je 0x41a6eb
mov dword [ebp - 0x50], esi
lea ecx, [ebp - 0x14]
push ebx
push ebx
push 4
push ecx
push 0x20002
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x41a6eb
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
dec ebx
lea ecx, [ebp - 0x3c]
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x20], ebx
pcmpeqd xmm0, xmm0
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx], xmm0
push eax
call fcn.0041a9d0
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41a540
mov eax, dword [esi + 4]
mov esi, dword [esi]
test eax, eax
js 0x41a7ee
je 0x41a552
test esi, esi
je 0x41a7e7
lea ecx, [ebp - 0x3c]
push eax
push esi
push 8
push str.database
call fcn.00415a00
lea esi, [ebp - 0x48]
push dword [ebp - 0x50]
push esi
call fcn.0054bac0
add esp, 8
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41a580
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
test eax, eax
js 0x41a7ee
je 0x41a592
test esi, esi
je 0x41a7e7
lea ecx, [ebp - 0x3c]
push eax
push esi
push 0x12
push str.exception_pointers
call fcn.0041a830
cmp byte [ebp - 0x3d], 0
js 0x41a80c
lea esi, [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push dword [eax + 0x60]
push esi
call fcn.0054bac0
add esp, 8
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41a5cd
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
test eax, eax
js 0x41a7ee
je 0x41a5df
test esi, esi
je 0x41a7e7
lea ecx, [ebp - 0x3c]
push eax
push esi
push 7
push 0x63b513
call fcn.0041a830
cmp byte [ebp - 0x3d], 0
js 0x41a81c
lea edi, [ebp - 0x48]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [ebp - 0x3c]
push edi
call fcn.00411460
mov ecx, edi
push 0xa
push str.___thread
call fcn.0054e9f0
movsx esi, byte [edi + 0xb]
test esi, esi
jns 0x41a62a
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x50]
lea ecx, [eax + 0x54]
mov dword [ebp - 0x5c], ecx
lea ecx, [esi + esi]
mov dword [ebp - 0x54], ecx
mov ebx, dword [eax + 0x54]
mov eax, dword [eax + 0x5c]
mov ecx, eax
sub ecx, ebx
sar ecx, 1
cmp ecx, esi
jae 0x41a768
test ebx, ebx
jne 0x41a71d
test esi, esi
js 0x41a804
cmp eax, esi
cmova esi, eax
cmp eax, 0x7ffffffe
mov edi, 0x7fffffff
cmovb edi, esi
test edi, edi
js 0x41a804
lea eax, [edi + edi]
push eax
call fcn.0057dc30
add esp, 4
mov ebx, eax
mov esi, dword [ebp - 0x50]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
lea eax, [eax + edi*2]
mov dword [esi + 0x5c], eax
mov edi, dword [ebp - 0x54]
push edi
push dword [ebp - 0x58]
push ebx
call fcn.005822f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x58], ebx
mov word [ebp - 0x4a], 0
mov eax, dword [esi + 0x54]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x41a74d
lea eax, [ebp - 0x4a]
mov ecx, dword [ebp - 0x5c]
push eax
push 0x20
call fcn.0041a8b0
cmp byte [ebp - 0x3d], 0
jns 0x41a6e1
push dword [ebp - 0x48]
call fcn.0057dc2b
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.0042fb10
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.005050f0
push dword [esi + 0x60]
call fcn.0056b660
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x41a4a5
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x58]
cmp eax, ebx
je 0x41a72e
add eax, 0xfffffffe
jne 0x41a723
jmp 0x41a79f
mov edi, dword [ebp - 0x50]
mov dword [edi + 0x58], ebx
push ebx
call fcn.0057dc2b
add esp, 4
xor eax, eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], eax
jmp 0x41a658
add eax, ecx
add eax, 0x40
cmp ebx, eax
je 0x41a75d
add ebx, 0xfffffffe
jne 0x41a752
jmp 0x41a79f
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x58], eax
jmp 0x41a6d0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x58]
mov edi, eax
sub edi, ebx
mov ecx, edi
sar ecx, 1
cmp ecx, esi
jb 0x41a7a6
test esi, esi
je 0x41a793
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push ebx
call fcn.005822f0
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x58]
add ebx, dword [ebp - 0x54]
cmp eax, ebx
je 0x41a7df
add eax, 0xfffffffe
jne 0x41a796
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x41a7f3
mov ecx, dword [ebp - 0x58]
lea esi, [ecx + esi*2]
add ecx, edi
mov dword [ebp - 0x60], ecx
cmp eax, ebx
je 0x41a7c8
push edi
push dword [ebp - 0x58]
push ebx
call fcn.005822f0
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax + 0x58]
sub esi, dword [ebp - 0x60]
cmp edi, dword [ebp - 0x54]
je 0x41a7dd
push esi
push dword [ebp - 0x60]
push ebx
call fcn.005822f0
add esp, 0xc
add ebx, esi
mov esi, dword [ebp - 0x50]
jmp 0x41a6a9
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x41a7f3
push str....._third_partylibc_srcinclude_string_view:314:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x62a183
call fcn.005aacb0
xor ebx, ebx
jmp 0x41a6eb
mov ecx, dword [ebp - 0x5c]
call fcn.005b76e0
push dword [ebp - 0x48]
call fcn.0057dc2b
add esp, 4
jmp 0x41a5ad
push dword [ebp - 0x48]
call fcn.0057dc2b
add esp, 4
jmp 0x41a5fa