Function at 0x411d60
Capabilities:
Get system information on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x130
mov eax, dword [0x438014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x120]
push 0x110
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi - 0xc], 0x11c
sub esp, 0x10
movaps xmm0, xmmword [0x4310d0]
movups xmmword [esp], xmm0
mov edi, dword [sym.imp.ntdll.dll_VerSetConditionMask]
call edi
mov ebx, 3
push ebx
push 1
push edx
push eax
call edi
push ebx
push 0x20
push edx
push eax
call edi
mov dword [esi - 8], 6
mov dword [esi - 4], 2
mov word [esi + 0x108], 0
lea esi, [ebp - 0x12c]
push edx
push eax
push 0x23
push esi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x411e0b
push esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x12c], 0
jne 0x411e0b
push 0x800
push 0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x411eac
mov edi, eax
add eax, eax
xor ecx, ecx
dec ecx
test edi, edi
cmovns ecx, eax
push ecx
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ebx, eax
mov esi, edi
dec esi
push edi
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp esi, eax
jne 0x411e99
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
dec eax
cmp eax, 0x7ffe
ja 0x411e99
mov eax, edi
add eax, edi
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov esi, eax
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x411e8f
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x12c]
push 0x433dc0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea eax, [ebx + 1]
xor ecx, ecx
dec ecx
cmp eax, 0x40000000
lea edi, [ebx*4 + 4]
cmovae edi, ecx
push edi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
test ebx, ebx
mov dword [ebp - 0x134], eax
jle 0x411f7c
mov dword [ebp - 0x130], edi
xor esi, esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x138], eax
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov ebx, eax
lea eax, [eax + eax*2]
add eax, 2
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
lea eax, [ebx + ebx*2]
inc eax
xor ecx, ecx
push ecx
push ecx
push eax
push edi
push ebx
mov ebx, dword [ebp + 8]
push dword [ebp - 0x138]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x134]
mov dword [eax + esi*4], edi
inc esi
cmp ebx, esi
jne 0x411eec
mov dword [eax + ebx*4], 0
push dword [ebp - 0x130]
mov esi, eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
lea eax, [ebx*4]
push eax
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea esi, [ebp - 0x12c]
jmp 0x411f8f
mov dword [eax + ebx*4], 0
push edi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x12c], 0
push esi
call sub.xul.dll_XRE_GetBootstrap
add esp, 4
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x134]
mov esi, dword [eax + ebx*4 - 4]
push esi
call dword [sym.imp.mozglue.dll_void___cdecl_mozilla::SetGeckoProcessType_char_const__]
add esp, 4
call dword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::RegisterRuntimeExceptionModule_void_]
mov eax, dword [sym.imp.mozglue.dll_enum_GeckoProcessType_mozilla::startup::sChildProcessType]
mov eax, dword [eax]
lea ecx, [eax - 4]
cmp ecx, 7
ja 0x411fe0
mov eax, dword [eax*4 + 0x4310d0]
jmp 0x411fe3
xor eax, eax
inc eax
push eax
call dword [sym.imp.mozglue.dll_void___cdecl_DllBlocklist_Initialize_unsigned_int_]
add esp, 4
test ebx, ebx
jle 0x412100
mov dword [ebp - 0x130], esi
xor eax, eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
cmp dword [sym.plugin_container.exe_g_shared_section], eax
jne 0x41210f
lea eax, [ebx - 1]
mov dword [ebp - 0x13c], eax
mov esi, dword [ebp - 0x138]
mov eax, dword [esi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x130]
call ebx
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
cmp eax, 9
je 0x41212d
mov eax, dword [esi]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x134]
push dword [ebp - 0x13c]
call ebx
shr eax, 0x1f
mov dword [ebp - 0x130], eax
mov ebx, dword [ebp + 8]
call dword [sym.imp.mozglue.dll_void___cdecl_CrashReporter::UnregisterRuntimeExceptionModule_void_]
mov esi, dword [ebp - 0x138]
test esi, esi
je 0x4120af
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov ebx, dword [ebp + 8]
push dword [ebp - 0x134]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test ebx, ebx
je 0x4120db
mov esi, dword [sym.imp.mozglue.dll_free]
mov eax, dword [edi + ebx*4 - 4]
dec ebx
test eax, eax
je 0x4120d7
push eax
call esi
add esp, 4
test ebx, ebx
jne 0x4120c8
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414c00
mov eax, dword [ebp - 0x130]
add esp, 0x130
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x130], 3
jmp 0x41208b
call fcn.0042f5a0
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x41213d
mov dword [ebp - 0x128], 0x41bb60
jmp 0x41201b
call fcn.00419d30
mov dword [ebp - 0x124], eax
jmp 0x41205b
xor eax, eax
inc eax
jmp 0x412082