Function at 0x422a50
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4502db
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.004493f0
mov eax, dword [0x463858]
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, ecx
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.0042c460
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00430a67
lea ecx, [ebp - 0x218]
sub eax, ecx
and eax, 0xfffffffe
add esp, 8
cmp eax, 0x208
jae 0x422d52
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
push 0x7ce
push eax
mov word [ebp - 0x9e8], ax
lea eax, [ebp - 0x9e6]
push eax
call fcn.004368a0
add esp, 0xc
lea eax, [ebp - 0x11b7]
push 0x7cf
push 0
push eax
mov byte [ebp - 0x11b8], 0
call fcn.004368a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x9e8]
push 0x3e8
push eax
call fcn.00430b3e
add esp, 0xc
lea eax, [ebp - 0x9e8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.modulescoredbCORE.FDB
lea eax, [ebp - 0x9e8]
push 0x3e8
push eax
call fcn.004307ee
add esp, 0xc
lea eax, [ebp - 0x11b8]
push 0
push 0
push 0x7d0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x9e8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x11b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x422d36
mov dword [ebp - fcn.00420c20], vtable.CSqlManager.0
lea eax, [ebp - 0x11b8]
push eax
lea eax, [ebp - 0x123c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
mov dword [ebp - 0x123c], 0
call fcn.00420c20
test al, al
je 0x422d36
xor eax, eax
push 0x40
push eax
mov word [ebp - 0x11f0], ax
mov dword [ebp - 0x11ec], eax
lea eax, [ebp - 0x1230]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1238], xmm0
call fcn.004368a0
mov esi, dword [ebp - 0x123c]
add esp, 0xc
lea eax, [ebp - 0x1238]
mov dword [ebp - 0x11e4], eax
push 4
lea eax, [ebp - 0x1230]
mov dword [ebp - 0x11d8], eax
lea ecx, [ebp - 0x11e8]
push ecx
lea eax, [ebp - 0x11f0]
mov dword [ebp - 0x11cc], eax
push 0
lea eax, [ebp - 0x11ec]
mov dword [ebp - 0x11e8], 0x244
mov dword [ebp - 0x11e0], 8
mov dword [ebp - 0x11dc], 0x1c4
mov dword [ebp - 0x11d4], 0x40
mov dword [ebp - 0x11d0], 0x1f4
mov dword [ebp - 0x11c8], 2
mov dword [ebp - 0x11c4], 0x1f0
mov dword [ebp - 0x11c0], eax
mov dword [ebp - 0x11bc], 4
mov eax, dword [esi]
push 0
push str.SELECT_ID_NAME_ENABLED_LAST_BUILD_FROM_TY_MODULES_ORDER_BY_ID
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x422d18
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x1238]
cmp eax, edi
jae 0x422cdc
mov eax, dword [ebx]
lea ecx, [ebp - 0x1238]
cmp eax, ecx
ja 0x422cdc
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x422ccb
push ecx
mov ecx, ebx
call fcn.00424350
mov edi, dword [ebx + 4]
lea esi, [esi + esi*4]
shl esi, 4
add esi, dword [ebx]
test edi, edi
je 0x422cfd
jmp 0x422cf6
cmp edi, dword [ebx + 8]
jne 0x422ce9
push ecx
mov ecx, ebx
call fcn.00424350
mov edi, dword [ebx + 4]
test edi, edi
je 0x422d03
lea esi, [ebp - 0x1238]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x123c]
add dword [ebx + 4], 0x50
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x422c92
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, esi
call fcn.0041e2d0
mov ecx, esi
call fcn.0041dd60
push esi
call fcn.0042fe33
add esp, 4
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.0042f36b
mov esp, ebp
pop ebp
ret
call fcn.004304a1
int3