Function at 0x407af0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52cd3a
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x55bb24]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x55bb24]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xb0]
mov dword [esp + 0x20], eax
call fcn.00407a00
xor ebx, ebx
mov dword [esp + 0x138], ebx
call fcn.004d00f8
lea edx, [esp + 0x24]
push edx
call fcn.004d066e
add esp, 4
lea esi, [esp + 0x5c]
mov byte [esp + 0x138], 1
call fcn.0040b2f0
mov esi, eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x13c], 2
call fcn.004d05f3
add esp, 4
push esi
mov ecx, eax
lea esi, [esp + 0x7c]
mov byte [esp + 0x13c], 3
call fcn.0040a800
add esp, 4
mov esi, 8
cmp dword [esp + 0x58], esi
jb 0x407bb9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004f0cfc
add esp, 4
mov edi, 7
xor edx, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
cmp dword [esp + 0x74], esi
jb 0x407be0
mov eax, dword [esp + 0x60]
push eax
call fcn.004f0cfc
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], cx
mov byte [esp + 0x138], 7
cmp dword [esp + 0x3c], 0x10
jb 0x407c0b
mov edx, dword [esp + 0x28]
push edx
call fcn.004f0cfc
add esp, 4
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x90], esi
jae 0x407c2c
lea ecx, [esp + 0x7c]
mov eax, dword [esp + 0xb4]
cmp dword [esp + 0xc8], esi
jae 0x407c43
lea eax, [esp + 0xb4]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x407c69
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0xbc]
call fcn.00403000
jmp 0x407c7b
push ebx
push 0x5388f4
lea ecx, [esp + 0x80]
call fcn.0040b490
sub esp, 0x1c
lea edx, [esp + 0xcc]
mov esi, esp
mov dword [esp + 0x30], esp
call fcn.00427180
lea edi, [esp + 0xb0]
call fcn.004cc160
add esp, 0x1c
mov byte [esp + 0x138], 8
cmp dword [esp + 0xac], 0x10
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ebx
jae 0x407cc3
lea eax, [esp + 0x98]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, 1
call fcn.004cb6e0
add esp, 0xc
cmp eax, ebx
je 0x407e15
call fcn.004cefff
mov edx, dword [eax]
mov edi, 8
mov ecx, eax
mov eax, dword [edx + 8]
push edi
call eax
mov esi, dword [esp + 0x18]
test al, al
je 0x407d8a
push 0x534dc4
push ecx
push esi
call fcn.004cb260
add esp, 4
push eax
push ecx
push str.Cant_open_database:
push ecx
push 0x534dd4
push ecx
push 0xec
push ecx
push 0x534dd8
push ecx
push str.ChromeUtil::ReadQSId
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push edi
call fcn.004cf0e5
push esi
call fcn.004ca380
add esp, 4
cmp dword [esp + 0xac], 0x10
jb 0x407dad
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004f0cfc
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x90], edi
jb 0x407ddc
mov edx, dword [esp + 0x7c]
push edx
call fcn.004f0cfc
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
cmp dword [esp + 0xc8], edi
jb 0x407e0e
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004f0cfc
add esp, 4
xor eax, eax
jmp 0x407fe6
lea edx, [esp + 0xcc]
push edx
call fcn.00407670
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x407710
mov byte [esp + 0x144], 9
mov edi, dword [esp + 0x24]
push str.select_t2.id__t2.keyword__t2.short_name__t2.input_encodings_from_meta_t1__keywords_t2_where_t1.keyDefault_Search_Provider_ID_AND_t1.valuet2.id
push edi
call fcn.004aff80
add esp, 0x14
test eax, eax
je 0x407efe
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 8
call eax
mov esi, dword [esp + 0x14]
test al, al
je 0x407ef5
push 0x534dc4
push ecx
push esi
push ecx
push str.SQL_error:
push ecx
push 0x534dd4
push ecx
push 0xf4
push ecx
push 0x534dd8
push ecx
push str.ChromeUtil::ReadQSId
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 8
call fcn.004cf0e5
push esi
call fcn.00474c80
add esp, 4
push edi
call fcn.004ca380
add esp, 4
cmp dword [esp + 0x8c], ebx
je 0x407f29
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x407f22
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00402e40
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd8]
push edx
call fcn.00402e40
mov edi, dword [esp + 0xcc]
lea esi, [esp + 0xcc]
call fcn.00408010
cmp dword [esp + 0xac], 0x10
jb 0x407f7e
mov eax, dword [esp + 0x98]
push eax
call fcn.004f0cfc
add esp, 4
mov esi, 8
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x90], esi
jb 0x407fb2
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004f0cfc
add esp, 4
xor edx, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], dx
cmp dword [esp + 0xc8], esi
jb 0x407fe4
mov eax, dword [esp + 0xb4]
push eax
call fcn.004f0cfc
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004f070d
mov esp, ebp
pop ebp
ret