Function at 0x492100
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58216e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push str.tmp_012.mdb
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.004924b0
add esp, 4
test eax, eax
je 0x49214f
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
push str.ProviderMicrosoft.Jet.OLEDB.4.0_Data_Source_s
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
mov esi, dword [ebp - 0x14]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x4921a1
push esi
mov ecx, eax
call fcn.00427ce0
mov ebx, eax
jmp 0x4921a3
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], ebx
jne 0x4921b8
push 0x8007000e
call fcn.00571280
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
push edi
lea eax, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Format
mov esi, dword [ebp - 0x14]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x4921ef
push esi
mov ecx, eax
call fcn.00427ce0
jmp 0x4921f1
xor eax, eax
test eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], eax
jne 0x492206
push 0x8007000e
call fcn.00571280
push 7
push 0
push 0x5feba0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
mov dword [ebp + 8], 0
call fcn.00415b40
test eax, eax
jge 0x492233
cmp eax, 0x80004002
je 0x492233
push eax
call fcn.00571280
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
test ebx, ebx
mov dword [eax], ebx
je 0x492249
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call fcn.00415c40
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00427c50
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00415940
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_rename]
push edi
call esi
add esp, 8
test eax, eax
jne 0x492294
mov eax, dword [ebp - 0x18]
push edi
push eax
call esi
add esp, 8
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
test eax, eax
je 0x4922a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4922b8
call fcn.00427d20
mov dword [ebp - 0x1c], 0
test ebx, ebx
je 0x4922ca
mov ecx, ebx
call fcn.00427d20
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret