Function at 0x4938b0
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 [0x5f3024]
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 0x493913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x493ab6
mov eax, edi
inc eax
cmp eax, 2
jb 0x493909
mov dword [esi + 0x60], edi
call fcn.004cfef0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x493ad2
lea edi, [esi + 8]
mov ecx, edi
push 1
call fcn.0048b130
test al, al
je 0x493ad2
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x54]
mov dword [edx], eax
mov ecx, edi
push 4
push edx
push 0x20002
call fcn.0048b1e0
mov ebx, eax
test al, al
je 0x493a9f
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.00452ed0
mov ecx, edi
push ebx
push 8
push str.database
call fcn.00453e30
lea ebx, [esp + 0x14]
push esi
push ebx
call fcn.004d6750
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4939ae
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4939b1
and eax, 0x7f
mov ecx, edi
push eax
push ebx
push 0x12
push str.exception_pointers
call fcn.004541f0
cmp byte [esp + 0x1f], 0
js 0x493ad6
lea edi, [esp + 0x14]
push dword [esi + 0x60]
push edi
call fcn.004d6750
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4939ee
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4939f1
and eax, 0x7f
lea ecx, [esp + 0x20]
push eax
push edi
push 7
push 0x5d83c7
call fcn.004541f0
cmp byte [esp + 0x1f], 0
js 0x493ae7
lea edi, [esp + 0x14]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ecx, [esp + 0x20]
push edi
call fcn.004546f0
mov ecx, edi
push 0xa
push str.___thread
call fcn.00451a60
lea ebx, [esi + 0x54]
movzx eax, byte [edi + 0xb]
test al, al
jns 0x493a4a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x493a4d
and eax, 0x7f
lea eax, [edi + eax*2]
mov ecx, ebx
push eax
push edi
call fcn.00493b10
mov word [esp + 0x12], 0
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x493af8
lea eax, [esp + 0x12]
mov ecx, ebx
push eax
push 0x20
call fcn.0046a750
cmp byte [esp + 0x1f], 0
mov ebx, dword [esp + 0xc]
jns 0x493a96
push dword [esp + 0x14]
call fcn.0050d60e
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00452fa0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004cfef0
push dword [esi + 0x60]
call fcn.004dfb70
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x4938f9
xor ebx, ebx
jmp 0x493a9f
push dword [esp + 0x14]
call fcn.0050d60e
add esp, 4
jmp 0x4939cc
push dword [esp + 0x14]
call fcn.0050d60e
add esp, 4
jmp 0x493a0e
add eax, ecx
add eax, 0x40
mov dword [esi + 0x58], eax
jmp 0x493a7f