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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8668
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10109610]
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.1008b4d0
add esp, 4
test al, al
jne 0x1008a3e4
cmp dword [ebp - 0x18], 0x10
jb 0x1008a3da
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2e51
add esp, 4
mov eax, 0xa
jmp 0x1008a5f9
lea esi, [ebp - 0x2c]
call fcn.1008b220
test al, al
jne 0x1008a46d
lea edx, [ebp - 0x48]
push edx
mov ecx, esi
call fcn.100893a0
mov eax, dword [ebp - 0x48]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x34], esi
jae 0x1008a40e
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 0x1008a42d
mov eax, dword [ebp - 0x48]
push eax
call fcn.100b2e51
add esp, 4
cmp byte [ebp - 0x49], 0
je 0x1008a44f
cmp dword [ebp - 0x18], 0x10
jb 0x1008a445
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2e51
add esp, 4
mov eax, 1
jmp 0x1008a5f9
push edi
call fcn.10089820
mov esi, eax
add esp, 4
test esi, esi
je 0x1008a46d
lea ecx, [ebp - 0x2c]
call fcn.10004cc0
mov eax, esi
jmp 0x1008a5f9
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x1008a47d
lea eax, [ebp - 0x2c]
push 0
push 6
lea esi, [ebx + 4]
push esi
push eax
call fcn.100888d0
add esp, 0x10
test eax, eax
je 0x1008a4b7
mov dword [esi], 0
call fcn.10089750
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x1008a4b0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100b2e51
add esp, 4
mov eax, esi
jmp 0x1008a5f9
mov esi, dword [esi]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x1a0], 0x7d0
test eax, eax
je 0x1008a4d4
push eax
call dword [0x1010a8e0]
add esp, 4
mov dword [esi + 0x194], 0x10087dd0
mov dword [esi + 0x198], esi
mov dword [esi + 0x19c], 0
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x1008a4ff
push esi
call dword [0x1010a8e8]
add esp, 4
xor edi, edi
cmp byte [ebx + 0x58], 0
mov dword [ebx], 0
je 0x1008a5e5
mov eax, dword [ebx + 0x5c]
xor esi, esi
sub eax, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
je 0x1008a532
mov ecx, 1
sub eax, ecx
je 0x1008a52d
sub eax, ecx
jne 0x1008a532
mov dword [ebp - 0x50], ecx
jmp 0x1008a539
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.1008a000
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1008a583
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.100b3d44
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.1008a000
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1008a583
mov eax, dword [ebp - 0x54]
push eax
call fcn.100b3d44
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x50], ecx
jge 0x1008a592
mov edi, 0xd
jmp 0x1008a5c3
inc esi
mov dword [ebp - 0x58], esi
cmp esi, dword [ebp - 0x50]
jg 0x1008a5bf
jmp 0x1008a5a0
push ebx
mov edx, esi
call fcn.1008a620
mov edi, eax
test edi, edi
jne 0x1008a5b6
inc esi
cmp esi, dword [ebp - 0x50]
jle 0x1008a5a0
jmp 0x1008a5e5
cmp dword [ebp - 0x58], esi
jne 0x1008a5bf
xor edi, edi
jmp 0x1008a5e5
test edi, edi
je 0x1008a5e5
cmp dword [ebx], 0
jne 0x1008a5e5
mov eax, dword [ebx + 4]
test eax, eax
je 0x1008a5e5
push eax
call fcn.10087730
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx], 1
cmp dword [ebp - 0x18], 0x10
jb 0x1008a5f7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100b2e51
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.100b2e5c
mov esp, ebp
pop ebp
ret 4