Function at 0x10038330
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, edx
mov dword [esp + 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [esp + 0x518], eax
xor eax, eax
mov dword [esi], eax
lea edi, [esp + 0x488]
mov ecx, edi
push eax
push eax
call fcn.1003c670
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 0x10038395
mov ecx, dword [esp + 0x518]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 0x498]
lea edi, [esp + 0x488]
cmp byte [esp + 0x488], 0x11
je 0x100383e1
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x100383ad
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
jne 0x100383a3
jmp 0x1003837d
mov eax, dword [esp + 0x489]
mov dword [esp + 0x3c], eax
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x100383ec
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp dword [esp + 0x3c], eax
je 0x10038410
test eax, eax
jne 0x100383bf
movsd xmm0, qword [0x1006d358]
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 0x1003848f
cmp byte [esp + 0x488], 0x12
jne 0x1003848f
movsd xmm0, qword [esp + 0x489]
movsd qword [esp + 0x28], xmm0
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038461
mov eax, dword [esp + 8]
mov eax, dword [eax + 4]
movsd xmm0, qword [eax]
ucomisd xmm0, qword [esp + 0x28]
ja 0x100383bf
jmp 0x10038b7b
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.10016780
add esp, 0xc
jmp 0x100383bf
mov al, byte [esp + 0x488]
cmp al, 4
je 0x100385f3
cmp al, 0xb
jne 0x10038c02
mov dword [esp + 0x38], edx
mov esi, dword [esp + 0x489]
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x100384d4
sub esp, 0x10
mov dword [esp + 8], esi
lea eax, [esp + 0x398]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.10049670
add esp, 0x10
mov eax, dword [0x1007e3c0]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10038db3
cmp byte [0x1007e3bc], 0
je 0x10038579
lea eax, [esp + 0x78]
push eax
push esi
call sym.mozglue.dll_MozDescribeCodeAddress
add esp, 8
test al, al
je 0x10038579
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
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x388]
call fcn.100495e0
mov esi, dword [esp + 0x10]
mov ecx, esi
lea edx, [esp + 0x78]
call fcn.100372f0
mov dword [esp + 0xc], eax
mov ecx, esi
lea edx, [esp + 0x68]
call fcn.10037950
mov edx, dword [esp + 0x18]
rol edx, 5
mov esi, dword [esp + 0xc]
xor edx, esi
imul edx, edx, 0x9e3779b9
xor ecx, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], esi
cmp byte [esp + 0xb8], 0
jne 0x10038d49
lea ecx, [esp + 0x78]
jmp 0x10038b33
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x489]
mov dword [esp + 0x14], eax
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038602
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 0x1003866b
cmp byte [esp + 0x488], 5
mov eax, 0
jne 0x1003866b
mov eax, dword [esp + 0x489]
mov dword [esp + 0x1c], eax
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038655
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 8]
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 0x100387f9
cmp byte [esp + 0x488], 6
jne 0x100387f9
xor eax, eax
cmp eax, 0x200
jb 0x100386ff
mov esi, eax
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x100386b8
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x100387f9
cmp byte [esp + 0x488], 6
mov eax, esi
je 0x100386af
jmp 0x100387f9
mov edx, dword [esp + 0x489]
mov ecx, dword [esp + 0x48d]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 8]
mov esi, dword [ecx + 0xc]
mov esi, dword [esi]
mov byte [esi + eax], dl
mov esi, 0x200
cmp eax, 0x1ff
je 0x100386b8
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 1], dh
cmp eax, 0x1fd
ja 0x100386b8
mov ecx, edx
shr ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x10]
mov byte [eax + ecx + 2], bl
cmp eax, 0x1fd
jne 0x1003876a
lea ebx, [esp + 0x498]
jmp 0x100386b8
shr edx, 0x18
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 3], dl
cmp eax, 0x1fb
lea ebx, [esp + 0x498]
ja 0x100386b8
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov edx, dword [esp + 0xc]
mov byte [eax + ecx + 4], dl
cmp eax, 0x1fb
je 0x100386b8
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 5], dh
cmp eax, 0x1f9
ja 0x100386b8
mov ecx, edx
shr ecx, 0x10
mov edx, dword [esp + 8]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
mov byte [eax + edx + 6], cl
cmp eax, 0x1f9
je 0x100386b8
mov edx, dword [esp + 0xc]
shr edx, 0x18
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
mov byte [eax + ecx + 7], dl
add eax, 8
jmp 0x100386b6
mov eax, dword [esp + 8]
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 0x1003884d
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x1003884d
mov eax, dword [esp + 0x1c]
test al, 0x10
jne 0x1003886a
test al, 0x20
jne 0x10038857
test al, 0x40
je 0x10038cfa
jmp 0x10038d23
test esi, esi
jne 0x10038893
mov esi, dword [esp + 0x14]
jmp 0x1003889c
lea ecx, [esp + 0x388]
push 4
push str.get
call fcn.10009760
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.10009760
lea ecx, [esp + 0x388]
push 0x2e
call fcn.10015ea0
mov eax, dword [esp + 8]
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.10009760
mov edx, dword [esp + 0x4ac]
mov ecx, dword [esp + 0x4a8]
mov eax, dword [esp + 0x4ec]
mov esi, dword [esp + 0x4e8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
xor edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
xor ecx, esi
mov dword [esp + 0x34], 0
or ecx, edx
mov dl, byte [esp + 0x488]
je 0x10038b6a
mov dword [esp + 0x20], 0
cmp dl, 8
mov esi, dword [esp + 0x30]
jne 0x10038962
mov eax, dword [esp + 0x489]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48d]
mov dword [esp + 0x20], eax
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038921
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0xc], 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 0x100389d6
mov ecx, dword [esp + 0xc]
xor ecx, dword [esp + 0x14]
mov eax, esi
xor eax, dword [esp + 0x10]
or eax, ecx
je 0x100389d6
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.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038995
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0xc], 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 0x10038a4a
mov eax, dword [esp + 0xc]
xor eax, dword [esp + 0x14]
mov ecx, esi
xor ecx, dword [esp + 0x10]
or ecx, eax
je 0x10038a4a
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.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038a09
mov esi, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0xc], 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 0x10038a8d
mov eax, dword [esp + 0xc]
xor eax, dword [esp + 0x14]
xor esi, dword [esp + 0x10]
or esi, eax
je 0x10038a8d
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.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x10038a7b
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
shr al, 7
movzx eax, al
lea ecx, [esp + 0x78]
lea edx, [esp + 0x388]
lea esi, [esp + 0x50]
push esi
lea esi, [esp + 0x5c]
push esi
lea esi, [esp + 0x68]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x44]
push eax
call fcn.100498f0
add esp, 0x18
mov esi, dword [esp + 0xc]
mov ecx, esi
lea edx, [esp + 0x78]
call fcn.100372f0
mov dword [esp + 0x10], eax
mov ecx, esi
lea edx, [esp + 0x68]
call fcn.10037950
mov edx, dword [esp + 0x18]
rol edx, 5
mov esi, dword [esp + 0x10]
xor edx, esi
imul edx, edx, 0x9e3779b9
xor ecx, ecx
inc ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], esi
cmp byte [esp + 0xb8], 0
jne 0x10038d49
lea ecx, [esp + 0x78]
call fcn.1002e4b0
lea ecx, [esp + 0x388]
call fcn.1002e4b0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
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 0x100384b2
jmp 0x10038c0a
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x30]
jmp 0x10038962
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x78]
mov edx, str._root_
call fcn.100495e0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x78]
call fcn.100372f0
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 + 0x18], eax
mov dword [esp + 0x74], eax
cmp byte [esp + 0xb8], cl
jne 0x10038d49
lea ecx, [esp + 0x78]
call fcn.1002e4b0
mov eax, dword [esp + 0x4ac]
xor eax, dword [esp + 0x4ec]
mov ecx, dword [esp + 0x4a8]
xor ecx, dword [esp + 0x4e8]
or ecx, eax
je 0x100383bf
xor edx, edx
mov dword [esp + 0x24], esi
jmp 0x100384b2
test edx, edx
je 0x100383bf
mov eax, dword [esp + 8]
mov ecx, dword [eax + 8]
lea edx, [esp + 0x68]
call fcn.10037950
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 + 0x10], eax
sete al
and al, cl
mov byte [esp + 0xc], al
cmp al, 1
jne 0x10038c7a
movsd xmm0, qword [esp + 0x489]
movapd xmmword [esp + 0x40], xmm0
mov ecx, ebx
call fcn.1003c6d0
lea ecx, [esp + 0x488]
call fcn.1003c740
test al, al
je 0x10038c63
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x10]
lea eax, [esp + 0x78]
mov dword [eax], ecx
add ecx, 4
mov dword [esp + 0x18], ecx
mov edx, 0x1006d690
xor eax, eax
inc eax
push eax
push 0x1006d708
call fcn.10013ba0
add esp, 8
lea eax, [esp + 0x78]
xor ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x1006d690
push 0
push dword [esp + 0x14]
call fcn.100068d0
add esp, 8
lea ecx, [esp + 0x78]
xor edx, edx
inc edx
movsd xmm0, qword [esp + 0x28]
call fcn.100499f0
cmp byte [esp + 0xc], 0
jne 0x10038d36
mov ecx, dword [esp + 0x78]
add ecx, 4
mov edx, 0x1006d760
call fcn.100161a0
mov eax, dword [esp + 0x3c]
mov dword [esi], eax
jmp 0x100383bf
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.10009760
lea ecx, [esp + 0x388]
push 0x20
jmp 0x1003888e
lea ecx, [esp + 0x388]
push 4
push str.set
jmp 0x10038865
mov esi, dword [esp + 0x7c]
cmp esi, 2
jne 0x10038d5e
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jmp 0x10038d89
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_is_N____
int3
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
add eax, 4
mov dword [esp + 0xc], eax
add esi, 0xfffffffe
mov ecx, dword [esp + 0xc]
mov edx, 0x1006d690
push 0x1006d710
call fcn.10033dc0
add esp, 4
inc esi
jne 0x10038d70
mov dword [esp + 0x7c], 3
mov esi, dword [esp + 0x28]
lea ecx, [esi + 4]
mov edx, 0x1006d690
movapd xmm0, xmmword [esp + 0x40]
call fcn.100363e0
mov ecx, esi
mov esi, dword [esp + 0x24]
jmp 0x10038ce2
push 0x1007e3c0
call fcn.1002ff22
add esp, 4
cmp dword [0x1007e3c0], 0xffffffff
jne 0x10038528
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 0x10038de3
xor eax, eax
jmp 0x10038de9
cmp byte [eax], 0
setne al
mov byte [0x1007e3bc], al
push 0x1007e3c0
call fcn.1002ff22
add esp, 4
jmp 0x10038528