Function at 0x10038df0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x520
mov esi, ecx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x518], eax
xor eax, eax
lea edi, [esp + 0x488]
mov ecx, edi
push eax
mov dword [esp + 0x1c], 0
push eax
call fcn.1003cc90
add esp, 8
mov eax, dword [edi + 0x24]
xor eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x20]
xor ecx, dword [edi + 0x60]
or ecx, eax
jne 0x10038e56
mov ecx, dword [esp + 0x518]
xor ecx, ebp
call fcn.1002cad0
mov eax, dword [esp + 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 0x498]
lea edi, [esp + 0x488]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], esi
cmp byte [esp + 0x488], 0x11
je 0x10038eae
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10038e7a
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
jne 0x10038e70
jmp 0x10038e3c
mov eax, dword [esp + 0x489]
mov dword [esp + 0x34], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10038eb9
mov eax, dword [esi]
mov eax, dword [eax]
cmp dword [esp + 0x34], eax
je 0x10038ed9
test eax, eax
jne 0x10038e8c
movsd xmm0, qword [0x1006af58]
movapd xmm1, xmmword [esp + 0x40]
andpd xmm1, xmm0
movapd xmmword [esp + 0x40], xmm1
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x10038f54
cmp byte [esp + 0x488], 0x12
jne 0x10038f54
movsd xmm0, qword [esp + 0x489]
movsd qword [esp + 0x38], xmm0
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10038f2a
mov eax, dword [esi + 4]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x38]
ja 0x10038e8c
jmp 0x10039653
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.expected_a_Time_entry
push str.ProfileBuffer_parse_error:__s
push eax
call fcn.1000b750
add esp, 0xc
jmp 0x10038e8c
mov al, byte [esp + 0x488]
cmp al, 4
je 0x100390c0
cmp al, 0xb
jne 0x100396db
mov dword [esp + 0x30], edx
mov esi, dword [esp + 0x489]
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10038f99
sub esp, 0x10
mov dword [esp + 8], esi
lea eax, [esp + 0x398]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.10049330
add esp, 0x10
mov eax, dword [0x1007b514]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10039813
cmp byte [0x1007b510], 0
lea ecx, [esp + 0x78]
je 0x10039042
push ecx
push esi
call sym.mozglue.dll_MozDescribeCodeAddress
add esp, 8
test al, al
je 0x1003903e
lea eax, [esp + 0x388]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + eax]
add ecx, 0x389
mov byte [ecx - 1], 0x20
mov edx, 0xff
sub edx, eax
lea eax, [esp + 0x78]
push eax
push esi
push 0
push edx
push ecx
call sym.mozglue.dll_MozFormatCodeAddressDetails
add esp, 0x14
lea ecx, [esp + 0x78]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
lea edx, [esp + 0x388]
call fcn.100492a0
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
call fcn.10037db0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x68]
call fcn.10038410
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
rol ecx, 5
mov eax, dword [esp + 0x10]
xor ecx, eax
imul ecx, ecx, 0x9e3779b9
xor edx, edx
inc edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
cmp byte [esp + 0xb8], 0
jne 0x100397fe
lea ecx, [esp + 0x78]
jmp 0x1003960f
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x489]
mov dword [esp + 0x14], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x100390cf
mov eax, dword [esp + 0x4a8]
mov ecx, dword [esp + 0x4ac]
xor ecx, dword [esp + 0x4ec]
xor eax, dword [esp + 0x4e8]
xor esi, esi
or eax, ecx
mov eax, 0
je 0x10039138
cmp byte [esp + 0x488], 5
mov eax, 0
jne 0x10039138
mov eax, dword [esp + 0x489]
mov dword [esp + 0x1c], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10039122
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x100392c6
cmp byte [esp + 0x488], 6
jne 0x100392c6
xor eax, eax
cmp eax, 0x200
jb 0x100391cc
mov esi, eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10039185
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x100392c6
cmp byte [esp + 0x488], 6
mov eax, esi
je 0x1003917c
jmp 0x100392c6
mov edx, dword [esp + 0x489]
mov ecx, dword [esp + 0x48d]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 0xc]
mov esi, dword [esi]
mov byte [esi + eax], dl
mov esi, 0x200
cmp eax, 0x1ff
je 0x10039185
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 1], dh
cmp eax, 0x1fd
ja 0x10039185
mov ecx, edx
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x10]
mov byte [eax + ecx + 2], bl
cmp eax, 0x1fd
jne 0x10039237
lea ebx, [esp + 0x498]
jmp 0x10039185
shr edx, 0x18
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 3], dl
cmp eax, 0x1fb
lea ebx, [esp + 0x498]
ja 0x10039185
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [esp + 8]
mov byte [eax + ecx + 4], dl
cmp eax, 0x1fb
je 0x10039185
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 5], dh
cmp eax, 0x1f9
ja 0x10039185
mov ecx, edx
shr ecx, 0x10
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov byte [eax + edx + 6], cl
cmp eax, 0x1f9
je 0x10039185
mov edx, dword [esp + 8]
shr edx, 0x18
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 7], dl
add eax, 8
jmp 0x10039183
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor ecx, ecx
mov byte [eax + 0x1ff], cl
mov dword [esp + 0x39c], 0xf
mov dword [esp + 0x398], 0
mov byte [esp + 0x388], cl
test esi, esi
je 0x1003931a
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x1003931a
mov eax, dword [esp + 0x1c]
test al, 0x10
jne 0x10039337
test al, 0x20
jne 0x10039324
test al, 0x40
je 0x100397ae
jmp 0x100397d7
test esi, esi
jne 0x10039360
mov esi, dword [esp + 0x14]
jmp 0x10039369
lea ecx, [esp + 0x388]
push 4
push str.get
call fcn.1000af00
mov esi, dword [esp + 0x14]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + 0x388]
push eax
push esi
call fcn.1000af00
lea ecx, [esp + 0x388]
push 0x2e
call fcn.100141c0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
mov esi, dword [eax]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + 0x388]
push eax
push esi
call fcn.1000af00
mov edx, dword [esp + 0x4ac]
mov ecx, dword [esp + 0x4a8]
mov eax, dword [esp + 0x4ec]
mov esi, dword [esp + 0x4e8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
xor edx, eax
mov dword [esp + 8], ecx
mov dword [esp + 0x14], esi
xor ecx, esi
mov dword [esp + 0x2c], 0
or ecx, edx
mov dl, byte [esp + 0x488]
je 0x10039642
mov dword [esp + 0x24], 0
cmp dl, 8
mov esi, dword [esp + 0x28]
jne 0x1003942f
mov eax, dword [esp + 0x489]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48d]
mov dword [esp + 0x24], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x100393ee
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4ec]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4e8]
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x488]
xor eax, eax
mov byte [esp + 0x60], al
mov byte [esp + 0x64], al
cmp dl, 9
jne 0x100394a3
mov ecx, dword [esp + 8]
xor ecx, dword [esp + 0x14]
mov eax, esi
xor eax, dword [esp + 0x10]
or eax, ecx
je 0x100394a3
mov eax, dword [esp + 0x489]
mov dword [esp + 0x60], eax
xor eax, eax
inc eax
mov dword [esp + 0x64], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10039462
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4ec]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4e8]
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x488]
xor eax, eax
mov byte [esp + 0x58], al
mov byte [esp + 0x5c], al
cmp dl, 0xa
jne 0x10039517
mov eax, dword [esp + 8]
xor eax, dword [esp + 0x14]
mov ecx, esi
xor ecx, dword [esp + 0x10]
or ecx, eax
je 0x10039517
mov eax, dword [esp + 0x489]
mov dword [esp + 0x58], eax
xor eax, eax
inc eax
mov dword [esp + 0x5c], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x100394d6
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4ec]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4e8]
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x488]
xor eax, eax
mov byte [esp + 0x50], al
mov byte [esp + 0x54], al
cmp dl, 1
jne 0x1003955a
mov eax, dword [esp + 8]
xor eax, dword [esp + 0x14]
xor esi, dword [esp + 0x10]
or esi, eax
je 0x1003955a
mov eax, dword [esp + 0x489]
mov dword [esp + 0x50], eax
xor eax, eax
inc eax
mov dword [esp + 0x54], eax
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x10039548
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
shr al, 7
movzx eax, al
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x388]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x24]
call fcn.100495b0
add esp, 0x18
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
call fcn.10037db0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x68]
call fcn.10038410
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
rol ecx, 5
mov eax, dword [esp + 0x10]
xor ecx, eax
imul ecx, ecx, 0x9e3779b9
xor edx, edx
inc edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
cmp byte [esp + 0xb8], 0
jne 0x100397fe
lea ecx, [esp + 0x78]
call fcn.1002b790
lea ecx, [esp + 0x388]
call fcn.1002b790
mov edx, dword [esp + 0x30]
inc edx
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
jne 0x10038f77
jmp 0x100396df
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x28]
jmp 0x1003942f
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
lea ecx, [esp + 0x78]
mov edx, str._root_
call fcn.100492a0
mov ecx, dword [esp + 8]
lea edx, [esp + 0x78]
call fcn.10037db0
xor ecx, ecx
mov byte [esp + 0x68], cl
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], eax
imul eax, eax, 0x9e3779b9
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], eax
cmp byte [esp + 0xb8], cl
jne 0x100397fe
lea ecx, [esp + 0x78]
call fcn.1002b790
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
jne 0x100396d4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x10038e8c
xor edx, edx
jmp 0x10038f77
test edx, edx
je 0x100396c7
mov ecx, dword [esi + 8]
lea edx, [esp + 0x68]
call fcn.10038410
mov ecx, dword [esp + 0x4a8]
mov edx, dword [esp + 0x4ac]
xor edx, dword [esp + 0x4ec]
xor ecx, dword [esp + 0x4e8]
or ecx, edx
setne cl
cmp byte [esp + 0x488], 0x10
mov dword [esp + 8], eax
sete al
and al, cl
mov byte [esp + 0x18], al
cmp al, 1
jne 0x1003974b
movsd xmm0, qword [esp + 0x489]
movapd xmmword [esp + 0x40], xmm0
mov ecx, ebx
call fcn.1003ccf0
lea ecx, [esp + 0x488]
call fcn.1003cd60
test al, al
je 0x10039734
mov esi, dword [esi + 0x10]
add esi, 4
mov ecx, esi
mov edx, 0x1006b228
push 1
push 0x1006b248
call fcn.100119c0
add esp, 8
mov ecx, esi
mov edx, 0x1006b228
push 0
push dword [esp + 0xc]
call fcn.10005db0
add esp, 8
mov ecx, esi
mov edx, 0x1006b228
movsd xmm0, qword [esp + 0x38]
call fcn.10037070
cmp byte [esp + 0x18], 0
jne 0x100397ea
mov ecx, esi
mov edx, 0x1006b270
call fcn.100144d0
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
jmp 0x100396cb
mov esi, dword [esp + 0x14]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + 0x388]
push eax
push esi
call fcn.1000af00
lea ecx, [esp + 0x388]
push 0x20
jmp 0x1003935b
lea ecx, [esp + 0x388]
push 4
push str.set
jmp 0x10039332
mov ecx, esi
mov edx, 0x1006b228
movapd xmm0, xmmword [esp + 0x40]
call fcn.10037070
jmp 0x10039795
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_is_N____
int3
push 0x1007b514
call fcn.1002d432
add esp, 4
cmp dword [0x1007b514], 0xffffffff
jne 0x10038fed
push str.MOZ_PROFILER_SYMBOLICATE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x10039843
xor eax, eax
jmp 0x10039849
cmp byte [eax], 0
setne al
mov byte [0x1007b510], al
push 0x1007b514
call fcn.1002d432
add esp, 4
jmp 0x10038fed