Function at 0x101a5f50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 8
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x101a609e
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x101a60af
lea ebx, [eax + 4]
xor edi, edi
mov eax, esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea edi, [edi + eax*2]
add edi, 3
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x101a5f8d
push edi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [ebp - 0x70], eax
test eax, eax
je 0x101a60f4
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov ebx, eax
cmp ebx, eax
je 0x101a5fcc
mov byte [edi], 0x20
inc edi
mov esi, dword [ebx]
cmp byte [esi], 0
mov dword [ebp - 0x6c], ebx
je 0x101a5feb
push str.__f_n_r_t_v
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x101a6094
mov byte [edi], 0x22
inc edi
mov dword [ebp - 0x68], 0
xor ebx, ebx
movzx eax, byte [esi]
cmp eax, 0x22
je 0x101a6022
cmp eax, 0x5c
je 0x101a6051
test eax, eax
je 0x101a6054
test ebx, ebx
jle 0x101a601d
push ebx
push 0x5c
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, ebx
mov al, byte [esi]
mov byte [edi], al
inc edi
jmp 0x101a604c
test ebx, ebx
jle 0x101a6041
add ebx, ebx
cmp ebx, 2
mov eax, 1
cmovl ebx, eax
push ebx
push 0x5c
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, ebx
mov byte [edi], 0x5c
mov al, byte [esi]
mov byte [edi + 1], al
add edi, 2
xor ebx, ebx
inc esi
jmp 0x101a5ff8
inc ebx
jmp 0x101a604e
test ebx, ebx
je 0x101a6074
mov eax, dword [ebp - 0x68]
mov ecx, eax
xor cl, 1
shl ebx, cl
test ebx, ebx
jle 0x101a6074
push ebx
push 0x5c
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x6c]
cmp byte [ebp - 0x68], 0
jne 0x101a6084
mov byte [edi], 0x22
inc edi
mov esi, dword [ebx + 4]
add ebx, 4
test esi, esi
jne 0x101a5fc2
jmp 0x101a60c3
mov al, 1
mov dword [ebp - 0x68], eax
jmp 0x101a5ff6
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101a6110
push 0
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x70], eax
test eax, eax
je 0x101a60f4
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov byte [edi], 0
xor ebx, ebx
test esi, esi
je 0x101a6126
mov eax, dword [esi + 0x10]
test eax, eax
setne dl
mov dword [ebp - 0x6c], edx
test ecx, ecx
jne 0x101a612d
test eax, eax
je 0x101a612d
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov ecx, dword [eax]
mov al, 1
mov dword [ebp - 0x6c], eax
jmp 0x101a612d
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [ebp - 0x78]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, esi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x6c], 0
mov edi, 0
test ecx, ecx
mov dword [ebp - 0x7c], ecx
je 0x101a62f9
xor edi, edi
mov esi, 4
dec edi
cmp dword [ecx + esi - 4], 0
lea esi, [esi + 4]
jne 0x101a6144
push esi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov ecx, edi
not ecx
mov dword [ebp - 0x74], ecx
cmp edi, 0xffffffff
mov dword [ebp - 0x68], eax
je 0x101a6372
xor ecx, ecx
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x68]
mov dword [edx + ebx*4], eax
test ecx, ecx
sete dl
and dl, byte [ebp - 0x6c]
cmp dl, 1
jne 0x101a61af
push 0x11
push str.NSPR_INHERIT_FDS
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
xor ecx, ecx
test eax, eax
jne 0x101a61af
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + ebx*4], eax
xor ecx, ecx
inc ecx
inc ebx
cmp dword [ebp - 0x74], ebx
jne 0x101a6170
test ecx, ecx
sete al
mov ecx, dword [ebp - 0x6c]
and cl, al
cmp cl, 1
mov ecx, dword [ebp - 0x68]
jne 0x101a61d6
neg edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ecx + esi - 8], eax
mov dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x74]
mov dword [ecx + eax*4], 0
push 0x101a6490
push 4
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
mov ebx, eax
mov dword [ebp - 0x6c], eax
movzx eax, byte [ebx]
cmp eax, 0x3d
je 0x101a6219
test eax, eax
je 0x101a625d
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, eax
inc ebx
jmp 0x101a61ff
cmp byte [ebx + 1], 0
je 0x101a620b
cmp byte [ebx + 2], 0x3a
jne 0x101a620b
cmp byte [ebx + 3], 0x3d
jne 0x101a620b
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea edi, [eax + ebx]
inc edi
cmp byte [edi], 0x3d
jne 0x101a625f
cmp byte [edi + 1], 0
je 0x101a625f
cmp byte [edi + 2], 0x3a
jne 0x101a625f
cmp byte [edi + 3], 0x3d
jne 0x101a625f
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
jmp 0x101a6238
mov edi, ebx
mov dword [ebp - 0x80], edi
mov esi, edi
sub esi, ebx
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov dword [ebp - 0x74], esi
test eax, eax
je 0x101a6290
mov edi, dword [ebp - 0x68]
add edi, 4
mov esi, dword [ebp - 0x74]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add esi, eax
inc esi
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x101a627b
inc esi
push esi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x101a6379
mov esi, eax
cmp ebx, dword [ebp - 0x80]
jae 0x101a62be
xor edx, edx
mov esi, dword [ebp - 0x74]
mov cl, byte [ebx + edx]
mov byte [eax + edx], cl
inc edx
cmp esi, edx
jne 0x101a62af
mov esi, eax
add esi, edx
mov edi, eax
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebx]
test ecx, ecx
je 0x101a62f3
mov eax, ebx
mov dl, byte [ecx]
test dl, dl
je 0x101a62e5
inc ecx
mov byte [esi], dl
inc esi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x101a62db
mov byte [esi], 0
inc esi
mov ecx, dword [eax + 4]
add eax, 4
test ecx, ecx
jne 0x101a62d4
mov byte [esi], 0
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x68], ebx
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x54], 0x44
test esi, esi
je 0x101a6369
mov ebx, esi
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
mov dword [ebp - 0x1c], eax
push 0xfffffffffffffff5
call esi
mov dword [ebp - 0x18], eax
push 0xfffffffffffffff4
call esi
mov esi, ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x101a6348
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x101a639e
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
mov edx, dword [esi + 8]
mov eax, 0x8000000
test edx, edx
mov ebx, dword [ebp - 0x70]
jne 0x101a63ae
jmp 0x101a63b7
xor eax, eax
xor ecx, ecx
mov ebx, dword [ebp - 0x70]
jmp 0x101a63c1
xor ecx, ecx
jmp 0x101a61b5
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
xor edi, edi
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
jmp 0x101a6442
mov edx, dword [esi + 8]
xor eax, eax
test edx, edx
mov ebx, dword [ebp - 0x70]
je 0x101a6474
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0x100
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x64]
lea esi, [ebp - 0x54]
push edx
push esi
push ecx
push edi
push eax
push 1
xor eax, eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x101a6429
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x78]
mov dword [esi], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x68]
je 0x101a6412
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x101a6112
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101a6112
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [ebp - 0x78]
mov eax, ebx
mov ebx, dword [ebp - 0x68]
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x101a645d
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x101a6106
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101a6106
xor eax, eax
test ecx, ecx
jne 0x101a63b7
jmp 0x101a63be