Function at 0x41d470
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x43f6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4530e4]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov eax, dword [0x4530e4]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov esi, dword [sym.imp.mxdb.dll_CreateMxDbObj2]
xor ebx, ebx
push 0x4564a8
mov dword [0x4564a8], ebx
mov dword [0x4564ac], ebx
call esi
push 0x4564ac
call esi
mov ecx, dword [0x4555a4]
add esp, 8
push 0x104
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x44]
push 0x5c
push edx
call fcn.0042c19e
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x258], ebx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea eax, [esp + 0x44]
mov byte [esp + 0x258], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d530
sub eax, edx
sar eax, 1
lea edx, [esp + 0x44]
push 0xfde9
mov esi, eax
push edx
lea eax, [esp + 0x30]
call fcn.0040bea0
add esp, 8
push 0xb
push str.V_drive.cfg
lea eax, [esp + 0x30]
call fcn.00409720
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d570
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x44]
push 0xfde9
mov esi, eax
push ecx
lea eax, [esp + 0x14]
call fcn.0040bea0
add esp, 8
push 0xc
push str.V_drive.meta
lea eax, [esp + 0x14]
call fcn.00409720
mov eax, dword [esp + 0x2c]
mov esi, 0x10
cmp dword [esp + 0x40], esi
jae 0x41d5ba
lea eax, [esp + 0x2c]
mov ecx, dword [0x4564a8]
mov edx, dword [ecx]
push 0x446f48
push str.MxSkyFile_txmood
push eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], esi
jae 0x41d5df
lea eax, [esp + 0x10]
mov ecx, dword [0x4564ac]
mov edx, dword [ecx]
push 0x446f48
push str.MxSkyFile_txmood
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [0x4564a8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push str.Config
call eax
test al, al
jne 0x41d61e
mov ecx, dword [0x4564a8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.CREATE_TABLE_Config_key_TEXT_PRIMARY_KEY_COLLATE_NOCASE__value_TEXT__
call eax
mov ecx, dword [0x4564ac]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push str.MetaConfig
call eax
test al, al
jne 0x41d646
mov ecx, dword [0x4564ac]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.CREATE_TABLE_MetaConfig_key_TEXT_PRIMARY_KEY_COLLATE_NOCASE__value_TEXT__
call eax
mov ecx, dword [0x4564ac]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push str.Meta
call eax
test al, al
jne 0x41d66e
mov ecx, dword [0x4564ac]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.CREATE_TABLE_Meta_File_TEXT_PRIMARY_KEY_COLLATE_NOCASE__Type_TEXT__CheckSum_TEXT__Size_NUMERIC__LMT_TEXT__OBJ_TEXT__
call eax
mov ecx, dword [0x4564a8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.SELECT_value_FROM_Config_WHERE_key_
call eax
mov ecx, dword [0x4564a8]
mov dword [0x4564b0], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.UPDATE_Config_SET_value__WHERE_key_
call eax
mov ecx, dword [0x4564a8]
mov dword [0x4564b4], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.INSERT_INTO_Config_value__key__VALUES______
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564b8], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.SELECT_value_FROM_MetaConfig_WHERE_key_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564bc], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.UPDATE_MetaConfig_SET_value__WHERE_key_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564c0], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.INSERT_INTO_MetaConfig_value__key__VALUES______
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564c4], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.INSERT_INTO_Meta_File__Type__CheckSum__Size__LMT__OBJ__VALUES__________________
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564c8], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.UPDATE_Meta_SET_CheckSum___Size___LMT___OBJ__WHERE_File_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564cc], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.UPDATE_Meta_SET_File__WHERE_File_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564d0], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.DELETE_FROM_Meta_WHERE_File_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564d4], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.SELECT_File__Type__CheckSum__Size__LMT__OBJ_FROM_Meta
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564d8], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.SELECT_CheckSum__Type_FROM_Meta_WHERE_File_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564dc], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push str.SELECT_Type__CheckSum__Size__LMT__OBJ_FROM_Meta_WHERE_File_
call eax
mov ecx, dword [0x4564ac]
mov dword [0x4564e0], eax
mov edx, dword [ecx]
push str.SELECT_SUM_Size__AS_TotalSize_FROM_Meta
mov eax, dword [edx + 0x10]
call eax
mov dword [0x4564e4], eax
cmp dword [esp + 0x24], esi
jb 0x41d7c3
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042bb4c
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp dword [esp + 0x40], esi
jb 0x41d7e6
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042bb4c
add esp, 4
mov eax, 0x4564a8
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042bb57
add esp, 0x250
ret