Function at 0x1001f650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 8]
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x68], eax
cmp byte [0x1009b890], 0
jne 0x1001f6ac
mov eax, dword [0x1009b884]
or eax, dword [0x1009b880]
je 0x1001f6ac
movsd xmm0, qword [0x1009b890]
movsd qword [esi + 0x10], xmm0
movups xmm0, xmmword [0x1009b880]
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.100468e0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.MOZ_APP_RESTART
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001f9ad
lea eax, [esp + 0x28]
push 1
push eax
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_
add esp, 8
call sym.mozglue.dll_private:_static_unsigned_long_long_unsigned___int64____cdecl_mozilla::TimeStamp::ComputeProcessUptime_void_
movd xmm0, edx
movd xmm1, eax
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x10088200]
subpd xmm1, xmmword [0x10088210]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
divsd xmm0, qword [0x10088230]
ucomisd xmm0, qword [0x10088220]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jae 0x1001f9d2
sub esp, 8
movsd qword [esp], xmm0
call sym.mozglue.dll_public:_static_long_long___int64____cdecl_mozilla::BaseTimeDurationPlatformUtils::TicksFromMilliseconds_double_
add esp, 8
mov esi, eax
mov dword [esp], edx
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0x39]
mov edi, dword [esp + 0x3a]
mov dword [esp + 0x60], edi
movzx edi, word [esp + 0x3e]
mov word [esp + 0x64], di
xor ecx, ecx
mov byte [esp + 0xb], al
test al, al
setne cl
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
sub edx, esi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp]
sbb ebx, ecx
mov edi, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
sub edi, esi
mov esi, dword [esp + 0x2c]
mov dword [esp], ecx
mov dword [esp + 0x1c], esi
sbb esi, ecx
mov al, byte [esp + 0x38]
mov byte [esp + 0xa], al
lea ecx, [esp + 0x40]
push dword [esp + 4]
push ebx
push edx
push esi
push edi
call sym.mozglue.dll_private:_void___thiscall_mozilla::TimeStampValue::constructor_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___bool_
cmp dword [esp + 0xc], 1
sbb dword [esp], 0
jl 0x1001f933
cmp byte [esp + 0x50], 0
je 0x1001f7c2
cmp byte [esp + 0xa], 0
jne 0x1001f933
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
sub ecx, dword [esp + 0x10]
sbb esi, dword [esp + 0x1c]
cmp byte [esp + 0x51], 0
je 0x1001f923
cmp byte [esp + 0xb], 0
je 0x1001f923
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
sub eax, dword [esp + 0x14]
sbb ebx, dword [esp + 0x18]
cmp byte [0x1009b898], 0
jne 0x1001f927
mov edx, eax
sub edx, ecx
mov dword [esp + 0xc], ecx
mov ecx, ebx
sbb ecx, esi
mov dword [esp], esi
mov esi, ecx
sar esi, 0x1f
xor ecx, esi
xor edx, esi
sub edx, esi
sbb ecx, esi
mov esi, dword [0x1009b8a4]
mov edi, dword [0x1009b8a0]
cmp edi, edx
mov dword [esp + 4], esi
sbb esi, ecx
jge 0x1001f927
sub edx, edi
sbb ecx, dword [esp + 4]
mov esi, dword [0x1009b8ac]
cmp dword [0x1009b8a8], edx
sbb esi, ecx
jge 0x1001f927
mov eax, dword [esp]
mov edx, eax
sar edx, 0x1f
xor eax, edx
mov ecx, dword [esp + 0xc]
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov dl, byte [0x1009a210]
test dl, 1
je 0x1001fa14
cmp ecx, dword [0x1009b8b0]
sbb eax, dword [0x1009b8b4]
jge 0x1001fa14
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, eax
mov ecx, edx
mov edi, dword [0x1009a208]
mov eax, edi
mul esi
mov dword [esp + 4], eax
imul ecx, edi
add edx, ecx
imul esi, dword [0x1009a20c]
add esi, edx
push 0x1009b8b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1009b8d4]
mov eax, dword [0x1009b8d0]
mov edx, eax
or edx, ecx
mov edi, dword [0x1009b8dc]
mov ebx, dword [0x1009b8d8]
je 0x1001f9f7
cmp dword [esp + 4], eax
mov edx, esi
sbb edx, ecx
jae 0x1001f9f7
mov edx, dword [esp + 4]
not edx
add eax, edx
mov edx, esi
not edx
adc ecx, edx
add eax, ebx
adc ecx, edi
push edi
push ebx
push ecx
push eax
call fcn.100476d0
mov ecx, edx
mov edx, eax
cmp eax, 5
mov eax, ecx
sbb eax, 0
jb 0x1001fa20
mov byte [0x1009a210], 0
jmp 0x1001fa09
mov eax, ecx
mov ebx, esi
cmp eax, 1
sbb ebx, 0
jge 0x1001f9e1
lea ecx, [esp + 0x40]
movaps xmm0, xmmword [ecx]
movzx eax, word [ecx + 0x10]
movzx edx, word [ecx + 0x16]
mov esi, dword [ecx + 0x12]
movaps xmmword [ecx], xmm0
mov word [ecx + 0x10], ax
mov dword [ecx + 0x12], esi
mov word [ecx + 0x16], dx
push 0x1009b868
call sym.mozglue.dll_public:_unsigned_long_long_unsigned___int64____thiscall_mozilla::TimeStampValue::operator__class_mozilla::TimeStampValue_const__const
mov ecx, dword [esp + 0x20]
or dword [esp + 0x24], ecx
je 0x1001f991
cmp eax, 1
sbb edx, 0
jge 0x1001f991
mov esi, dword [ebp + 8]
movsd xmm0, qword [esp + 0x50]
movsd qword [0x1009b890], xmm0
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [0x1009b880], xmm0
jmp 0x1001f680
movsd xmm0, qword [0x1009b878]
movsd qword [esp + 0x50], xmm0
movups xmm0, xmmword [0x1009b868]
movaps xmmword [esp + 0x40], xmm0
jmp 0x1001f96f
cmp byte [eax], 0
je 0x1001f6c2
movsd xmm0, qword [0x1009b878]
movsd qword [esp + 0x50], xmm0
movups xmm0, xmmword [0x1009b868]
movaps xmmword [esp + 0x40], xmm0
jmp 0x1001f972
mov dword [esp], 0x7fffffff
xor esi, esi
dec esi
jmp 0x1001f731
xorpd xmm0, xmm0
movapd xmmword [esp + 0x40], xmm0
mov word [esp + 0x50], 1
jmp 0x1001f933
add ebx, dword [esp + 4]
adc edi, esi
mov dword [0x1009b8d0], ebx
mov dword [0x1009b8d4], edi
push 0x1009b8b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp]
jmp 0x1001f927
mov eax, edx
add eax, 1
mov dword [esp + 0x10], eax
adc ecx, 0
mul ebx
imul edi, dword [esp + 0x10]
add edx, edi
imul ecx, ebx
add ecx, edx
add eax, dword [esp + 4]
adc ecx, esi
mov dword [0x1009b8d0], eax
mov dword [0x1009b8d4], ecx
jmp 0x1001fa09