Function at 0x41b3e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov esi, ecx
mov eax, dword [0x644040]
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 0x41b43f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x41b693
mov eax, edi
inc eax
cmp eax, 2
jb 0x41b435
mov dword [esi + 0x60], edi
call fcn.00501530
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x41b7a5
lea ecx, [esi + 8]
push 1
call fcn.0042d9f0
test al, al
je 0x41b7a5
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x50]
xor ebx, ebx
test eax, eax
je 0x41b67d
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 0x41b67d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
dec edi
lea ecx, [ebp - 0x3c]
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x20], edi
pcmpeqd xmm0, xmm0
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx], xmm0
push eax
call fcn.0041b860
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41b4c0
mov eax, dword [esi + 4]
mov esi, dword [esi]
test eax, eax
js 0x41b78f
sete cl
test esi, esi
setne dl
or dl, cl
je 0x41b796
lea ecx, [ebp - 0x3c]
push eax
push esi
push 8
push str.database
call fcn.004176d0
lea esi, [ebp - 0x48]
push dword [ebp - 0x50]
push esi
call fcn.0053c900
add esp, 8
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41b506
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
test eax, eax
js 0x41b78f
sete cl
test esi, esi
setne dl
or dl, cl
je 0x41b796
lea ecx, [ebp - 0x3c]
push eax
push esi
push 0x12
push str.exception_pointers
call fcn.0041b7e0
cmp byte [ebp - 0x3d], 0
js 0x41b7b4
lea esi, [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push dword [eax + 0x60]
push esi
call fcn.0053c900
add esp, 8
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x41b559
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
test eax, eax
js 0x41b78f
sete cl
test esi, esi
setne dl
or dl, cl
je 0x41b796
lea ecx, [ebp - 0x3c]
push eax
push esi
push 7
push 0x635153
call fcn.0041b7e0
cmp byte [ebp - 0x3d], 0
js 0x41b7c4
lea ebx, [ebp - 0x48]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
lea ecx, [ebp - 0x3c]
push ebx
call fcn.0040fae0
mov ecx, ebx
push 0xa
push str.___thread
call fcn.0053d9b0
movsx esi, byte [ebx + 0xb]
test esi, esi
jns 0x41b5bc
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x50]
lea ecx, [eax + 0x54]
mov dword [ebp - 0x60], ecx
lea ecx, [esi + esi]
mov dword [ebp - 0x54], ecx
mov edi, dword [eax + 0x54]
mov eax, dword [eax + 0x5c]
mov ecx, eax
sub ecx, edi
sar ecx, 1
cmp ecx, esi
jae 0x41b6fa
test edi, edi
jne 0x41b6af
test esi, esi
js 0x41b7ac
cmp eax, esi
cmova esi, eax
cmp eax, 0x7ffffffe
mov ebx, 0x7fffffff
cmovb ebx, esi
test ebx, ebx
js 0x41b7ac
lea eax, [ebx + ebx]
push eax
call fcn.00562bc5
add esp, 4
mov edi, eax
mov esi, dword [ebp - 0x50]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
lea eax, [eax + ebx*2]
mov dword [esi + 0x5c], eax
mov ebx, dword [ebp - 0x54]
push ebx
push dword [ebp - 0x58]
push edi
call fcn.005670c0
add esp, 0xc
add edi, ebx
mov dword [esi + 0x58], edi
mov word [ebp - 0x4a], 0
mov eax, dword [esi + 0x54]
mov ecx, edi
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x41b6df
lea eax, [ebp - 0x4a]
mov ecx, dword [ebp - 0x60]
push eax
push 0x20
call fcn.0044fee0
cmp byte [ebp - 0x3d], 0
jns 0x41b673
push dword [ebp - 0x48]
call fcn.00562bc0
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.0043c200
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565ea5
mov eax, ebx
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00501530
push dword [esi + 0x60]
call fcn.00554260
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x41b425
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x58]
cmp eax, edi
je 0x41b6c0
add eax, 0xfffffffe
jne 0x41b6b5
jmp 0x41b732
mov ebx, dword [ebp - 0x50]
mov dword [ebx + 0x58], edi
push edi
call fcn.00562bc0
add esp, 4
xor eax, eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x54], eax
jmp 0x41b5ea
add eax, ecx
add eax, 0x40
cmp edi, eax
je 0x41b6ef
add edi, 0xfffffffe
jne 0x41b6e4
jmp 0x41b732
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x58], eax
jmp 0x41b662
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax + 0x58]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x5c], eax
sar eax, 1
cmp eax, esi
jb 0x41b741
test esi, esi
je 0x41b726
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push edi
call fcn.005670c0
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax + 0x58]
add edi, dword [ebp - 0x54]
cmp ebx, edi
je 0x41b739
add ebx, 0xfffffffe
jne 0x41b729
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x41b79b
mov esi, dword [ebp - 0x50]
jmp 0x41b63b
mov eax, dword [ebp - 0x58]
lea esi, [eax + esi*2]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov dword [ebp - 0x64], eax
cmp ebx, edi
je 0x41b768
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push edi
call fcn.005670c0
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax + 0x58]
sub esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
je 0x41b780
push esi
push dword [ebp - 0x64]
push ebx
call fcn.005670c0
add esp, 0xc
add ebx, esi
mov esi, dword [ebp - 0x50]
mov dword [esi + 0x58], ebx
mov edi, ebx
jmp 0x41b63e
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 0x41b79b
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 0x622e92
call fcn.0058fdd0
xor ebx, ebx
jmp 0x41b67d
mov ecx, dword [ebp - 0x60]
call fcn.00593f80
push dword [ebp - 0x48]
call fcn.00562bc0
add esp, 4
jmp 0x41b539
push dword [ebp - 0x48]
call fcn.00562bc0
add esp, 4
jmp 0x41b58c