Function at 0x10148e10
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x868
mov eax, dword [0x101d2014]
xor eax, ebp
test ecx, ecx
mov dword [esp + 0x860], eax
je 0x10148efb
cmp dword [ebp + 8], 0
je 0x10148f04
mov edi, ecx
mov dword [esp + 4], edx
push ecx
call sym.nss3.dll_PORT_Strdup_Util
add esp, 4
xor ebx, ebx
dec ebx
test eax, eax
je 0x101490ec
mov esi, eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x10], esi
inc byte [eax + esi - 1]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
mov dword [esp + 0x14], edi
push edi
push ebx
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
mov dword [esp + 0xc], 0x180
je 0x10148f18
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10148f18
mov esi, eax
push edi
push eax
push 0xffffffffffffffff
mov edi, dword [esp + 0x14]
push edi
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1014906b
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
lea eax, [esp + 0x30]
test edi, edi
mov edi, dword [esp + 8]
mov ecx, 0x180
movzx eax, word [eax + 6]
cmove ecx, eax
mov dword [esp + 0xc], ecx
jmp 0x10148f1c
push 0
push 0xffffe005
jmp 0x10148f0b
push 0
push 0xffffe042
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101490e9
mov edi, dword [esp + 8]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x1014908e
mov esi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x1014908e
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov edi, eax
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x10149084
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push 0x101af74d
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x10149084
mov esi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10149084
push esi
mov esi, eax
push eax
push 0xffffffffffffffff
push 0x101af74d
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1014907a
mov dword [esp + 0x14], esi
push esi
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
je 0x1014908e
mov ecx, ebx
xor edx, edx
push dword [esp + 0xc]
call fcn.10147a60
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x10149104
mov ebx, dword [esp + 4]
mov dword [esp + 0x24], 0
push ebx
push 0x101b1df6
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov edi, eax
test eax, eax
je 0x1014903b
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x24], eax
push ebx
push 0x101ac290
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
test eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x10149113
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x1014911b
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10148f1c
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x101490df
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x101490df
mov esi, eax
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x101490d5
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
dec ebx
mov ecx, dword [esp + 0x860]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1014908b
mov dword [esp + 0x20], 0
mov cl, 1
lea edi, [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 4], ebx
mov ebx, ecx
push dword [esp + 0x14]
push 0x800
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x101492dc
cmp byte [esp + 0x60], 0xa
je 0x101491f4
test bl, 1
mov ebx, 0
je 0x1014912d
test byte [esp + 0x28], 1
je 0x101491d6
cmp dword [esp + 0x1c], 0
je 0x1014919d
push 5
push str.name
push edi
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x1014919d
push dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x6d]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x101492bd
cmp dword [esp + 0x18], 0
je 0x101491d6
push 8
push str.library
push edi
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x101491d6
push dword [esp + 0x20]
push dword [esp + 0x1c]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x101492bd
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x1014924b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x1014924d
mov edi, dword [esp + 4]
test edi, edi
je 0x10149220
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push dword [esp + 0xc]
push 1
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test bl, 1
mov cl, 1
mov ebx, 0
lea edi, [esp + 0x60]
je 0x10149127
push dword [esp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov cl, 1
add esp, 8
xor ebx, ebx
jmp 0x10149127
xor eax, eax
lea ecx, [eax + esi]
mov edx, ecx
mov dword [esp + 0x2c], ecx
inc ecx
js 0x1014928d
push ecx
push dword [esp + 8]
mov ebx, eax
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x1014928d
mov ecx, ebx
mov ebx, eax
add ecx, eax
push esi
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov cl, 1
mov byte [ebx + eax], 0
jmp 0x10149127
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [esp + 4]
xor ebx, ebx
mov cl, 1
test eax, eax
je 0x10149127
push eax
call dword [sym.imp.mozglue.dll_free]
mov cl, 1
add esp, 4
jmp 0x10149127
mov edx, dword [esp + 4]
xor ecx, ecx
test edx, edx
je 0x10149121
push edx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ecx, ecx
jmp 0x10149121
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [esp + 0x14]
call edi
add esp, 4
push dword [esp + 0xc]
call edi
add esp, 4
test byte [esp + 0x28], 1
je 0x10149359
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1014946f
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x1014946f
mov esi, eax
push edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x10149465
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10149465
xor edi, edi
push edi
push edi
push 0xffffffffffffffff
push dword [esp + 0x14]
push edi
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x101493b0
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x101493b0
mov esi, eax
push ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x14]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x101493a6
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
push edi
push 0xffffffffffffffff
push dword [esp + 0x1c]
push edi
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1014946f
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x1014946f
mov esi, eax
push ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x10149465
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov edi, dword [esp + 0x14]
push edi
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x10149465
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10149465
mov ecx, eax
push ebx
mov ebx, eax
push ecx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1014945b
push ebx
push esi
call dword [sym.imp.kernel32.dll_MoveFileW]
push esi
mov esi, dword [sym.imp.mozglue.dll_free]
call esi
add esp, 4
push ebx
call esi
jmp 0x1014946c
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1014948e
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 4]
test eax, eax
je 0x101494a4
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
test esi, esi
je 0x101490ec
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101490ec