Function at 0x441260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov eax, dword [0x542040]
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 0x4412bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x44146c
mov eax, edi
inc eax
cmp eax, 2
jb 0x4412b5
mov dword [esi + 0x60], edi
call fcn.0046e000
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x4414b3
lea edi, [esi + 8]
mov ecx, edi
push 1
call fcn.0044d3e0
test al, al
je 0x4414b3
mov eax, dword [esi + 0x60]
lea edx, [ebp - 0x14]
mov dword [edx], eax
mov ecx, edi
push 4
push edx
push 0x20002
call fcn.0044d490
mov ebx, eax
test al, al
je 0x441456
mov dword [ebp - 0x50], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ecx, ecx
dec ecx
lea edi, [ebp - 0x3c]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
pcmpeqd xmm0, xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov ecx, edi
push eax
call fcn.0042d270
mov ecx, edi
push ebx
push 8
push str.database
call fcn.0042dfd0
lea edi, [ebp - 0x48]
push esi
push edi
call fcn.00469000
add esp, 8
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x441352
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
test eax, eax
js 0x44149d
sete cl
test edi, edi
setne dl
or dl, cl
je 0x4414a4
lea ecx, [ebp - 0x3c]
push eax
push edi
push 0x12
push str.exception_pointers
call fcn.0042e2d0
cmp byte [ebp - 0x3d], 0
js 0x4414b7
lea edi, [ebp - 0x48]
push dword [esi + 0x60]
push edi
call fcn.00469000
add esp, 8
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x4413a2
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
test eax, eax
js 0x44149d
sete cl
test edi, edi
setne dl
or dl, cl
je 0x4414a4
lea ecx, [ebp - 0x3c]
push eax
push edi
push 7
push 0x524b31
call fcn.0042e2d0
cmp byte [ebp - 0x3d], 0
js 0x4414c7
lea edi, [ebp - 0x48]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ecx, [ebp - 0x3c]
push edi
call fcn.0042e980
mov ecx, edi
push 0xa
push str.___thread
call fcn.00462600
lea ebx, [esi + 0x54]
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x44140b
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
lea edx, [edi + eax*2]
mov ecx, ebx
push eax
push edx
push edi
call fcn.004414e0
mov word [ebp - 0x4a], 0
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov edx, eax
sub edx, ecx
cmp edx, 0xffffffbf
ja 0x441488
lea eax, [ebp - 0x4a]
mov ecx, ebx
push eax
push 0x20
call fcn.004212d0
cmp byte [ebp - 0x3d], 0
mov ebx, dword [ebp - 0x50]
jns 0x44144e
push dword [ebp - 0x48]
call fcn.0048d98d
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.0042d3c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e2e5
mov eax, ebx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.0046e000
push dword [esi + 0x60]
call fcn.00462e40
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x4412a5
add ecx, edx
add ecx, 0x40
cmp eax, ecx
je 0x441498
add eax, 0xfffffffe
jne 0x44148d
jmp 0x4414d7
mov dword [esi + 0x58], ecx
jmp 0x44143a
push str....._third_partylibc_srcinclude_string_view:318:_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
jmp 0x4414a9
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
push 0x524b41
call fcn.004bbec0
xor ebx, ebx
jmp 0x441456
push dword [ebp - 0x48]
call fcn.0048d98d
add esp, 4
jmp 0x441385
push dword [ebp - 0x48]
call fcn.0048d98d
add esp, 4
jmp 0x4413d5
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x4414a9