Function at 0x1018b1e0
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 [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101de200], 0
jne 0x1018b204
call fcn.100745e0
cmp dword [0x101de180], 0
jne 0x1018b222
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp byte [0x101de174], 1
mov esi, 0
jne 0x1018b280
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 0x1018b28f
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 0x1018b320
cmp edi, 0x1fe
jne 0x1018b308
mov dword [ebp - 0x218], esi
push esi
push dword [ebp + 8]
call sym.nss3.dll_PR_vsmprintf
add esp, 8
test eax, eax
jne 0x1018b3ce
lea eax, [ebp - 0x210]
cmp byte [edi + eax - 1], 0xa
je 0x1018b320
mov word [ebp + edi - 0x210], 0xa
inc edi
mov eax, dword [0x101de170]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101de184]
test eax, eax
jne 0x1018b36a
mov eax, dword [0x101de180]
cmp eax, 0xfffffffe
jne 0x1018b3a6
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 0x1018b467
mov esi, dword [0x101de188]
lea ecx, [esi + edi]
cmp ecx, dword [0x101de18c]
jbe 0x1018b44e
mov ecx, dword [0x101de180]
cmp ecx, 0xfffffffe
jne 0x1018b429
mov bl, byte [esi]
mov byte [esi], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101de188]
mov byte [eax], bl
jmp 0x1018b448
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 [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
jmp 0x1018b467
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 [0x101de170]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101de184]
test eax, eax
je 0x1018b4ab
mov edx, dword [0x101de180]
mov ecx, dword [0x101de188]
cmp edx, 0xfffffffe
jne 0x1018b482
mov dl, byte [ecx]
mov byte [ebp - 0x241], dl
mov byte [ecx], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101de188]
mov cl, byte [ebp - 0x241]
mov byte [eax], cl
jmp 0x1018b4a1
sub esi, eax
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 [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov esi, dword [0x101de184]
lea eax, [ebp - 0x210]
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [0x101de188], esi
mov eax, dword [0x101de170]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
call sym.nss3.dll_PR_LogFlush
jmp 0x1018b20d
sub ecx, eax
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 [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101de184]
mov dword [0x101de188], eax
mov eax, dword [0x101de180]
cmp eax, 0xfffffffe
jne 0x1018b4dd
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 0x1018b500
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 [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101de180]
cmp eax, 0xfffffffe
jne 0x1018b51d
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 0x1018b53a
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 [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
test edi, edi
je 0x1018b545
cmp byte [edi + esi - 1], 0xa
je 0x1018b585
mov word [ebp - 0x212], 0xa
mov eax, dword [0x101de180]
cmp eax, 0xfffffffe
jne 0x1018b56b
lea eax, [ebp - 0x212]
mov byte [eax + 1], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x1018b585
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push dword [0x101de180]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101de170]
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 0x1018b475