Function at 0x100cc970
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 [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x101d4d40], 0
jne 0x100cc994
call sym.nss3.dll_PR_Init
cmp dword [0x101d4cc0], 0
jne 0x100cc9b2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x23c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp byte [0x101d4cb4], 1
mov esi, 0
jne 0x100cca10
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]
movsx ecx, word [esi + 0x18]
lea edx, [ebp - 0x210]
inc eax
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 0x100cca1f
mov ebx, dword [eax + 0xdc]
mov ecx, 0x1ff
mov edi, 0x1ff
lea edx, [ebp + esi - 0x210]
sub ecx, esi
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]
sub edi, ebx
mov dword [ebp - 0x218], esi
lea eax, [ebp + ebx - 0x210]
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 0x100ccaad
cmp edi, 0x1fe
jne 0x100cca95
mov dword [ebp - 0x218], esi
push esi
push dword [ebp + 8]
call sym.nss3.dll_PR_vsmprintf
add esp, 8
test eax, eax
jne 0x100ccb5b
lea eax, [ebp - 0x210]
cmp byte [edi + eax - 1], 0xa
je 0x100ccaad
mov word [ebp + edi - 0x210], 0xa
inc edi
mov eax, dword [0x101d4cb0]
add eax, 0x1c
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101d4cc4]
test eax, eax
jne 0x100ccaf7
mov eax, dword [0x101d4cc0]
cmp eax, 0xfffffffe
jne 0x100ccb33
mov bl, byte [ebp + edi - 0x210]
lea eax, [ebp - 0x210]
mov byte [ebp + edi - 0x210], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [ebp + edi - 0x210], bl
jmp 0x100ccc02
mov esi, dword [0x101d4cc8]
lea ecx, [esi + edi]
cmp ecx, dword [0x101d4ccc]
jbe 0x100ccbe9
mov ecx, dword [0x101d4cc0]
cmp ecx, 0xfffffffe
jne 0x100ccbbe
mov bl, byte [esi]
mov byte [esi], 0
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101d4cc8]
mov byte [eax], bl
jmp 0x100ccbdd
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 [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
jmp 0x100ccc02
mov esi, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [0x101d4cb0]
mov edi, eax
add ecx, 0x1c
push ecx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x101d4cc4]
test eax, eax
je 0x100ccc4c
mov ecx, dword [0x101d4cc0]
cmp ecx, 0xfffffffe
jne 0x100ccc1d
mov ecx, dword [0x101d4cc8]
mov dl, byte [ecx]
mov byte [ecx], 0
mov byte [ebp - 0x241], dl
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov eax, dword [0x101d4cc8]
mov cl, byte [ebp - 0x241]
mov byte [eax], cl
jmp 0x100ccc42
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 [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov esi, dword [0x101d4cc4]
mov dword [0x101d4cc8], esi
lea eax, [ebp - 0x210]
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [0x101d4cc8], esi
mov eax, dword [0x101d4cb0]
add eax, 0x1c
push eax
call sym.nss3.dll__PR_MD_UNLOCK
add esp, 4
call sym.nss3.dll_PR_LogFlush
jmp 0x100cc99d
mov edx, dword [0x101d4cc8]
sub edx, eax
push ecx
push edx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push dword [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101d4cc4]
mov dword [0x101d4cc8], eax
mov eax, dword [0x101d4cc0]
cmp eax, 0xfffffffe
jne 0x100ccc7e
mov ebx, dword [ebp - 0x248]
mov al, byte [ebx]
mov byte [ebx], 0
mov byte [ebp - 0x241], al
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, byte [ebp - 0x241]
mov byte [ebx], al
jmp 0x100ccca1
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 [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101d4cc0]
cmp eax, 0xfffffffe
jne 0x100cccbe
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 0x100cccdb
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 [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
test edi, edi
je 0x100ccce6
cmp byte [edi + esi - 1], 0xa
je 0x100ccd2e
mov eax, dword [0x101d4cc0]
mov word [ebp - 0x212], 0xa
cmp eax, 0xfffffffe
jne 0x100ccd14
mov edi, esi
lea esi, [ebp - 0x212]
xor ebx, ebx
mov byte [esi + 1], bl
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [esi + 1], bl
mov esi, edi
jmp 0x100ccd2e
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push dword [0x101d4cc0]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
mov eax, dword [0x101d4cb0]
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 0x100ccc10