Function at 0x100e5780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x100e583c
mov eax, dword [ebp + 8]
test eax, eax
je 0x100e5845
mov ebx, edx
mov edi, ecx
push eax
call fcn.100e5ba0
add esp, 4
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov esi, eax
mov eax, 0x180
test esi, esi
je 0x100e587e
mov dword [esp], ebx
lea eax, [esi + esi]
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x100e5876
mov ebx, eax
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x100e586c
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
add esp, 8
mov esi, eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test esi, esi
lea eax, [esp + 0x20]
movzx eax, word [eax + 6]
mov ecx, 0x180
cmove ecx, eax
mov eax, ecx
mov ebx, dword [esp]
jmp 0x100e587e
push 0
push 0xffffe005
jmp 0x100e584c
push 0
push 0xffffe042
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [esp]
mov eax, 0x180
xor edx, edx
inc edx
mov ecx, edi
push eax
call fcn.100e4810
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x100e5857
mov dword [esp + 0x10], eax
push ebx
call sym.nss3.dll_NSSUTIL_ArgStrip
add esp, 4
cmp byte [eax], 0
je 0x100e5b82
xor esi, esi
mov dword [esp], 0
push 0x3d
push eax
mov edi, eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov ebx, eax
push 8
push str.library
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
mov eax, 1
cmove esi, eax
test ebx, ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
je 0x100e5aab
mov dword [esp + 0xc], ebx
sub ebx, edi
inc ebx
mov eax, dword [esp]
test eax, eax
je 0x100e5907
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x100e5909
xor edi, edi
lea esi, [edi + ebx]
mov eax, esi
inc eax
js 0x100e5a58
push eax
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100e5a58
add edi, eax
push ebx
push dword [esp + 8]
push edi
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
mov ebx, dword [esp + 0xc]
inc ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call sym.nss3.dll_NSSUTIL_ArgFetchValue
add esp, 8
test eax, eax
je 0x100e59e3
mov dword [esp + 0xc], ebx
mov dword [esp], eax
push eax
call sym.nss3.dll_NSSUTIL_ArgStrip
add esp, 4
mov dword [esp + 0x18], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov dword [esp + 4], edi
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
add eax, ebx
mov ecx, eax
mov dword [esp + 0x14], eax
inc eax
js 0x100e5a70
mov esi, ebx
push eax
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100e5a70
mov ebx, eax
add edi, eax
push esi
push dword [esp + 0x1c]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
mov byte [ebx + eax], 0
push dword [esp]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, ebx
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x100e59e9
mov esi, dword [esp + 8]
mov eax, edi
mov dword [esp + 4], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
add eax, 2
js 0x100e5a1a
push eax
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100e5a1a
mov word [eax + edi], 0xa
mov dword [esp], eax
jmp 0x100e5a3d
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [esp], 0
add ebx, dword [esp + 0x1c]
push ebx
call sym.nss3.dll_NSSUTIL_ArgStrip
add esp, 4
cmp byte [eax], 0
jne 0x100e58b2
jmp 0x100e5b2d
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [esp]
test esi, esi
jne 0x100e5a8f
jmp 0x100e5a99
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [esp]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x100e5854
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, dword [esp]
test eax, eax
je 0x100e5aca
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
jmp 0x100e5acc
xor esi, esi
mov dword [esp + 0xc], edi
add edi, esi
mov eax, edi
inc eax
js 0x100e5b04
push eax
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x100e5b04
mov ebx, eax
add esi, eax
push dword [esp + 0xc]
push dword [esp + 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + edi], 0
jmp 0x100e5b26
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
mov eax, dword [esp]
test eax, eax
je 0x100e5b26
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [esp + 8]
mov dword [esp], ebx
mov eax, dword [esp]
test eax, eax
je 0x100e5b82
test esi, esi
jne 0x100e5b4d
push str.library_n
push dword [esp + 0x14]
call fcn.1007c800
mov eax, dword [esp + 8]
add esp, 8
push eax
mov edi, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, dword [esp + 0x10]
push esi
push 1
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push 0x101cc82c
push esi
call fcn.1007c800
add esp, 8
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor esi, esi
jmp 0x100e5857