Function at 0x10086fc0
Capabilities:
Check if file exists
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4d28
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10104610]
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
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
lea edi, [ebx + 0x1c]
push eax
lea edx, [ebx + 0x38]
mov ecx, edi
call fcn.10088060
add esp, 4
test al, al
jne 0x10087034
cmp dword [ebp - 0x18], 0x10
jb 0x1008702a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100afa01
add esp, 4
mov eax, 0xa
jmp 0x10087249
lea esi, [ebp - 0x2c]
call fcn.10087db0
test al, al
jne 0x100870bd
lea edx, [ebp - 0x48]
push edx
mov ecx, esi
call fcn.10086020
mov eax, dword [ebp - 0x48]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x34], esi
jae 0x1008705e
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete byte [ebp - 0x49]
cmp dword [ebp - 0x34], esi
jb 0x1008707d
mov eax, dword [ebp - 0x48]
push eax
call fcn.100afa01
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x1008709f
cmp dword [ebp - 0x18], 0x10
jb 0x10087095
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100afa01
add esp, 4
mov eax, 1
jmp 0x10087249
push edi
call fcn.10086470
mov esi, eax
add esp, 4
test esi, esi
je 0x100870bd
lea ecx, [ebp - 0x2c]
call fcn.10004d50
mov eax, esi
jmp 0x10087249
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x100870cd
lea eax, [ebp - 0x2c]
push 0
push 6
lea esi, [ebx + 4]
push esi
push eax
call fcn.10085560
add esp, 0x10
test eax, eax
je 0x10087107
mov dword [esi], 0
call fcn.100863a0
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x10087100
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100afa01
add esp, 4
mov eax, esi
jmp 0x10087249
mov esi, dword [esi]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x1a0], 0x7d0
test eax, eax
je 0x10087124
push eax
call dword [0x101058e0]
add esp, 4
mov dword [esi + 0x194], 0x10084a60
mov dword [esi + 0x198], esi
mov dword [esi + 0x19c], 0
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x1008714f
push esi
call dword [0x101058e8]
add esp, 4
xor edi, edi
cmp byte [ebx + 0x58], 0
mov dword [ebx], 0
je 0x10087235
mov eax, dword [ebx + 0x5c]
xor esi, esi
sub eax, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
je 0x10087182
mov ecx, 1
sub eax, ecx
je 0x1008717d
sub eax, ecx
jne 0x10087182
mov dword [ebp - 0x50], ecx
jmp 0x10087189
mov dword [ebp - 0x50], 2
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x54]
push eax
push ebx
call fcn.10086c50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100871d3
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.100b07bd
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
lea edx, [ebp - 0x54]
push edx
push ebx
mov esi, eax
call fcn.10086c50
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100871d3
mov eax, dword [ebp - 0x54]
push eax
call fcn.100b07bd
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x50], ecx
jge 0x100871e2
mov edi, 0xd
jmp 0x10087213
inc esi
mov dword [ebp - 0x58], esi
cmp esi, dword [ebp - 0x50]
jg 0x1008720f
jmp 0x100871f0
push ebx
mov edx, esi
call fcn.10087270
mov edi, eax
test edi, edi
jne 0x10087206
inc esi
cmp esi, dword [ebp - 0x50]
jle 0x100871f0
jmp 0x10087235
cmp dword [ebp - 0x58], esi
jne 0x1008720f
xor edi, edi
jmp 0x10087235
test edi, edi
je 0x10087235
cmp dword [ebx], 0
jne 0x10087235
mov eax, dword [ebx + 4]
test eax, eax
je 0x10087235
push eax
call fcn.100843c0
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx], 1
cmp dword [ebp - 0x18], 0x10
jb 0x10087247
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100afa01
add esp, 4
mov eax, edi
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.100afa0c
mov esp, ebp
pop ebp
ret 4