Function at 0x40335a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x414008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x98], ebx
call fcn.00401da1
test al, al
jne 0x4033aa
push str.Couldnt_read_configuration.
lea ecx, [ebp - 0x7c]
call fcn.00407df2
lea ecx, [ebp - 0x7c]
call fcn.0040135c
lea ecx, [ebp - 0x7c]
push ebx
push 1
call fcn.004095c8
jmp 0x403d68
call fcn.004068dc
test al, al
je 0x403d68
cmp esi, 1
jle 0x4033d2
mov ecx, dword [edi + 4]
call fcn.00401236
push eax
push dword [edi + 4]
mov ecx, 0x4140a0
call fcn.00409967
lea ecx, [ebp - 0x4c]
cmp dword [0x4140b0], ebx
jne 0x40340e
mov edx, str.CrashReporterDefault
call fcn.00404024
cmp dword [eax + 0x14], 8
jb 0x4033ef
mov eax, dword [eax]
push 0x10
push str.Crash_Reporter
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.004091f1
jmp 0x403d68
push str..extra
call fcn.00401e81
pop ecx
mov esi, 0x414060
push eax
mov ecx, esi
call fcn.00407d65
xor edi, edi
lea ecx, [ebp - 0x4c]
push ebx
inc edi
push edi
call fcn.004095c8
cmp dword [0x414070], ebx
jne 0x4034e2
push str.ErrorBadArguments
lea ecx, [ebp - 0x34]
call fcn.00407df2
lea eax, [ebp - 0x34]
mov edi, 0x414570
push eax
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00408fc3
mov esi, dword [ebp - 0x98]
cmp esi, dword [0x414570]
je 0x403481
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407b63
test eax, eax
jns 0x4034d2
mov ecx, edi
call fcn.0040ca4d
mov dword [ebp - 0x98], eax
mov word [eax + 0xc], bx
lea ebx, [eax + 0x10]
test ebx, ebx
je 0x4034b9
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00407d8a
xor eax, eax
mov dword [ebx + 0x2c], 0xf
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x18], al
mov eax, dword [ebp - 0x98]
push eax
push ebx
push esi
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0040c8c9
mov esi, dword [ebp - 0x98]
xor ebx, ebx
lea ecx, [esi + 0x28]
call fcn.0040135c
lea ecx, [ebp - 0x34]
jmp 0x40339d
mov ecx, esi
call fcn.0040719a
test al, al
jne 0x4034f7
push str.ErrorExtraFileExists
jmp 0x403444
push str..memory.json.gz
lea ecx, [ebp - 0x4c]
call fcn.00401e81
pop ecx
push eax
mov ecx, 0x414080
call fcn.00407d65
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004095c8
mov ecx, 0x414080
call fcn.0040719a
test al, al
jne 0x403543
cmp dword [0x414094], 0x10
mov eax, 0x414080
mov dword [0x414090], ebx
cmovae eax, dword [0x414080]
mov byte [eax], bl
lea ecx, [ebp - 0xa4]
call fcn.004077b2
push ecx
lea edx, [ebp - 0xa4]
mov ecx, esi
call fcn.0040189e
pop ecx
test al, al
jne 0x403608
push str.ErrorExtraFileRead
lea ecx, [ebp - 0x34]
call fcn.00407df2
lea eax, [ebp - 0x34]
mov edi, 0x414570
push eax
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00408fc3
mov esi, dword [ebp - 0x98]
cmp esi, dword [0x414570]
je 0x4035a7
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407b63
test eax, eax
jns 0x4035f8
mov ecx, edi
call fcn.0040ca4d
mov dword [ebp - 0x98], eax
mov word [eax + 0xc], bx
lea ebx, [eax + 0x10]
test ebx, ebx
je 0x4035df
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.00407d8a
xor eax, eax
mov dword [ebx + 0x2c], 0xf
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x18], al
mov eax, dword [ebp - 0x98]
push eax
push ebx
push esi
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.0040c8c9
mov esi, dword [ebp - 0x98]
xor ebx, ebx
lea ecx, [esi + 0x28]
call fcn.0040135c
lea ecx, [ebp - 0x34]
jmp 0x403d55
push 0x410664
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004077ed
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa4]
sete bl
xor esi, esi
push esi
push edi
call fcn.004095c8
test bl, bl
je 0x403672
push str.ErrorNoProductName
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
mov ecx, 0x414570
push eax
call fcn.00407a91
mov ecx, eax
call fcn.0040135c
push esi
push edi
lea ecx, [ebp - 0x1c]
jmp 0x403d58
lea ecx, [ebp - 0xa4]
call fcn.00402a7a
push str.ServerURL
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004077ed
push esi
push edi
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa4]
sete bl
call fcn.004095c8
test bl, bl
je 0x4036c0
push str.ErrorNoServerURL
jmp 0x40364b
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
push str.MOZ_CRASHREPORTER_DATA_DIRECTORY
call edi
xor ebx, ebx
pop ecx
test eax, eax
je 0x40371c
cmp word [eax], bx
je 0x40371c
push eax
lea ecx, [ebp - 0x34]
call fcn.00407b16
push ecx
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.0040681c
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
mov esi, 0x414040
push eax
mov ecx, esi
call fcn.00407d65
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004095c8
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004091f1
jmp 0x4037b0
push 0x410664
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a91
push eax
lea ecx, [ebp - 0x64]
call fcn.00407e20
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004095c8
push 0x410670
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a91
push eax
lea ecx, [ebp - 0x34]
call fcn.00407e20
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004095c8
push ecx
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x34]
call fcn.00406f89
mov esi, 0x414040
pop ecx
test al, al
jne 0x40379a
push ebx
mov ecx, esi
call fcn.00409679
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004095c8
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004095c8
cmp dword [0x414050], 0
je 0x403d30
mov ecx, esi
call fcn.00407133
test al, al
je 0x403d30
call fcn.00401cfa
push 0x411040
call edi
pop ecx
test eax, eax
je 0x403821
cmp word [eax], bx
je 0x403821
push eax
lea ecx, [ebp - 0x34]
call fcn.00407b16
push ecx
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.0040681c
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
mov ecx, 0x4140c0
push eax
call fcn.00407d65
xor edi, edi
lea ecx, [ebp - 0x1c]
push ebx
inc edi
push edi
call fcn.004095c8
push ebx
push edi
lea ecx, [ebp - 0x34]
call fcn.004091f1
jmp 0x40382f
push ebx
mov ecx, 0x4140c0
call fcn.00409679
xor edi, edi
inc edi
push str.StackTraces
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004077ed
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004095c8
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0xa4]
je 0x403872
lea ecx, [eax + 0x28]
call fcn.00401a03
mov ecx, 0x4140a0
call fcn.0040719a
test al, al
jne 0x4038a8
push str.ErrorDumpFileExists
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
mov ecx, 0x414570
push eax
call fcn.00407a91
mov ecx, eax
call fcn.0040135c
push ebx
jmp 0x403669
push str.pending
push ecx
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.0040b726
pop ecx
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.0040b775
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004095c8
push ecx
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00401f1e
pop ecx
pop ecx
test al, al
je 0x403d29
mov esi, str.ServerURL
lea ecx, [ebp - 0x1c]
push esi
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a91
push eax
lea ecx, [ebp - 0x94]
call fcn.00407e20
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004095c8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407829
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004095c8
push str.Throttleable
lea ecx, [ebp - 0x1c]
call fcn.00407df2
push 0x410814
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a91
mov ecx, eax
call fcn.00407d29
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.004095c8
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push str.MOZ_CRASHREPORTER_RESTART_XUL_APP_FILE
call edi
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403a48
cmp byte [ebx], 0
je 0x403a48
mov esi, str.XUL_APP_FILE
lea edi, [ebp - 0x5c]
mov edx, ebx
movsd dword es:[edi], dword [esi]
lea ecx, [edx + 1]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov al, byte [edx]
inc edx
test al, al
jne 0x40399c
sub edx, ecx
lea ecx, [ebp - 0x5c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4039ab
sub ecx, esi
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
mov dword [ebp - 0x98], edx
pop ecx
test edx, edx
jne 0x4039f6
push str.Out_of_memory
lea ecx, [ebp - 0x1c]
call fcn.00407df2
lea ecx, [ebp - 0x1c]
call fcn.0040135c
xor ebx, ebx
lea ecx, [ebp - 0x1c]
xor edi, edi
push ebx
inc edi
push edi
call fcn.004095c8
jmp 0x403d1c
lea ecx, [ebp - 0x5c]
mov esi, edx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
mov byte [ecx + esi], al
inc ecx
test al, al
jne 0x4039ff
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x403a0b
sub ebx, esi
lea edi, [edx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a17
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
pop ecx
push dword [ebp - 0x98]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
pop ecx
push ecx
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00408719
push ebx
push ecx
mov edx, str.MOZ_CRASHREPORTER_RESTART_ARG_
lea ecx, [ebp - 0x148]
call fcn.0040b49f
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [ebp - 0x1c]
inc ebx
push eax
lea ecx, [ebp - 0x144]
call fcn.00409f3b
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
pop ecx
lea ecx, [ebp - 0x1c]
jmp 0x403b4d
cmp byte [esi], 0
je 0x403b60
push esi
lea ecx, [ebp - 0x4c]
call fcn.00407df2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00407a26
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004095c8
push 0x41050d
lea ecx, [ebp - 0x34]
call fcn.00407df2
lea ecx, [ebp - 0x144]
call fcn.00409ede
push dword [ebp - 0x108]
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x144]
push eax
call fcn.0040b1c6
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004095c8
push ebx
push ecx
mov edx, str.MOZ_CRASHREPORTER_RESTART_ARG_
lea ecx, [ebp - 0x148]
call fcn.0040b49f
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [ebp - 0x34]
inc ebx
push eax
lea ecx, [ebp - 0x144]
call fcn.00409f3b
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
pop ecx
lea ecx, [ebp - 0x34]
push 0
push 1
mov esi, eax
call fcn.004095c8
test esi, esi
jne 0x403aa2
push str.MOZ_CRASHREPORTER_URL
call edi
pop ecx
test eax, eax
je 0x403b7d
cmp byte [eax], 0
je 0x403b7d
push eax
lea ecx, [ebp - 0x94]
call fcn.00407d29
mov esi, str.Version
lea ecx, [ebp - 0x1c]
push esi
call fcn.00407df2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004077ed
xor ebx, ebx
inc ebx
mov eax, dword [eax]
cmp eax, dword [ebp - 0xa4]
je 0x403be9
push esi
lea ecx, [ebp - 0x4c]
call fcn.00407df2
push 3
pop ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407a91
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00407e20
call fcn.004032bb
add esp, 0x18
test al, al
je 0x403be9
mov byte [ebp - 0x99], 1
jmp 0x403bf1
xor eax, eax
mov byte [ebp - 0x99], al
test bl, 2
je 0x403c05
xor ebx, ebx
lea ecx, [ebp - 0x4c]
push ebx
push 1
call fcn.004095c8
jmp 0x403c07
xor ebx, ebx
xor edi, edi
lea ecx, [ebp - 0x1c]
push ebx
inc edi
push edi
call fcn.004095c8
cmp byte [ebp - 0x99], 0
je 0x403c53
push str.ErrorEndOfLife
lea ecx, [ebp - 0x4c]
call fcn.00407df2
lea eax, [ebp - 0x4c]
mov ecx, 0x414570
push eax
call fcn.00407a91
mov ecx, eax
call fcn.0040135c
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004095c8
call fcn.00402952
jmp 0x403cfd
lea ecx, [ebp - 0xac]
call fcn.004077b2
push str.upload_file_minidump
lea ecx, [ebp - 0x4c]
call fcn.00407df2
push 0x4140a0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xac]
call fcn.00407a91
mov ecx, eax
call fcn.00407d47
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004095c8
cmp dword [0x414090], 0
je 0x403ccb
push str.memory_report
lea ecx, [ebp - 0x4c]
call fcn.00407df2
push 0x414080
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xac]
call fcn.00407a91
mov ecx, eax
call fcn.00407d47
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.004095c8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x94]
push eax
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0xac]
call fcn.0040692c
pop ecx
pop ecx
test al, al
jne 0x403cf2
call fcn.00402952
lea ecx, [ebp - 0xac]
call fcn.00401335
lea ecx, [ebp - 0xf8]
call fcn.004086e9
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x58]
call fcn.0040905c
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.004095c8
push ebx
push edi
lea ecx, [ebp - 0x7c]
jmp 0x403d58
push str.ErrorNoSettingsPath
lea ecx, [ebp - 0x4c]
call fcn.00407df2
lea eax, [ebp - 0x4c]
mov ecx, 0x414570
push eax
call fcn.00407a91
mov ecx, eax
call fcn.0040135c
lea ecx, [ebp - 0x4c]
push ebx
push 1
call fcn.004095c8
lea ecx, [ebp - 0xa4]
call fcn.00401335
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e268
mov esp, ebp
pop ebp
ret