Function at 0x458ee0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x482833
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
mov dword [esp + 0x24], 1
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 4
mov byte [esp + 0x28], 2
call fcn.004648f3
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x24], 3
je 0x458f4c
mov ecx, eax
call fcn.00401000
mov esi, eax
jmp 0x458f4e
xor esi, esi
test esi, esi
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x24], 2
jne 0x458f62
xor bl, bl
jmp 0x459088
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00401020
test al, al
jne 0x458f92
push str._ERROR_UpdateAdviveMessage___DB_not_open._n
call fcn.00401010
push str.ERROR_UpdateAdviveMessage___DB_not_open._n
push 2
call fcn.00448d80
add esp, 0xc
mov bl, 1
jmp 0x459066
push str.TempName
push ebp
lea ecx, [esp + 0x1c]
push str.ATTACH_DATABASE__s_AS__s
push ecx
call fcn.00448fb0
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0
push edi
mov ecx, esi
call fcn.004010a0
test al, al
jne 0x458fde
push edi
push str._ERROR_UpdateAdviveMessage___Attach_DB.___s__n
call fcn.00401010
push edi
push str.ERROR_UpdateAdviveMessage___Attach_DB.___s__n
push 2
call fcn.00448d80
add esp, 0x14
mov bl, 1
jmp 0x459066
mov ecx, esi
call fcn.00401120
push str.AdvisorList
lea edx, [esp + 0x18]
push str.DROP_TABLE__s
push edx
call fcn.00448fb0
mov edi, dword [esp + 0x20]
add esp, 0xc
push 0
push edi
mov ecx, esi
call fcn.004010a0
mov bl, al
test bl, bl
je 0x459044
push str.TempName
push str.AdvisorList
lea eax, [esp + 0x1c]
push str.CREATE_TABLE__s_AS_SELECT__FROM__s.AdvisorList
push eax
call fcn.00448fb0
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0
push edi
mov ecx, esi
call fcn.004010a0
mov bl, al
test bl, bl
jne 0x45910a
push edi
push str._ERROR_UpdateAdviveMessage___ExecuteNonQuery__s_n
call fcn.00401010
push edi
push str.ERROR_UpdateAdviveMessage___ExecuteNonQuery__s_n
push 2
call fcn.00448d80
add esp, 0x14
mov ecx, esi
call fcn.00401160
mov ecx, esi
call fcn.00401040
mov ecx, esi
call fcn.00401010
push esi
call fcn.00464923
add esp, 4
test bl, bl
je 0x459088
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4590a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4590ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4590f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ecx, esi
call fcn.00401140
jmp 0x459066