Function at 0x101a2740
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 [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101f4f80], 0
jne 0x101a2764
call fcn.1001b2e0
cmp dword [0x101f4570], 0
jne 0x101a2782
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp byte [0x101f4564], 1
mov esi, 0
jne 0x101a27e0
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 0x101a27ef
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 0x101a2880
cmp edi, 0x1fe
jne 0x101a2868
mov dword [ebp - 0x218], esi
push esi
push dword [ebp + 8]
call sym.nss3.dll_PR_vsmprintf
add esp, 8
test eax, eax
jne 0x101a2938
lea eax, [ebp - 0x210]
cmp byte [edi + eax - 1], 0xa
je 0x101a2880
mov word [ebp + edi - 0x210], 0xa
inc edi
mov eax, dword [0x101f4560]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101f4574]
test eax, eax
jne 0x101a28ca
mov eax, dword [0x101f4570]
cmp eax, 0xfffffffe
jne 0x101a2910
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 0x101a29dd
mov esi, dword [0x101f4578]
lea ecx, [esi + edi]
cmp ecx, dword [0x101f457c]
jbe 0x101a29c4
mov ecx, dword [0x101f4570]
sub esi, eax
cmp ecx, 0xfffffffe
jne 0x101a29a1
mov bl, byte [eax + esi]
mov byte [eax + esi], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, dword [0x101f4574]
mov eax, dword [0x101f4578]
mov byte [eax], bl
jmp 0x101a29c4
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 [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
jmp 0x101a29dd
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 [0x101f4560]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101f4574]
test eax, eax
je 0x101a2a1f
mov edx, dword [0x101f4570]
mov ecx, dword [0x101f4578]
sub ecx, eax
cmp edx, 0xfffffffe
jne 0x101a29f8
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 [0x101f4574]
mov ecx, dword [0x101f4578]
mov dl, byte [ebp - 0x241]
mov byte [ecx], dl
jmp 0x101a2a1a
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 [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov esi, dword [0x101f4574]
lea eax, [ebp - 0x210]
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [0x101f4578], esi
mov eax, dword [0x101f4560]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
call sym.nss3.dll_PR_LogFlush
jmp 0x101a276d
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 [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f4574]
mov dword [0x101f4578], eax
mov eax, dword [0x101f4570]
cmp eax, 0xfffffffe
jne 0x101a2a51
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 0x101a2a74
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 [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f4570]
cmp eax, 0xfffffffe
jne 0x101a2a91
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 0x101a2aae
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 [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
test edi, edi
je 0x101a2ab9
cmp byte [edi + esi - 1], 0xa
je 0x101a2af7
mov byte [ebp - 0x212], 0xa
mov eax, dword [0x101f4570]
cmp eax, 0xfffffffe
jne 0x101a2add
lea eax, [ebp - 0x212]
mov byte [eax + 1], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x101a2af7
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push dword [0x101f4570]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101f4560]
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 0x101a29eb