Function at 0x100e5ba0
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, 0x860
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x858], eax
test ecx, ecx
je 0x100e5c8a
cmp dword [ebp + 8], 0
je 0x100e5c93
mov edi, ecx
mov dword [esp + 8], edx
push ecx
call sym.nss3.dll_PORT_Strdup_Util
add esp, 4
xor ebx, ebx
dec ebx
test eax, eax
je 0x100e5e78
mov esi, eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0xc], esi
inc byte [eax + esi - 1]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
mov dword [esp + 0xc], edi
push edi
push ebx
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 4], 0x180
test eax, eax
je 0x100e5ca7
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e5ca7
mov esi, eax
push edi
push eax
push 0xffffffffffffffff
mov edi, dword [esp + 0xc]
push edi
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e5df7
lea eax, [esp + 0x28]
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
test edi, edi
mov edi, dword [esp]
lea eax, [esp + 0x28]
movzx eax, word [eax + 6]
mov ecx, 0x180
cmove ecx, eax
mov dword [esp + 4], ecx
jmp 0x100e5caa
push 0
push 0xffffe005
jmp 0x100e5c9a
push 0
push 0xffffe042
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100e5e75
mov edi, dword [esp]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
mov ebx, dword [esp + 0xc]
je 0x100e5e1a
mov esi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e5e1a
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 0x100e5e10
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push 0x101b80d0
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e5e10
mov esi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e5e10
push esi
mov esi, eax
push eax
push 0xffffffffffffffff
push 0x101b80d0
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e5e06
mov dword [esp + 0x10], 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 + 0x10]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
je 0x100e5e1a
mov edi, esi
mov ecx, ebx
xor edx, edx
push dword [esp + 4]
call fcn.100e4810
add esp, 4
mov dword [esp + 4], eax
test eax, eax
je 0x100e5e90
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 8]
push ebx
push 0x101ba7b8
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov esi, eax
test eax, eax
je 0x100e5dc7
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x20], eax
push ebx
push 0x101b4b2c
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
test eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
je 0x100e5e9c
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x100e5ea4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100e5caa
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 0x100e5e6b
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e5e6b
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 0x100e5e61
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 + 0x858]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x100e5e17
mov dword [esp + 0x1c], 0
mov cl, 1
xor esi, esi
mov dword [esp + 0x10], ecx
mov ebx, ecx
push edi
push 0x800
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100e6064
cmp byte [esp + 0x58], 0xa
je 0x100e5f82
test bl, 1
mov ebx, 0
je 0x100e5eae
test byte [esp + 0x10], 1
je 0x100e5f60
cmp dword [esp + 0x18], 0
je 0x100e5f23
push 5
push str.name
lea eax, [esp + 0x60]
push eax
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x100e5f23
push dword [esp + 0x20]
push dword [esp + 0x1c]
lea eax, [esp + 0x65]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100e6049
cmp dword [esp + 0x14], 0
je 0x100e5f60
push 8
push str.library
lea eax, [esp + 0x60]
push eax
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x100e5f60
push dword [esp + 0x1c]
push dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100e6049
lea eax, [esp + 0x58]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
test esi, esi
mov dword [esp + 8], esi
je 0x100e5fd5
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x100e5fd7
test esi, esi
je 0x100e5faa
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push dword [esp + 4]
push 1
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov cl, 1
mov esi, 0
test bl, 1
je 0x100e5eac
push dword [esp + 4]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov cl, 1
add esp, 8
xor esi, esi
jmp 0x100e5eac
xor eax, eax
mov dword [esp + 0x24], ebx
add ebx, eax
mov ecx, ebx
inc ecx
js 0x100e6019
push ecx
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100e6019
mov ecx, esi
mov esi, eax
add ecx, eax
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov cl, 1
jmp 0x100e5eac
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
mov cl, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x100e5eac
push eax
call dword [sym.imp.mozglue.dll_free]
mov cl, 1
add esp, 4
jmp 0x100e5eac
xor ecx, ecx
test esi, esi
je 0x100e5ea6
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ecx, ecx
jmp 0x100e5ea6
mov dword [esp + 8], esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push edi
call esi
add esp, 4
push dword [esp + 4]
call esi
add esp, 4
test byte [esp + 0x10], 1
je 0x100e60e2
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e61f8
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e61f8
mov esi, eax
push edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e61ee
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100e61ee
xor edi, edi
push edi
push edi
push 0xffffffffffffffff
push dword [esp + 0xc]
push edi
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e6139
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e6139
mov esi, eax
push ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e612f
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 + 0x18]
push edi
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e61f8
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e61f8
mov esi, eax
push ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e61ee
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov edi, dword [esp + 0xc]
push edi
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e61ee
mov ebx, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e61ee
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 0x100e61e4
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 0x100e61f5
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 + 0xc]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100e6217
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 8]
je 0x100e622d
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor ebx, ebx
test esi, esi
je 0x100e5e78
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100e5e78