Function at 0x46ced0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0x58], 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 0x46cf33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x46d0d4
mov eax, edi
inc eax
cmp eax, 2
jb 0x46cf29
mov dword [esi + 0x60], edi
call fcn.004a2700
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x46d0f0
lea edi, [esi + 8]
mov ecx, edi
push 1
call fcn.00477930
test al, al
je 0x46d0f0
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x54]
mov dword [edx], eax
mov ecx, edi
push 4
push edx
push 0x20002
call fcn.004779e0
mov ebx, eax
test al, al
je 0x46d0bd
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ecx, ecx
dec ecx
lea edi, [esp + 0x20]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ecx, edi
push eax
call fcn.00446f50
mov ecx, edi
push ebx
push 8
push str.database
call fcn.00447e30
lea ebx, [esp + 0x14]
push esi
push ebx
call fcn.004a7240
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x46cfce
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x46cfd1
and eax, 0x7f
mov ecx, edi
push eax
push ebx
push 0x12
push str.exception_pointers
call fcn.004481b0
cmp byte [esp + 0x1f], 0
js 0x46d0f4
lea edi, [esp + 0x14]
push dword [esi + 0x60]
push edi
call fcn.004a7240
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x46d00e
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x46d011
and eax, 0x7f
lea ecx, [esp + 0x20]
push eax
push edi
push 7
push 0x577681
call fcn.004481b0
cmp byte [esp + 0x1f], 0
js 0x46d105
lea ebx, [esp + 0x14]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea ecx, [esp + 0x20]
push ebx
call fcn.004487e0
mov ecx, ebx
push str.___thread
call fcn.00445fa0
lea edi, [esi + 0x54]
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x46d068
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x46d06b
and eax, 0x7f
lea eax, [ebx + eax*2]
mov ecx, edi
push eax
push ebx
call fcn.0046d130
mov word [esp + 0x12], 0
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x46d116
lea eax, [esp + 0x12]
mov ecx, edi
push eax
push 0x20
call fcn.00455c50
mov ebx, dword [esp + 0xc]
cmp byte [esp + 0x1f], 0
jns 0x46d0b4
push dword [esp + 0x14]
call fcn.004c5c98
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004470b0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004a2700
push dword [esi + 0x60]
call fcn.004ab080
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x46cf19
xor ebx, ebx
jmp 0x46d0bd
push dword [esp + 0x14]
call fcn.004c5c98
add esp, 4
jmp 0x46cfec
push dword [esp + 0x14]
call fcn.004c5c98
add esp, 4
jmp 0x46d02e
add eax, ecx
add eax, 0x40
mov dword [esi + 0x58], eax
jmp 0x46d09d