Function at 0x1001c120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101f4560], eax
push str.NSPR_LOG_MODULES
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
jne 0x1001c160
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
cmp byte [eax], 0
je 0x1001c14e
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x60], 0x4000
mov dword [ebp - 0x68], eax
test eax, eax
jle 0x1001c2ed
mov dword [ebp - 0x60], 0x4000
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
add eax, esi
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push ecx
lea ecx, [ebp - 0x50]
push ecx
push str._63_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789____n:_d_n
push eax
call fcn.101a2480
add esp, 0x18
test eax, eax
je 0x1001c2e5
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0x101d1f66
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1001c22b
xor eax, eax
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
add eax, esi
lea ecx, [ebp - 0x58]
push ecx
push str.____n
push eax
call fcn.101a2480
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001c2e5
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x58]
mov eax, ecx
mov dword [ebp - 0x5c], ecx
cmp ecx, dword [ebp - 0x68]
jl 0x1001c197
jmp 0x1001c2e5
push str.bufsize
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1001c254
mov eax, dword [ebp - 0x54]
cmp eax, 0x200
mov ecx, dword [ebp - 0x60]
cmovge ecx, eax
mov dword [ebp - 0x60], ecx
jmp 0x1001c1f2
push 0x101cda7f
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1001c276
mov byte [0x101f4564], 1
jmp 0x1001c1f2
push str.append
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1001c298
mov byte [0x101f4568], 1
jmp 0x1001c1f2
mov edi, dword [0x101f456c]
push 0x101cedca
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test edi, edi
je 0x1001c1f2
mov ebx, eax
test ebx, ebx
je 0x1001c2dd
push dword [edi]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x1001c326
mov edi, dword [edi + 8]
test edi, edi
jne 0x1001c2ba
jmp 0x1001c1f2
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x1001c2d1
xor eax, eax
cmp dword [ebp - 0x64], 0
jne 0x1001c2f0
mov eax, dword [ebp - 0x60]
push eax
call sym.nss3.dll_PR_SetLogBuffering
add esp, 4
push str.NSPR_LOG_FILE
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
je 0x1001c311
mov esi, eax
cmp byte [eax], 0
jne 0x1001c331
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [0x101f4570], eax
jmp 0x1001c14e
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x1001c1f2
push esi
call sym.nss3.dll_PR_SetLogFile
add esp, 4
test eax, eax
jne 0x1001c14e
push esi
push str.Unable_to_create_nspr_log_file__s_n
call sym.nss3.dll_PR_smprintf
add esp, 8
test eax, eax
je 0x1001c14e
mov esi, eax
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1001c14e