Function at 0x101a3e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 8
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x101a3fde
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x101a3fef
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 0x101a3ecd
push edi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov dword [ebp - 0x70], eax
test eax, eax
je 0x101a4034
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp + 0xc]
mov ebx, eax
cmp ebx, eax
je 0x101a3f0c
mov byte [edi], 0x20
inc edi
mov esi, dword [ebx]
cmp byte [esi], 0
mov dword [ebp - 0x6c], ebx
je 0x101a3f2b
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 0x101a3fd4
mov byte [edi], 0x22
inc edi
mov dword [ebp - 0x68], 0
xor ebx, ebx
movzx eax, byte [esi]
cmp eax, 0x22
je 0x101a3f62
cmp eax, 0x5c
je 0x101a3f91
test eax, eax
je 0x101a3f94
test ebx, ebx
jle 0x101a3f5d
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 0x101a3f8c
test ebx, ebx
jle 0x101a3f81
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 0x101a3f38
inc ebx
jmp 0x101a3f8e
test ebx, ebx
je 0x101a3fb4
mov eax, dword [ebp - 0x68]
mov ecx, eax
xor cl, 1
shl ebx, cl
test ebx, ebx
jle 0x101a3fb4
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 0x101a3fc4
mov byte [edi], 0x22
inc edi
mov esi, dword [ebx + 4]
add ebx, 4
test esi, esi
jne 0x101a3f02
jmp 0x101a4003
mov al, 1
mov dword [ebp - 0x68], eax
jmp 0x101a3f36
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101a4050
push 0
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x70], eax
test eax, eax
je 0x101a4034
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov byte [edi], 0
xor ebx, ebx
test esi, esi
je 0x101a4066
mov eax, dword [esi + 0x10]
test eax, eax
setne dl
mov dword [ebp - 0x6c], edx
test ecx, ecx
jne 0x101a406d
test eax, eax
je 0x101a406d
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 0x101a406d
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.10156ff0
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 0x101a4239
xor edi, edi
mov esi, 4
dec edi
cmp dword [ecx + esi - 4], 0
lea esi, [esi + 4]
jne 0x101a4084
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 0x101a42b2
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 0x101a40ef
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 0x101a40ef
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 0x101a40b0
test ecx, ecx
sete al
mov ecx, dword [ebp - 0x6c]
and cl, al
cmp cl, 1
mov ecx, dword [ebp - 0x68]
jne 0x101a4116
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 0x101a43d0
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 0x101a4159
test eax, eax
je 0x101a419d
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebx, eax
inc ebx
jmp 0x101a413f
cmp byte [ebx + 1], 0
je 0x101a414b
cmp byte [ebx + 2], 0x3a
jne 0x101a414b
cmp byte [ebx + 3], 0x3d
jne 0x101a414b
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 0x101a419f
cmp byte [edi + 1], 0
je 0x101a419f
cmp byte [edi + 2], 0x3a
jne 0x101a419f
cmp byte [edi + 3], 0x3d
jne 0x101a419f
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add edi, eax
inc edi
jmp 0x101a4178
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 0x101a41d0
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 0x101a41bb
inc esi
push esi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x101a42b9
mov esi, eax
cmp ebx, dword [ebp - 0x80]
jae 0x101a41fe
xor edx, edx
mov esi, dword [ebp - 0x74]
mov cl, byte [ebx + edx]
mov byte [eax + edx], cl
inc edx
cmp esi, edx
jne 0x101a41ef
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 0x101a4233
mov eax, ebx
mov dl, byte [ecx]
test dl, dl
je 0x101a4225
inc ecx
mov byte [esi], dl
inc esi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x101a421b
mov byte [esi], 0
inc esi
mov ecx, dword [eax + 4]
add eax, 4
test ecx, ecx
jne 0x101a4214
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 0x101a42a9
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 0x101a4288
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x101a42de
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 0x101a42ee
jmp 0x101a42f7
xor eax, eax
xor ecx, ecx
mov ebx, dword [ebp - 0x70]
jmp 0x101a4301
xor ecx, ecx
jmp 0x101a40f5
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 0x101a4382
mov edx, dword [esi + 8]
xor eax, eax
test edx, edx
mov ebx, dword [ebp - 0x70]
je 0x101a43b4
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 0x101a4369
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 0x101a4352
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x101a4052
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101a4052
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 0x101a439d
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x101a4046
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x101a4046
xor eax, eax
test ecx, ecx
jne 0x101a42f7
jmp 0x101a42fe