Function at 0x4dbb80
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [ecx + 0x14], esi
mov ebx, edx
mov dword [esp + 0x18], ecx
je 0x4dbf02
push 0xffffffffffffffff
push esi
lea ecx, [ebx + 0x10]
push eax
mov dword [esp + 0x28], ecx
call fcn.004025b0
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov word [esp + 0x50], si
mov dword [esp + 0x78], esi
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
mov dword [esp + 0x14], esi
jbe 0x4dbc01
call fcn.00510270
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x4dbc0e
call fcn.00510270
push edi
push ebx
push esi
push ebx
lea eax, [esp + 0x4c]
push eax
call fcn.00473f50
mov eax, dword [0x5bae6c]
push 0x5660e8
xor edi, edi
mov ecx, 0x5bae58
call fcn.00405f30
test eax, eax
je 0x4dbeb8
mov dword [esp + 0x10], 0x5bae58
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea esi, [esp + 0x28]
call fcn.00405480
add esp, 8
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 1
call fcn.004025b0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x38], 8
jb 0x4dbc88
mov eax, dword [esp + 0x24]
push eax
call fcn.004e946d
add esp, 4
push 0x24
call fcn.004e943d
add esp, 4
cmp eax, edi
je 0x4dbcad
mov dword [eax + 0x20], 7
mov dword [eax + 0x1c], edi
mov word [eax + 0xc], di
mov dword [eax], edi
mov dword [eax + 4], edi
mov esi, eax
jmp 0x4dbcaf
xor esi, esi
cmp esi, edi
mov dword [esp + 0x3c], esi
je 0x4dbeee
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x4dbcca
lea eax, [esp + 0x50]
push esi
push eax
call sub.sqlite3.dll_sqlite3_open16
add esp, 8
test eax, eax
jne 0x4dbf06
mov ecx, dword [esi]
push 0x26
push str.5CFA5DAC_B803_4ae1_91B1_57EE4C2C6D58
push ecx
call sub.sqlite3.dll_sqlite3_key
add esp, 0xc
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x54]
lea ecx, [esi + 8]
push edx
call fcn.004025b0
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4dbd09
xor edx, edx
jmp 0x4dbd11
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
cmp eax, edi
je 0x4dbd2e
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x4dbd2e
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x4dbd4f
mov edi, dword [ebx + 8]
cmp eax, edi
jbe 0x4dbd3a
call fcn.00510270
push edi
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
mov eax, ebx
call fcn.004ac700
xor edi, edi
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004e2b90
cmp eax, 0xffffffff
je 0x4dbd6b
cmp eax, edi
jne 0x4dbe82
jmp 0x4dbe77
push edi
push 0x5660e8
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.004029f0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4dbdae
push eax
call sub.sqlite3.dll_sqlite3_reset
mov edx, dword [esi + 4]
add esp, 4
push edx
call sub.sqlite3.dll_sqlite3_finalize
add esp, 4
test eax, eax
jne 0x4dbdbf
mov dword [esi + 4], edi
mov eax, dword [esi]
push eax
call sub.sqlite3.dll_sqlite3_close
add esp, 4
test eax, eax
jne 0x4dbdbf
mov dword [esi], edi
mov byte [esp + 0x78], 0
cmp dword [esp + 0x38], 8
jb 0x4dbdd8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
mov edi, dword [esp + 0x50]
mov dword [esp + 0x38], 7
jae 0x4dbdf8
lea edi, [esp + 0x50]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4dbe37
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x4dbe37
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4dbe21
mov eax, 0x80
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4dbe37
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
jae 0x4dbe46
lea eax, [esp + 0x50]
push esi
push eax
call sub.sqlite3.dll_sqlite3_open16
add esp, 8
test eax, eax
jne 0x4dbe77
mov edx, dword [esi]
push 0x26
push str.5CFA5DAC_B803_4ae1_91B1_57EE4C2C6D58
push edx
call sub.sqlite3.dll_sqlite3_key
add esp, 0xc
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esi + 8]
call fcn.004025b0
mov ecx, dword [esp + 0x10]
push esi
push ebx
call fcn.004dc1a0
mov eax, dword [esp + 0x14]
add eax, 1
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx*4 + 0x5bae58]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x14]
push 0x5660e8
xor edi, edi
mov dword [esp + 0x14], ecx
call fcn.00405f30
test eax, eax
jne 0x4dbc42
cmp dword [esp + 0x64], 8
jb 0x4dbecc
mov eax, dword [esp + 0x50]
push eax
call fcn.004e946d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0050fe87
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x64], 8
jb 0x4dbf02
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004e946d
add esp, 4
xor al, al
jmp 0x4dbece
cmp dword [esp + 0x64], 8
jb 0x4dbf02
mov edx, dword [esp + 0x50]
push edx
call fcn.004e946d
add esp, 4
xor al, al
jmp 0x4dbece