Function at 0x101a0680
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x23c
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f2f50], 0
jne 0x101a06a4
call fcn.100029d0
cmp dword [0x101f2540], 0
jne 0x101a06c2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp byte [0x101f2534], 1
mov esi, 0
jne 0x101a0720
call sym.nss3.dll_PR_Now
lea esi, [ebp - 0x240]
push esi
push sym.nss3.dll_PR_GMTParameters
push edx
push eax
call sym.nss3.dll_PR_ExplodeTime
add esp, 0x10
mov eax, dword [esi + 0x14]
inc eax
movsx ecx, word [esi + 0x18]
lea edx, [ebp - 0x210]
push dword [esi]
push dword [esi + 4]
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 0x10]
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d._06d_UTC__
push 0x1ff
push edx
call sym.nss3.dll_PR_snprintf
add esp, 0x28
mov esi, eax
call sym.nss3.dll_PR_GetCurrentThread
test eax, eax
je 0x101a072f
mov ebx, dword [eax + 0xdc]
mov edi, 0x1ff
mov ecx, 0x1ff
sub ecx, esi
lea edx, [esi + ebp]
add edx, 0xfffffdf0
push eax
push ebx
push str._ld__p_:
push ecx
push edx
call sym.nss3.dll_PR_snprintf
add esp, 0x14
mov ebx, eax
add ebx, esi
lea esi, [ebp + 0xc]
mov dword [ebp - 0x218], esi
sub edi, ebx
lea eax, [ebx + ebp]
add eax, 0xfffffdf0
push esi
push dword [ebp + 8]
push edi
mov dword [ebp - 0x248], eax
push eax
call sym.nss3.dll_PR_vsnprintf
add esp, 0x10
mov edi, eax
add edi, ebx
je 0x101a07c0
cmp edi, 0x1fe
jne 0x101a07a8
mov dword [ebp - 0x218], esi
push esi
push dword [ebp + 8]
call sym.nss3.dll_PR_vsmprintf
add esp, 8
test eax, eax
jne 0x101a0878
lea eax, [ebp - 0x210]
cmp byte [edi + eax - 1], 0xa
je 0x101a07c0
mov word [ebp + edi - 0x210], 0xa
inc edi
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101f2544]
test eax, eax
jne 0x101a080a
mov eax, dword [0x101f2540]
cmp eax, 0xfffffffe
jne 0x101a0850
mov bl, byte [ebp + edi - 0x210]
mov byte [ebp + edi - 0x210], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [ebp + edi - 0x210], bl
jmp 0x101a091d
mov esi, dword [0x101f2548]
lea ecx, [esi + edi]
cmp ecx, dword [0x101f254c]
jbe 0x101a0904
mov ecx, dword [0x101f2540]
sub esi, eax
cmp ecx, 0xfffffffe
jne 0x101a08e1
mov bl, byte [eax + esi]
mov byte [eax + esi], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, dword [0x101f2544]
mov eax, dword [0x101f2548]
mov byte [eax], bl
jmp 0x101a0904
lea ecx, [ebp - 0x210]
push eax
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
jmp 0x101a091d
mov esi, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov edi, eax
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101f2544]
test eax, eax
je 0x101a095f
mov edx, dword [0x101f2540]
mov ecx, dword [0x101f2548]
sub ecx, eax
cmp edx, 0xfffffffe
jne 0x101a0938
mov dl, byte [eax + ecx]
mov byte [ebp - 0x241], dl
mov byte [eax + ecx], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101f2544]
mov ecx, dword [0x101f2548]
mov dl, byte [ebp - 0x241]
mov byte [ecx], dl
jmp 0x101a095a
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov esi, dword [0x101f2544]
lea eax, [ebp - 0x210]
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [0x101f2548], esi
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
call sym.nss3.dll_PR_LogFlush
jmp 0x101a06ad
push edx
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f2544]
mov dword [0x101f2548], eax
mov eax, dword [0x101f2540]
cmp eax, 0xfffffffe
jne 0x101a0991
mov ebx, dword [ebp - 0x248]
mov al, byte [ebx]
mov byte [ebp - 0x241], al
mov byte [ebx], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [ebp - 0x241]
mov byte [ebx], al
jmp 0x101a09b4
lea ecx, [ebp - 0x210]
push eax
push ebx
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f2540]
cmp eax, 0xfffffffe
jne 0x101a09d1
mov bl, byte [esi + edi]
mov byte [esi + edi], 0
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [esi + edi], bl
jmp 0x101a09ee
push eax
push edi
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
test edi, edi
je 0x101a09f9
cmp byte [edi + esi - 1], 0xa
je 0x101a0a37
mov byte [ebp - 0x212], 0xa
mov eax, dword [0x101f2540]
cmp eax, 0xfffffffe
jne 0x101a0a1d
lea eax, [ebp - 0x212]
mov byte [eax + 1], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x101a0a37
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push dword [0x101f2540]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f2530]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
push esi
call dword [sym.imp.mozglue.dll_free]
jmp 0x101a092b