Function at 0x100d39f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [0x101d2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 8
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x100d3b38
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
test esi, esi
je 0x100d3b49
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 + 3]
mov eax, dword [ebx]
add ebx, 4
test eax, eax
jne 0x100d3a2d
push edi
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
mov dword [ebp - 0x78], eax
je 0x100d3b8e
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x78]
mov edi, eax
cmp edi, eax
je 0x100d3a6a
mov byte [ebx], 0x20
inc ebx
mov esi, dword [edi]
cmp byte [esi], 0
mov dword [ebp - 0x70], edi
je 0x100d3a89
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 0x100d3b2e
mov byte [ebx], 0x22
inc ebx
mov dword [ebp - 0x68], 0
xor edi, edi
mov al, byte [esi]
cmp al, 0x22
je 0x100d3abd
cmp al, 0x5c
je 0x100d3aeb
test al, al
je 0x100d3aee
test edi, edi
jle 0x100d3ab8
push edi
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov al, byte [esi]
add ebx, edi
mov byte [ebx], al
inc ebx
jmp 0x100d3ae6
test edi, edi
jle 0x100d3adb
add edi, edi
mov eax, 1
test edi, edi
cmovle edi, eax
push edi
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add ebx, edi
mov byte [ebx], 0x5c
mov al, byte [esi]
mov byte [ebx + 1], al
add ebx, 2
xor edi, edi
inc esi
jmp 0x100d3a96
inc edi
jmp 0x100d3ae8
test edi, edi
je 0x100d3b0e
mov eax, dword [ebp - 0x68]
mov ecx, eax
xor cl, 1
shl edi, cl
test edi, edi
jle 0x100d3b0e
push edi
push 0x5c
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add ebx, edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x70]
cmp byte [ebp - 0x68], 0
jne 0x100d3b1e
mov byte [ebx], 0x22
inc ebx
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x100d3a60
jmp 0x100d3b5d
mov al, 1
mov dword [ebp - 0x68], eax
jmp 0x100d3a94
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100d3baa
push 0
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
mov ebx, eax
mov dword [ebp - 0x78], eax
je 0x100d3b8e
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [ebx], 0
xor ebx, ebx
test edi, edi
je 0x100d3bc0
mov eax, dword [edi + 0x10]
test eax, eax
setne cl
test esi, esi
mov dword [ebp - 0x68], ecx
jne 0x100d3bc7
test eax, eax
je 0x100d3bc7
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov esi, dword [eax]
mov al, 1
mov dword [ebp - 0x68], eax
jmp 0x100d3bc7
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov esi, dword [ebp - 0x7c]
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.10192ef0
mov eax, esi
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x68], 0
mov al, 1
test esi, esi
mov dword [ebp - 0x74], eax
je 0x100d3d18
xor ebx, ebx
mov eax, 0xfffffffc
dec ebx
mov edi, ebx
add eax, 0xfffffffc
inc ebx
cmp dword [esi + edi*4 + 4], 0
jne 0x100d3bdc
neg eax
push eax
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
mov edx, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
xor al, 1
test ebx, ebx
mov dword [ebp - 0x68], eax
je 0x100d3e68
mov dword [ebp - 0x70], esi
xor ecx, ecx
xor esi, esi
test ecx, ecx
setne al
or al, byte [ebp - 0x68]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + esi*4]
mov dword [edx + esi*4], eax
jne 0x100d3c4a
push 0x11
push str.NSPR_INHERIT_FDS
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, dword [ebp - 0x6c]
add esp, 0xc
xor ecx, ecx
test eax, eax
jne 0x100d3c4a
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc ecx
mov eax, dword [eax + 0x10]
mov dword [edx + esi*4], eax
inc esi
cmp ebx, esi
jne 0x100d3c11
test ecx, ecx
setne al
or al, byte [ebp - 0x68]
jne 0x100d3c64
mov eax, dword [ebp + 0x14]
inc ebx
mov eax, dword [eax + 0x10]
mov dword [edx + edi*4 + 4], eax
mov dword [edx + ebx*4], 0
push 0x100d3f90
push 4
push ebx
push edx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
cmp dword [ebp - 0x6c], 0
je 0x100d3e6f
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
mov edi, eax
mov dword [ebp - 0x70], eax
mov al, byte [esi]
cmp al, 0x3d
je 0x100d3cb1
test al, al
je 0x100d3dc1
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea esi, [eax + esi + 1]
jmp 0x100d3c94
cmp byte [esi + 1], 0
je 0x100d3ca2
cmp byte [esi + 2], 0x3a
jne 0x100d3ca2
cmp byte [esi + 3], 0x3d
jne 0x100d3ca2
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [eax + esi + 1]
cmp byte [ecx], 0x3d
jne 0x100d3dc3
mov edi, dword [ebp - 0x6c]
cmp byte [ecx + 1], 0
je 0x100d3dc6
cmp byte [ecx + 2], 0x3a
jne 0x100d3dc6
cmp byte [ecx + 3], 0x3d
jne 0x100d3dc6
push ecx
mov edi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, edi
mov edi, dword [ebp - 0x6c]
add esp, 4
lea ecx, [eax + ecx + 1]
cmp byte [ecx], 0x3d
je 0x100d3cdc
jmp 0x100d3dc6
xor eax, eax
xor esi, esi
test edi, edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x54], 0x44
je 0x100d3e62
mov dword [ebp - 0x68], ebx
mov ebx, edi
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
mov dword [ebp - 0x1c], eax
push 0xfffffffffffffff5
call edi
mov dword [ebp - 0x18], eax
push 0xfffffffffffffff4
call edi
mov dword [ebp - 0x14], eax
mov edi, ebx
mov eax, dword [ebx]
test eax, eax
je 0x100d3e7b
mov eax, dword [eax + 4]
xor ecx, ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov ebx, dword [ebp - 0x68]
test eax, eax
je 0x100d3e82
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, 0x8000000
mov edx, dword [edi + 8]
test edx, edx
jne 0x100d3e8f
jmp 0x100d3e98
mov ecx, esi
mov edi, dword [ebp - 0x6c]
mov eax, dword [edi]
mov ebx, ecx
mov dword [ebp - 0x74], ecx
sub ebx, esi
test eax, eax
je 0x100d3dec
add edi, 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ebx, [ebx + eax + 1]
mov eax, dword [edi]
add edi, 4
test eax, eax
jne 0x100d3dd6
inc ebx
push ebx
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
test eax, eax
je 0x100d3f53
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov ebx, eax
mov dword [ebp - 0x68], eax
cmp esi, edx
jae 0x100d3e1b
mov ebx, dword [ebp - 0x68]
mov al, byte [esi]
inc esi
mov byte [ebx], al
inc ebx
cmp edx, esi
jne 0x100d3e11
push ecx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x100d3e4d
mov dl, byte [ecx]
test dl, dl
je 0x100d3e3f
inc ecx
mov byte [ebx], dl
inc ebx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100d3e35
mov ecx, dword [eax + 4]
mov byte [ebx], 0
inc ebx
add eax, 4
test ecx, ecx
jne 0x100d3e2e
mov byte [ebx], 0
mov eax, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x74], 0
jmp 0x100d3d1a
xor eax, eax
xor ecx, ecx
jmp 0x100d3ea2
xor ecx, ecx
jmp 0x100d3c4f
mov edi, dword [ebp + 0x14]
xor eax, eax
xor ebx, ebx
jmp 0x100d3d1a
mov cl, 1
jmp 0x100d3d95
mov edx, dword [edi + 8]
xor eax, eax
test edx, edx
je 0x100d3f72
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0x100
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x64]
lea edi, [ebp - 0x54]
push edx
push edi
push ecx
push ebx
push eax
push 1
push esi
push esi
mov edi, dword [ebp - 0x78]
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x100d3f0a
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x5c]
mov dword [esi], eax
mov dword [esi + 4], ecx
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
cmp byte [ebp - 0x74], 0
jne 0x100d3ef3
push dword [ebp - 0x6c]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x100d3bac
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100d3bac
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0xffffe896
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x100d3f39
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov esi, dword [ebp - 0x7c]
test ebx, ebx
je 0x100d3ba0
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x100d3ba0
push dword [ebp - 0x70]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
push 0
push 0xffffe890
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [ebp - 0x78]
xor ebx, ebx
jmp 0x100d3f1e
xor eax, eax
test cl, cl
je 0x100d3e98
jmp 0x100d3e9f