Function at 0x100df5e0
Capabilities:
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 [0x101f1014]
xor eax, ebp
mov dword [esp + 0x860], eax
test ecx, ecx
je 0x100df933
cmp dword [ebp + 8], 0
je 0x100df93c
mov edi, ecx
mov dword [esp + 4], edx
push ecx
call sym.nss3.dll_PORT_Strdup_Util
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x100dfaa5
mov ebx, eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc byte [eax + ebx - 1]
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.100dfba0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
movzx eax, word [eax + 6]
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edi
mov ecx, edi
call fcn.100dfac0
test eax, eax
je 0x100df95d
mov edi, eax
cmp dword [esp + 0x14], 0
mov eax, 0x180
cmove eax, dword [esp + 8]
mov dword [esp + 0x24], 0
mov ecx, ebx
xor edx, edx
push eax
call fcn.100de360
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x100df953
push dword [esp + 4]
push 0x101d01a2
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov esi, eax
test eax, eax
je 0x100df6bc
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
push dword [esp + 4]
push 0x101ca24a
call sym.nss3.dll_NSSUTIL_ArgGetParamValue
add esp, 8
mov esi, eax
mov dword [esp + 4], 0
mov eax, 0
test esi, esi
je 0x100df6ed
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
push edi
push 0x800
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], ebx
mov cl, 1
je 0x100df96e
mov dword [esp + 0x10], edi
mov dword [esp + 4], 0
mov ebx, ecx
mov dword [esp + 0x14], ecx
cmp byte [esp + 0x60], 0xa
jne 0x100df788
mov edi, dword [esp + 4]
test edi, edi
je 0x100df75c
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push dword [esp + 8]
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
mov dword [esp + 4], 0
test bl, 1
mov edi, dword [esp + 0x10]
je 0x100df8d5
push dword [esp + 8]
lea ebx, [esp + 0x64]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
add esp, 8
jmp 0x100df8d9
test bl, 1
je 0x100df82e
test cl, 1
je 0x100df80a
cmp dword [esp + 0x18], 0
je 0x100df7d3
push 5
push str.name
lea eax, [esp + 0x68]
push eax
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x100df7d3
push dword [esp + 0x24]
push dword [esp + 0x1c]
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 0x100df8f9
test esi, esi
je 0x100df80a
push 8
push str.library
lea eax, [esp + 0x68]
push eax
call sym.nss3.dll_PL_strncasecmp
add esp, 0xc
test eax, eax
jne 0x100df80a
push dword [esp + 0x28]
push esi
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 0x100df8f9
lea eax, [esp + 0x60]
push eax
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 0x100df858
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x100df85a
push edi
push 0x800
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x100df96a
cmp byte [esp + 0x60], 0xa
jne 0x100df82e
xor ebx, ebx
jmp 0x100df730
xor edi, edi
mov dword [esp + 0x2c], esi
lea ebx, [edi + esi]
mov eax, ebx
inc eax
js 0x100df8a4
push eax
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100df8a4
mov esi, eax
add edi, eax
push dword [esp + 0x2c]
lea eax, [esp + 0x64]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea ebx, [esp + 0x60]
mov dword [esp + 4], esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
jmp 0x100df8d9
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [esp + 4]
test eax, eax
je 0x100df8c5
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esp + 4], 0
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
lea ebx, [esp + 0x60]
push edi
push 0x800
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
mov bl, 1
test eax, eax
mov ecx, dword [esp + 0x14]
jne 0x100df729
jmp 0x100df96e
mov eax, dword [esp + 4]
test eax, eax
je 0x100df90b
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
push 0x800
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
xor ecx, ecx
mov dword [esp + 4], 0
test eax, eax
jne 0x100df71b
jmp 0x100df96e
push 0
push 0xffffe005
jmp 0x100df943
push 0
push 0xffffe042
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
jmp 0x100dfaa5
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, ebx
call fcn.100dfc20
push ebx
jmp 0x100dfa9c
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push edi
mov ebx, ecx
call esi
add esp, 4
push dword [esp + 8]
call esi
add esp, 4
test bl, 1
je 0x100df99a
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.100dfc20
jmp 0x100dfa63
mov ecx, dword [esp + 0x1c]
call fcn.100dfc20
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
mov ebx, dword [esp + 0x2c]
push ebx
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100dfa63
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100dfa63
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 0x100dfa59
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100dfa59
mov edi, eax
add eax, eax
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100dfa59
push edi
mov edi, eax
push eax
push 0xffffffffffffffff
push dword [esp + 0x28]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100dfa4f
push edi
push esi
call dword [sym.imp.kernel32.dll_MoveFileW]
mov eax, dword [sym.imp.mozglue.dll_free]
push esi
mov esi, eax
call eax
add esp, 4
push edi
call esi
jmp 0x100dfa60
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100dfa7f
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
mov edi, dword [esp + 4]
je 0x100dfa95
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
test edi, edi
je 0x100dfaa5
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [esp + 0x860]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret