Function at 0x10075460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call sym.nss3.dll_PR_NewLock
mov dword [0x101de170], eax
push str.NSPR_LOG_MODULES
call sym.nss3.dll_PR_GetEnv
add esp, 4
test eax, eax
jne 0x100754a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
cmp byte [eax], 0
je 0x1007548e
mov dword [ebp - 0x60], 0x4000
mov dword [ebp - 0x5c], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x5c], eax
jge 0x10075612
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.1018baa0
add esp, 0x18
test eax, eax
je 0x10075612
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0x101bc65e
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 0x1007555b
xor eax, eax
inc eax
mov dword [ebp - 0x64], eax
mov edi, dword [ebp - 0x5c]
lea eax, [esi + edi]
lea ecx, [ebp - 0x58]
push ecx
push str.____n
push eax
call fcn.1018baa0
add esp, 0xc
add edi, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edi
cmp eax, 0xffffffff
jne 0x100754c8
jmp 0x10075612
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 0x10075584
mov eax, dword [ebp - 0x54]
cmp eax, 0x1ff
mov ecx, dword [ebp - 0x60]
cmovg ecx, eax
mov dword [ebp - 0x60], ecx
jmp 0x1007552f
push 0x101b8151
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 0x100755a3
mov byte [0x101de174], 1
jmp 0x1007552f
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 0x100755c5
mov byte [0x101de178], 1
jmp 0x1007552f
mov edi, dword [0x101de17c]
push 0x101b948a
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 0x1007552f
mov ebx, eax
test ebx, ebx
je 0x1007560a
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 0x10075652
mov edi, dword [edi + 8]
test edi, edi
jne 0x100755e7
jmp 0x1007552f
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x100755fe
xor eax, eax
cmp dword [ebp - 0x64], 0
cmove 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 0x1007563d
mov esi, eax
cmp byte [eax], 0
jne 0x1007565d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [0x101de180], eax
jmp 0x1007548e
mov eax, dword [ebp - 0x54]
mov dword [edi + 4], eax
jmp 0x1007552f
push esi
call sym.nss3.dll_PR_SetLogFile
add esp, 4
test eax, eax
jne 0x1007548e
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 0x1007548e
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 0x1007548e