Function at 0x402000
Capabilities:
Check os version
Contain obfuscated stackstrings
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x420
mov eax, dword [0x448010]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
test edi, edi
mov dword [ebp - 0x10], eax
je 0x40243b
push 0x5c
push edi
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x402446
mov esi, eax
sub esi, edi
lea eax, [esi + 9]
lea ebx, [esi + 1]
push eax
call dword [sym.imp.mozglue.dll_malloc]
add esp, 4
push ebx
push edi
mov edi, eax
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [edi + esi + 5], 0x6c6c64
mov dword [edi + esi + 1], 0x2e6c7578
mov al, byte [edi]
test al, al
je 0x40239a
xor esi, esi
mov ecx, edi
nop word cs:[eax + eax]
cmp al, 0x2f
cmove esi, ecx
cmp al, 0x5c
movzx eax, byte [ecx + 1]
cmove esi, ecx
inc ecx
test al, al
jne 0x402080
test esi, esi
je 0x40239a
sub esi, edi
cmp esi, 0xf0
ja 0x402425
lea eax, [ebp - 0x31c]
push esi
push edi
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp + esi - 0x31b]
mov dword [ebp + esi - 0x31c], 0x7065645c
mov dword [ebp + esi - 0x318], 0x65646e65
mov dword [ebp + esi - 0x314], 0x696c746e
mov dword [ebp + esi - 0x310], 0x6c2e7362
mov dword [ebp + esi - 0x30c], 0x747369
mov dword [ebp - 0x428], eax
push str.MOZ_RUN_GTEST
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x402454
lea eax, [ebp - 0x31c]
lea esi, [ebp - 0x218]
push 0x104
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x441e32
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
test eax, eax
je 0x402425
mov esi, eax
mov eax, dword [ebp - 0x428]
lea ebx, [ebp - 0x420]
mov dword [ebp - 0x424], edi
mov byte [eax], 0
push esi
push 0x104
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x40232a
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x31c]
sub ecx, eax
mov dword [ebp - 0x42c], ecx
mov edi, esi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x40225c
cmp byte [ebp - 0x420], 0x23
je 0x40225c
mov ecx, dword [0x448750]
mov esi, eax
cmp ecx, 0x9ffffff
ja 0x402489
mov eax, dword [0x448038]
cmp eax, 0xa000001
jae 0x402286
cmp byte [esi + ebx - 1], 0xa
jne 0x4021e3
mov byte [ebp + esi - 0x421], 0
add esi, dword [ebp - 0x42c]
cmp esi, 0x104
ja 0x402415
push ebx
push dword [ebp - 0x428]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push 0x104
lea esi, [ebp - 0x218]
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x31c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp + 0x10], 1
je 0x40227b
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x4023d7
mov esi, eax
push 8
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ecx, dword [0x44874c]
mov dword [0x44874c], eax
mov dword [eax + 4], ecx
mov dword [eax], esi
mov esi, edi
push edi
push 0x104
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x402190
jmp 0x40232a
push esi
call fcn.00401d50
add esp, 4
jmp 0x40222c
push 0x90
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x218], 0x9c
mov dword [ebp - 0x214], 0xa
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x184], 0
push 3
push 2
push 0
push 0
call dword [sym.imp.ntdll.dll_VerSetConditionMask]
push 3
push 1
push edx
push eax
call dword [sym.imp.ntdll.dll_VerSetConditionMask]
push 3
push 0x20
push edx
push eax
call dword [sym.imp.ntdll.dll_VerSetConditionMask]
push 3
push 0x10
push edx
push eax
call dword [sym.imp.ntdll.dll_VerSetConditionMask]
push edx
push eax
push 0x33
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
jne 0x40247e
mov eax, 0xa000000
xchg dword [0x448038], eax
cmp byte [esi + ebx - 1], 0xa
je 0x4021db
jmp 0x4021e3
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x44874c]
push str.XRE_GetBootstrap
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40249e
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push ecx
call eax
add esp, 4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x218]
mov dword [esi], eax
mov edi, dword [ebp - 0x424]
test edi, edi
je 0x402383
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c380
mov eax, esi
add esp, 0x420
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x30d], 0x747369
mov dword [ebp - 0x310], 0x696c2e73
mov dword [ebp - 0x314], 0x62696c74
mov dword [ebp - 0x318], 0x6e65646e
mov dword [ebp - 0x31c], 0x65706564
jmp 0x4020f8
mov eax, dword [0x44874c]
test eax, eax
je 0x402415
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.mozglue.dll_free]
jmp 0x4023f2
test eax, eax
je 0x402415
push dword [eax]
call esi
mov ecx, dword [0x44874c]
mov eax, dword [ecx + 4]
test ecx, ecx
mov dword [0x44874c], eax
je 0x4023ee
push ecx
call ebx
add esp, 4
mov eax, dword [0x44874c]
jmp 0x4023ee
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edi, dword [ebp - 0x424]
mov esi, dword [ebp + 8]
mov dword [esi], 0
test edi, edi
jne 0x402379
jmp 0x402383
mov dword [esi], 0
jmp 0x402383
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x402383
lea eax, [ebp - 0x31c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp + eax - 0x31c], 0x6574672e
mov dword [ebp + eax - 0x319], 0x747365
jmp 0x402114
mov eax, 0xa000000
xchg dword [0x448750], eax
cmp dword [ebp - 0x420], 0x2d697061
jne 0x4021d4
jmp 0x40225c
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x40236f