Function at 0x10017790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070afb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10085510]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, ecx
mov esi, edx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100177d1
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.100040d0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x38]
add eax, 0xfffffffc
push eax
push ebx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000cc00
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.10003fa0
mov edi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x10017821
mov edx, dword [ebp - 0x80]
push edx
call fcn.10053416
add esp, 4
push 0xffffffffffffffff
push ebx
push 0x10087154
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10004ab0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.100048a0
push 1
push 0x1007f170
lea ecx, [ebp - 0x2c]
call fcn.10004990
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10017865
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10004990
push 4
push str..dat
lea ecx, [ebp - 0x2c]
call fcn.10004990
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10017892
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100178cd
cmp dword [ebp - 0x18], edi
jb 0x100178ae
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10053416
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x10017a8a
mov edx, dword [ebp - 0x48]
push edx
jmp 0x10017a82
mov dword [ebp - 0x84], ebx
push ebx
push 0x1007d581
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.100040d0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100178f0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10004990
push 4
push str..dat
lea ecx, [ebp - 0x2c]
call fcn.10004990
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
lea ebx, [ebp - 0x84]
call fcn.10018750
xor ebx, ebx
test eax, eax
je 0x10017951
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x84]
cmp eax, ebx
je 0x1001789d
push eax
call dword [0x10088664]
add esp, 4
mov dword [ebp - 0x84], ebx
jmp 0x1001789d
push 0x1c
mov esi, 0xf
push str.SELECT__FROM_sqlite_master_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.100040d0
lea eax, [ebp - 0x64]
push eax
xor edx, edx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.10018890
test eax, eax
mov eax, dword [ebp - 0x84]
jne 0x10017a11
cmp eax, ebx
je 0x100179a7
push eax
call dword [0x10088664]
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x50], edi
jb 0x100179be
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10053416
mov eax, dword [ebp - 0x84]
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x100179df
push eax
call dword [0x10088664]
add esp, 4
mov dword [ebp - 0x84], ebx
cmp dword [ebp - 0x18], edi
jb 0x100179f0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10053416
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x10017a0a
mov eax, dword [ebp - 0x48]
push eax
call fcn.10053416
add esp, 4
mov eax, 1
jmp 0x10017a8c
cmp eax, ebx
je 0x10017a27
push eax
call dword [0x10088664]
add esp, 4
xor eax, eax
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x50], edi
jb 0x10017a3e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10053416
mov eax, dword [ebp - 0x84]
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x10017a5f
push eax
call dword [0x10088664]
add esp, 4
mov dword [ebp - 0x84], ebx
cmp dword [ebp - 0x18], edi
jb 0x10017a70
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10053416
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x10017a8a
mov eax, dword [ebp - 0x48]
push eax
call fcn.10053416
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052dab
mov esp, ebp
pop ebp
ret