Function at 0x460780
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 [0x58a014]
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 0x4607e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x60]
inc eax
cmp eax, 2
jae 0x460986
mov eax, edi
inc eax
cmp eax, 2
jb 0x4607d9
mov dword [esi + 0x60], edi
call fcn.00495270
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x60]
inc edi
cmp edi, 2
jb 0x4609a2
lea edi, [esi + 8]
mov ecx, edi
push 1
call fcn.0046a5a0
test al, al
je 0x4609a2
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x54]
mov dword [edx], eax
mov ecx, edi
push 4
push edx
push 0x20002
call fcn.0046a650
mov ebx, eax
test al, al
je 0x46096f
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.0043ade0
mov ecx, edi
push ebx
push 8
push str.database
call fcn.0043bcd0
lea ebx, [esp + 0x14]
push esi
push ebx
call fcn.00499e10
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x46087e
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x460881
and eax, 0x7f
mov ecx, edi
push eax
push ebx
push 0x12
push str.exception_pointers
call fcn.0043c090
cmp byte [esp + 0x1f], 0
js 0x4609a6
lea edi, [esp + 0x14]
push dword [esi + 0x60]
push edi
call fcn.00499e10
add esp, 8
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4608be
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4608c1
and eax, 0x7f
lea ecx, [esp + 0x20]
push eax
push edi
push 7
push 0x5715e1
call fcn.0043c090
cmp byte [esp + 0x1f], 0
js 0x4609b7
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.0043c6b0
mov ecx, edi
push 0xa
push str.___thread
call fcn.00439a00
lea ebx, [esi + 0x54]
movzx eax, byte [edi + 0xb]
test al, al
jns 0x46091a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x46091d
and eax, 0x7f
lea eax, [edi + eax*2]
mov ecx, ebx
push eax
push edi
call fcn.004609e0
mov word [esp + 0x12], 0
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x58]
sub ecx, eax
cmp ecx, 0xffffffbf
ja 0x4609c8
lea eax, [esp + 0x12]
mov ecx, ebx
push eax
push 0x20
call fcn.004497b0
cmp byte [esp + 0x1f], 0
mov ebx, dword [esp + 0xc]
jns 0x460966
push dword [esp + 0x14]
call fcn.004ba1ee
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0043aeb0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00495270
push dword [esi + 0x60]
call fcn.0049e730
add esp, 4
mov dword [esi + 0x60], 0
jmp 0x4607c9
xor ebx, ebx
jmp 0x46096f
push dword [esp + 0x14]
call fcn.004ba1ee
add esp, 4
jmp 0x46089c
push dword [esp + 0x14]
call fcn.004ba1ee
add esp, 4
jmp 0x4608de
add eax, ecx
add eax, 0x40
mov dword [esi + 0x58], eax
jmp 0x46094f