Function at 0x10003810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101f2530], eax
push str.NSPR_LOG_MODULES
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
jne 0x10003850
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
cmp byte [eax], 0
je 0x1000383e
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 0x100039dd
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.101a03c0
add esp, 0x18
test eax, eax
je 0x100039d5
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0x101cfd52
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 0x1000391b
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.101a03c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x100039d5
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x58]
mov eax, ecx
mov dword [ebp - 0x5c], ecx
cmp ecx, dword [ebp - 0x68]
jl 0x10003887
jmp 0x100039d5
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 0x10003944
mov eax, dword [ebp - 0x54]
cmp eax, 0x200
mov ecx, dword [ebp - 0x60]
cmovge ecx, eax
mov dword [ebp - 0x60], ecx
jmp 0x100038e2
push 0x101cb7d4
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 0x10003966
mov byte [0x101f2534], 1
jmp 0x100038e2
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 0x10003988
mov byte [0x101f2538], 1
jmp 0x100038e2
mov edi, dword [0x101f253c]
push 0x101ccb0b
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 0x100038e2
mov ebx, eax
test ebx, ebx
je 0x100039cd
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 0x10003a16
mov edi, dword [edi + 8]
test edi, edi
jne 0x100039aa
jmp 0x100038e2
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x100039c1
xor eax, eax
cmp dword [ebp - 0x64], 0
jne 0x100039e0
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 0x10003a01
mov esi, eax
cmp byte [eax], 0
jne 0x10003a21
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [0x101f2540], eax
jmp 0x1000383e
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x100038e2
push esi
call sym.nss3.dll_PR_SetLogFile
add esp, 4
test eax, eax
jne 0x1000383e
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 0x1000383e
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 0x1000383e