Function at 0x401d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x620], eax
mov bl, byte [eax]
push edi
mov edi, eax
test bl, bl
je 0x401dff
nop dword [eax]
mov ecx, 0x40457c
mov dl, 0x2f
cmp dl, bl
lea ecx, [ecx + 1]
mov dl, byte [ecx]
mov eax, edi
cmovne eax, esi
mov esi, eax
test dl, dl
jne 0x401d97
mov bl, byte [edi + 1]
inc edi
test bl, bl
jne 0x401d90
test esi, esi
je 0x401dff
mov eax, dword [ebp - 0x620]
sub esi, eax
cmp esi, 0xf0
ja 0x402037
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [0x404580]
mov eax, dword [0x404590]
lea ebx, [ebp - 0x107]
add esp, 0xc
add ebx, esi
movups xmmword [ebp + esi - 0x108], xmm0
mov dword [ebp + esi - 0xf8], eax
jmp 0x401e2b
mov ax, word [0x4045a4]
lea ebx, [ebp - 0x108]
movups xmm0, xmmword [str.dependentlibs.list]
mov word [ebp - 0xf8], ax
mov al, byte [0x4045a6]
movups xmmword [ebp - 0x108], xmm0
mov byte [ebp - 0xf6], al
push str.MOZ_RUN_GTEST
mov dword [ebp - 0x620], ebx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x401e73
lea ecx, [ebp - 0x108]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401e50
mov eax, dword [str..gtest]
mov dword [ecx], eax
mov ax, word [0x4045bc]
mov word [ecx + 4], ax
mov al, byte [0x4045be]
mov byte [ecx + 6], al
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x61c]
push 0x4045c0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x402037
push edi
lea eax, [ebp - 0x20c]
mov byte [ebx], 0
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
je 0x401ff3
nop word [eax + eax]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ef0
sub ecx, edx
je 0x401fd5
cmp byte [ebp - 0x20c], 0x23
je 0x401fd5
cmp byte [ebp + ecx - 0x20d], 0xa
jne 0x401f2c
lea eax, [ecx - 1]
cmp eax, 0x104
jae 0x40204a
mov byte [ebp + eax - 0x20c], 0
lea eax, [ebp - 0x108]
sub ecx, eax
add ecx, ebx
cmp ecx, 0x104
ja 0x40202d
lea ecx, [ebp - 0x20c]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401f50
mov bl, byte [0x4061b8]
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call esi
test bl, bl
je 0x401f94
lea eax, [ebp - 0x414]
push eax
call fcn.004026c0
add esp, 4
push 8
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402028
push 8
call fcn.004029dd
mov ebx, dword [ebp - 0x620]
add esp, 4
test eax, eax
je 0x401fcf
mov ecx, dword [0x4061b4]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [0x4061b4], eax
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x401ee0
mov eax, dword [0x4061b4]
push str.NS_GetFrozenFunctions
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402028
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040299f
mov esp, ebp
pop ebp
ret
call fcn.00402050
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040299f
mov esp, ebp
pop ebp
ret
call fcn.00402b35
int3