Function at 0x4015b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x21c], edx
push str.XUL_APP_FILE
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
jne 0x406dfa
mov esi, dword [ebp - 0x21c]
cmp edi, 1
jle 0x401643
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
mov edx, ecx
mov al, byte [ecx]
cmp al, 0x2d
je 0x406e41
cmp al, 0x2f
je 0x406e61
mov ecx, dword [edi]
mov edx, ecx
mov al, byte [ecx]
cmp al, 0x2d
je 0x406f39
cmp al, 0x2f
je 0x406f59
mov edi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x406fc4
push ecx
lea ecx, [ebp - 0x274]
call fcn.00401190
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40704d
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x214], 0
test ecx, ecx
jne 0x407038
mov eax, dword [0x43a524]
test eax, eax
je 0x4016bb
push 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
call eax
add esp, 0x10
mov eax, dword [0x43a4c0]
test eax, eax
je 0x407043
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x230]
push 1
push ecx
call eax
add esp, 0xc
mov esi, eax
mov ecx, dword [0x43a4dc]
test ecx, ecx
je 0x4016f5
lea eax, [ebp - 0x230]
push eax
call ecx
add esp, 4
test esi, esi
js 0x40704d
mov esi, dword [ebp - 0x214]
push esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x401719
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x224]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0xc0]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb4]
mov eax, dword [0x43a524]
mov edi, dword [ebp - 0x220]
test eax, eax
je 0x401777
push 2
push 7
lea ecx, [ebp - 0x230]
push str.browser
push ecx
call eax
add esp, 0x10
mov eax, dword [edi]
lea ecx, [ebp - 0x230]
push ecx
push edi
call dword [eax + 0xc]
mov eax, dword [0x43a4dc]
test eax, eax
je 0x401799
lea ecx, [ebp - 0x230]
push ecx
call eax
add esp, 4
mov ecx, dword [ebp - 0x270]
mov edi, dword [ebp - 0x220]
test ecx, ecx
jne 0x40706f
mov dword [ebp - 0x270], edi
test edi, edi
je 0x4017bd
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 0x24c], ebx
call dword [sym.imp.mozglue.dll_bool___cdecl_DllBlocklist_CheckStatus_void_]
test al, al
jne 0x40707a
xor eax, eax
or dword [ebp - 0x250], eax
mov eax, dword [0x43a5dc]
test al, 1
jne 0x407084
or eax, 1
cmp dword [sym.firefox.exe_g_shared_section], 0
mov dword [0x43a5dc], eax
jne 0x401984
mov ebx, dword [0x43a5cc]
test ebx, ebx
jne 0x4018d9
push 0x44
call fcn.00405f0d
mov edi, eax
push 0xc
mov dword [edi], 0x422508
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call fcn.00405f0d
add esp, 8
test eax, eax
je 0x40183a
mov dword [eax], eax
lea ecx, [eax + 4]
test ecx, ecx
je 0x401843
mov dword [ecx], eax
mov dword [edi + 0x2c], eax
push 0x18
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00405f0d
add esp, 4
test eax, eax
je 0x401864
mov dword [eax], eax
lea ecx, [eax + 4]
test ecx, ecx
je 0x40186d
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x401876
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
mov dword [edi + 0x34], eax
push 0x14
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00405f0d
add esp, 4
test eax, eax
je 0x40189d
mov dword [eax], eax
lea ecx, [eax + 4]
test ecx, ecx
je 0x4018a6
mov dword [ecx], eax
lea ecx, [eax + 8]
test ecx, ecx
je 0x4018af
mov dword [ecx], eax
mov word [eax + 0xc], 0x101
push 0x401993
mov dword [edi + 0x3c], eax
mov dword [0x43a5cc], edi
call fcn.00406166
mov ebx, dword [0x43a5cc]
add esp, 4
test ebx, ebx
je 0x401984
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test eax, eax
jne 0x401984
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
push 1
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x24]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [0x43a5d8], ebx
test ebx, ebx
je 0x40708f
push 0
lea eax, [ebp - 0x274]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x21c]
push eax
push ebx
call dword [0x43a46c]
add esp, 0x10
mov edi, eax
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x401946
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x401956
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x274]
call fcn.00401030
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x40198b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret
xor ebx, ebx
jmp 0x401900
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x401971
cmp byte [esi], 0
je 0x401602
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x218], 0
test ecx, ecx
je 0x406e1d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [0x43a468]
add esp, 8
test eax, eax
jns 0x406fb9
push esi
push str.Invalid_path_found:__s
jmp 0x406f09
inc ecx
push 0x422aec
cmp byte [ecx], 0x2d
cmovne ecx, edx
inc ecx
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x406e7b
jmp 0x401627
lea eax, [ecx + 1]
push 0x422aec
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401627
mov edi, dword [ebp - 0x210]
cmp edi, 2
jne 0x406e95
push str.Incorrect_number_of_arguments_passed_to__app
call fcn.00409994
add esp, 4
jmp 0x406f11
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x218], 0
test ecx, ecx
je 0x406eaf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
add esi, 8
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call dword [0x43a468]
add esp, 8
push dword [esi]
test eax, eax
jns 0x406ed1
push str.application.ini_path_not_recognized:__s
jmp 0x406f09
lea eax, [ebp - 0x108]
push str.XUL_APP_FILE_s
push eax
call fcn.00409773
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.mozglue.dll_strdup]
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
add esp, 0x14
test eax, eax
je 0x406f1b
lea eax, [ebp - 0x108]
push eax
push str.Couldnt_set__s._n
call fcn.00409994
add esp, 8
mov edi, 0xff
jmp 0x401967
mov eax, dword [ebp - 0x21c]
sub edi, 2
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], edi
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x401643
inc ecx
push str.xpcshell
cmp byte [ecx], 0x2d
cmovne ecx, edx
inc ecx
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x406f73
jmp 0x40163d
lea eax, [ecx + 1]
push str.xpcshell
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40163d
mov ebx, dword [ebp - 0x210]
cmp ebx, 1
jle 0x406f8c
add esi, 8
lea ecx, [ebx - 1]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x21c]
call fcn.004215ff
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
lea eax, [ebx - 1]
push esi
push eax
call dword [0x43a470]
add esp, 0x10
mov edi, eax
jmp 0x401967
mov esi, dword [ebp - 0x21c]
jmp 0x401643
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [0x43a488]
add esp, 8
test eax, eax
jns 0x406ff0
push str.Couldnt_read_application.ini
call fcn.00409994
add esp, 4
mov edi, 0xff
jmp 0x401967
call dword [sym.imp.mozglue.dll_bool___cdecl_DllBlocklist_CheckStatus_void_]
movzx ecx, al
mov eax, dword [ebp - 0x210]
neg ecx
push 0
sbb ecx, ecx
and ecx, 4
or dword [eax + 0x24], ecx
mov eax, dword [ebp - 0x210]
mov dword [eax + 0x28], ebx
push dword [ebp - 0x210]
push esi
push edi
call dword [0x43a46c]
push dword [ebp - 0x210]
mov edi, eax
call dword [0x43a484]
add esp, 0x14
jmp 0x401967
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40169b
mov esi, 0xc1f30001
jmp 0x4016df
lea ecx, [ebp - 0x214]
call fcn.00408ac5
push str.Couldnt_find_the_application_directory._n
call fcn.00409994
add esp, 4
mov edi, 0xff
jmp 0x40195c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x4017ad
mov eax, 4
jmp 0x4017d3
mov ebx, dword [0x43a5d8]
jmp 0x401906
push str.Couldnt_initialize_the_broker_services._n
call fcn.00409994
add esp, 4
mov edi, 0xff
jmp 0x401936