Function at 0x41b5b0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460417
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, 8
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], eax
cmp dword [edi + 0x14], ebx
jb 0x41b5fd
mov eax, dword [edi]
jmp 0x41b5ff
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b60f
test al, 0x10
jne 0x41b64c
push 6
push 4
lea esi, [ebp - 0x1ac]
call fcn.00405930
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], ebx
jb 0x41b62c
mov edi, dword [edi]
push edi
push str.Profile_directory__s__doesnt_exist.
mov esi, eax
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x1ac]
call fcn.00405e90
jmp 0x41bb84
xor ecx, ecx
push 0x18
mov word [ebp - 0x30], cx
push str.FirefoxNSScertutil.exe
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
call fcn.00403570
lea esi, [ebp - 0xf4]
mov dword [ebp - 4], 1
call fcn.00415d10
lea edx, [ebp - 0x68]
push edx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.004034d0
add esp, 4
lea edi, [ebp - 0x30]
mov edx, eax
lea esi, [ebp - 0x110]
mov byte [ebp - 4], 3
call fcn.00404240
mov edi, 8
cmp dword [ebp - 0x54], edi
jb 0x41b6bd
mov eax, dword [ebp - 0x68]
push eax
call fcn.00444884
add esp, 4
mov ebx, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
mov word [ebp - 0x68], cx
cmp dword [ebp - 0xe0], edi
jb 0x41b6e7
mov edx, dword [ebp - 0xf4]
push edx
call fcn.00444884
add esp, 4
xor eax, eax
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xe4], esi
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], edi
jb 0x41b710
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x250], esp
push 0xa
xor eax, eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push str.mozilla_d
mov word [ecx], ax
call fcn.00403570
lea ebx, [ebp - 0xbc]
call fcn.0040e7c0
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 8
mov ebx, dword [0x477d70]
call fcn.00415a80
mov edx, eax
lea esi, [ebp - 0x84]
call fcn.00404240
mov ebx, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xa8], ebx
jb 0x41b791
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov esi, 7
xor edi, edi
lea eax, [ebp - 0x84]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xac], edi
mov word [ebp - 0xbc], dx
call fcn.00401250
push ebx
xor eax, eax
push str.cert8.db
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
call fcn.00403570
lea edi, [ebp - 0x30]
lea edx, [ebp - 0x84]
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
call fcn.00404240
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], ebx
jb 0x41b7ff
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00444884
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x54], eax
push ebx
mov dword [ebp - 0x20], ecx
xor edx, edx
mov dword [ebp - 0x58], ecx
xor eax, eax
push str.cert8.db
lea ecx, [ebp - 0x68]
mov word [ebp - 0x30], dx
mov word [ebp - 0x68], ax
call fcn.00403570
mov edx, dword [ebp - 0x24c]
lea edi, [ebp - 0x68]
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.00404240
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x54], ebx
jb 0x41b856
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00444884
add esp, 4
xor eax, eax
xor edx, edx
mov esi, 7
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x70], ebx
jae 0x41b87a
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x248]
cmp dword [eax + 0x14], ebx
jb 0x41b888
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x110]
cmp dword [ebp - 0xfc], ebx
jae 0x41b89d
lea eax, [ebp - 0x110]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x250], esp
mov dword [ecx + 0x10], edx
push 0x37
xor edx, edx
mov dword [ecx + 0x14], esi
push str._s___A__n_NetworkProfi__t__TCu_Cuw_Tuw___i___s___d___s_
mov word [ecx], dx
call fcn.00403570
lea ebx, [ebp - 0xd8]
call fcn.0040e7c0
add esp, 0x28
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xa0]
mov edi, 8
cmp dword [ebp - 0x8c], edi
jae 0x41b8eb
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x41b8f6
lea eax, [ebp - 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push ecx
push eax
call ebx
test eax, eax
je 0x41ba85
push 4
push 2
lea esi, [ebp - 0x1ac]
call fcn.00405930
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xd8]
cmp dword [ebp - 0xc4], edi
jae 0x41b931
lea ecx, [ebp - 0xd8]
push ecx
push str.Launching_certutil:__s
mov esi, eax
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x1ac]
mov byte [ebp - 4], 0x11
call fcn.00405e90
mov ecx, dword [ebp - 0xd8]
cmp dword [ebp - 0xc4], edi
jae 0x41b964
lea ecx, [ebp - 0xd8]
call fcn.00415990
test al, al
je 0x41ba57
push str..bak
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.0040b490
add esp, 0xc
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xbc]
cmp dword [ebp - 0xa8], edi
jae 0x41b9a1
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x41b9ac
lea eax, [ebp - 0x4c]
push 9
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41ba06
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x41b9c5
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x8c], edi
jae 0x41b9d9
lea eax, [ebp - 0xa0]
push 0
push ecx
push eax
call ebx
test eax, eax
jne 0x41ba3a
push 6
push 4
lea esi, [ebp - 0x1ac]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_copy_database_to_profile._Error:__d
jmp 0x41ba27
push 6
push 4
lea esi, [ebp - 0x1ac]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_rename_original_database_file._Error:__d
call fcn.00405b80
add esp, 8
lea esi, [ebp - 0x1ac]
call fcn.00405e90
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0xa8], edi
jb 0x41babd
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00444884
add esp, 4
jmp 0x41babd
push 6
push 4
lea esi, [ebp - 0x1ac]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_start_certutil__error:__d
call fcn.00405b80
lea esi, [ebp - 0x1ac]
jmp 0x41bab1
push 6
push 4
lea esi, [ebp - 0x244]
call fcn.00405930
mov esi, eax
mov byte [ebp - 4], 0x17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_copy_database_to_temporary_directory._Error:__d
call fcn.00405b80
lea esi, [ebp - 0x244]
add esp, 8
mov byte [ebp - 4], 0x11
call fcn.00405e90
lea eax, [ebp - 0x84]
push 1
push eax
call fcn.00401300
add esp, 8
cmp dword [ebp - 0xc4], edi
jb 0x41bae5
mov ecx, dword [ebp - 0xd8]
push ecx
call fcn.00444884
add esp, 4
xor ebx, ebx
xor edx, edx
mov esi, 7
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], ebx
mov word [ebp - 0xd8], dx
cmp dword [ebp - 0x38], edi
jb 0x41bb12
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
cmp dword [ebp - 0x8c], edi
jb 0x41bb35
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00444884
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0x70], edi
jb 0x41bb5e
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
cmp dword [ebp - 0xfc], edi
jb 0x41bb84
mov eax, dword [ebp - 0x110]
push eax
call fcn.00444884
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret 4