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

Disassembly:
push 0x34
mov eax, 0x5848da
call fcn.004fb99a
mov dword [ebp - 4], 5
mov byte [ebp - 0x11], 0
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c44d7
mov byte [ebp - 4], 6
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.004b40f5
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.004a9bab
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 0x18]
push eax
call fcn.004324a9
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.004c1bb0
test al, al
je 0x4c44b1
lea eax, [ebp - 0x20]
push eax
push str.SELECT_value_FROM_ItemTable_WHERE_key
lea eax, [ebp - 0x18]
push eax
call fcn.004b0148
mov byte [ebp - 4], 0xa
mov edi, 0x5cad24
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b00e4
add esp, 0x18
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004310e3
lea ecx, [ebp - 0x1c]
call fcn.004a6aeb
push eax
lea ecx, [ebp - 0x40]
call fcn.004a4933
test al, al
je 0x4c4391
lea ecx, [ebp - 0x40]
call fcn.004a195a
test al, al
je 0x4c4391
xor ebx, ebx
xor eax, eax
cmp dword [ebp - 0x38], ebx
je 0x4c420e
push ebx
push dword [ebp - 0x38]
call fcn.0047445a
pop ecx
pop ecx
push 0xfde9
push eax
call fcn.004a08a3
pop ecx
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0043479c
mov byte [ebp - 4], 0xe
cmp esi, ebx
je 0x4c4235
push esi
call fcn.004fc324
pop ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.004324a9
mov byte [ebp - 4], 0xf
push ebx
push dword [0x606430]
mov ecx, eax
call fcn.00433966
mov ecx, eax
call fcn.00432533
test eax, eax
sets bl
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004310e3
test bl, bl
je 0x4c4368
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 0x1c]
push eax
call fcn.004aa615
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x18]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xe
call dword [ebp + 0x50]
add esp, 0x3c
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x18]
call fcn.00433c20
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004310e3
lea eax, [ebp - 0x20]
push eax
push str.UPDATE_ItemTable_SET_value__WHERE_key
lea eax, [ebp - 0x28]
push eax
call fcn.004b0148
mov byte [ebp - 4], 0x15
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004b00e4
add esp, 0x18
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b09a3
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004310e3
lea ecx, [ebp - 0x1c]
call fcn.004a6aeb
push eax
lea ecx, [ebp - 0x40]
call fcn.004a48fd
test al, al
je 0x4c436c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.0043c6a9
push eax
push 1
lea ecx, [ebp - 0x40]
call fcn.004a190b
lea ecx, [ebp - 0x40]
call fcn.004a18ef
lea ecx, [ebp - 0x40]
call fcn.004a1938
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x40]
call fcn.004a19e2
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004310e3
cmp byte [ebp - 0x11], 0
jne 0x4c4496
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp + 0x1c]
push eax
call fcn.004aa615
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 0x14]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xc
call dword [ebp + 0x50]
add esp, 0x3c
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x18]
call fcn.004324a9
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004310e3
lea eax, [ebp - 0x20]
push eax
push str.INSERT_INTO_ItemTable__key__value__VALUES__
lea eax, [ebp - 0x28]
push eax
call fcn.004b0148
mov byte [ebp - 4], 0x20
push 0x5aa5a8
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.004b00e4
add esp, 0x18
mov byte [ebp - 4], 0x21
push eax
lea ecx, [ebp - 0x1c]
call fcn.004b09a3
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp + 0x50]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004310e3
lea ecx, [ebp - 0x1c]
call fcn.004a6aeb
push eax
lea ecx, [ebp - 0x40]
call fcn.004a48fd
test al, al
je 0x4c4483
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x18]
call fcn.0043c6a9
push eax
push 1
lea ecx, [ebp - 0x40]
call fcn.004a190b
lea ecx, [ebp - 0x40]
call fcn.004a18ef
lea ecx, [ebp - 0x40]
call fcn.004a1938
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004310e3
lea ecx, [ebp - 0x40]
call fcn.004a48d3
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.004a9bf0
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004310e3
mov dword [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.004a9a6d
call fcn.004fba3f
ret 0x4c