Function at 0x101489f0
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 [0x101d2014]
xor eax, ebp
test ecx, ecx
mov dword [esp + 0x50], eax
je 0x10148aac
mov eax, dword [ebp + 8]
test eax, eax
je 0x10148ab5
mov ebx, edx
mov edi, ecx
push eax
call fcn.10148e10
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 0x10148aee
lea eax, [esi + esi]
mov dword [esp], ebx
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
test eax, eax
je 0x10148ae6
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 0x10148adc
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
lea eax, [esp + 0x20]
mov ebx, dword [esp]
test esi, esi
mov ecx, 0x180
movzx eax, word [eax + 6]
cmove ecx, eax
mov eax, ecx
jmp 0x10148aee
push 0
push 0xffffe005
jmp 0x10148abc
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.10192ef0
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
mov ecx, edi
inc edx
push eax
call fcn.10147a60
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x10148ac7
mov dword [esp + 0x10], eax
push ebx
call sym.nss3.dll_NSSUTIL_ArgStrip
add esp, 4
cmp byte [eax], 0
je 0x10148df2
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 ecx, 1
mov dword [esp + 4], edi
cmove esi, ecx
test ebx, ebx
mov dword [esp + 8], esi
je 0x10148d1b
mov eax, dword [esp]
mov dword [esp + 0xc], ebx
sub ebx, edi
inc ebx
test eax, eax
je 0x10148b77
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
jmp 0x10148b79
xor edi, edi
lea esi, [edi + ebx]
mov eax, esi
inc eax
js 0x10148cc8
push eax
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x10148cc8
add edi, eax
push ebx
push dword [esp + 8]
push edi
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
mov byte [edi + esi], 0
inc ebx
push eax
push ebx
call sym.nss3.dll_NSSUTIL_ArgFetchValue
add esp, 8
test eax, eax
je 0x10148c53
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 0x10148ce0
mov esi, ebx
push eax
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x10148ce0
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 0x10148c59
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 0x10148c8a
push eax
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x10148c8a
mov word [eax + edi], 0xa
mov dword [esp], eax
jmp 0x10148cad
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 0x10148b22
jmp 0x10148d9d
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [esp]
test esi, esi
jne 0x10148cff
jmp 0x10148d09
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 0x10148ac4
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 0x10148d3a
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
jmp 0x10148d3c
xor esi, esi
mov dword [esp + 0xc], edi
add edi, esi
mov eax, edi
inc eax
js 0x10148d74
push eax
push dword [esp + 4]
call dword [sym.imp.mozglue.dll_realloc]
add esp, 8
test eax, eax
je 0x10148d74
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 0x10148d96
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [esp]
xor ebx, ebx
test eax, eax
je 0x10148d96
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 0x10148df2
test esi, esi
jne 0x10148dbd
push str.library_n
push dword [esp + 0x14]
call fcn.100ccf50
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 0x101c3b3e
push esi
call fcn.100ccf50
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 0x10148ac7