Function at 0x4937d0
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 0x493833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x4939d6
mov eax, edi
inc eax
cmp eax, 2
jb 0x493829
mov dword [esi + 0x60], edi
call fcn.004cfe10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x4939f2
lea edi, [esi + 8]
mov ecx, edi
push 1
call fcn.0048afb0
test al, al
je 0x4939f2
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x54]
mov dword [edx], eax
mov ecx, edi
push 4
push edx
push 0x20002
call fcn.0048b060
mov ebx, eax
test al, al
je 0x4939bf
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.00452df0
mov ecx, edi
push ebx
push 8
push str.database
call fcn.00453d50
lea ebx, [esp + 0x14]
push esi
push ebx
call fcn.004d6670
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4938ce
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4938d1
and eax, 0x7f
mov ecx, edi
push eax
push ebx
push 0x12
push str.exception_pointers
call fcn.00454110
cmp byte [esp + 0x1f], 0
js 0x4939f6
lea edi, [esp + 0x14]
push dword [esi + 0x60]
push edi
call fcn.004d6670
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x49390e
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x493911
and eax, 0x7f
lea ecx, [esp + 0x20]
push eax
push edi
push 7
push 0x5d8347
call fcn.00454110
cmp byte [esp + 0x1f], 0
js 0x493a07
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.00454610
mov ecx, edi
push 0xa
push str.___thread
call fcn.00451980
lea ebx, [esi + 0x54]
movzx eax, byte [edi + 0xb]
test al, al
jns 0x49396a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x49396d
and eax, 0x7f
lea eax, [edi + eax*2]
mov ecx, ebx
push eax
push edi
call fcn.00493a30
mov word [esp + 0x12], 0
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x493a18
lea eax, [esp + 0x12]
mov ecx, ebx
push eax
push 0x20
call fcn.0046a670
cmp byte [esp + 0x1f], 0
mov ebx, dword [esp + 0xc]
jns 0x4939b6
push dword [esp + 0x14]
call fcn.0050d52e
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00452ec0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.004cfe10
push dword [esi + 0x60]
call fcn.004dfa90
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x493819
xor ebx, ebx
jmp 0x4939bf
push dword [esp + 0x14]
call fcn.0050d52e
add esp, 4
jmp 0x4938ec
push dword [esp + 0x14]
call fcn.0050d52e
add esp, 4
jmp 0x49392e
add eax, ecx
add eax, 0x40
mov dword [esi + 0x58], eax
jmp 0x49399f