Function at 0x402b58
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x41411c]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [0x4148bc], edi
mov dword [0x4148b8], esi
call fcn.00401b05
test al, al
jne 0x402bbc
push str.Couldnt_read_configuration.
lea ecx, [esp + 0x28]
call fcn.0040348b
lea ecx, [esp + 0x24]
call fcn.00401607
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.00404930
jmp 0x4033d0
call fcn.0040a029
test al, al
je 0x4033d0
cmp edi, 1
jle 0x402bdb
push dword [esi + 4]
mov ecx, 0x414168
call fcn.004044de
cmp dword [0x41417c], ebx
jne 0x402bed
call fcn.0040a073
jmp 0x4033d0
lea ebx, [esp + 0xdc]
call fcn.00401bee
push 0xffffffffffffffff
xor esi, esi
push esi
mov ebx, 0x414184
push eax
mov ecx, ebx
call fcn.0040444c
push esi
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
cmp dword [0x414198], esi
jne 0x402c4c
push str.ErrorBadArguments
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push esi
jmp 0x402bac
call fcn.0040a61e
test al, al
jne 0x402c80
push str.ErrorExtraFileExists
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push 0
jmp 0x402bac
lea esi, [esp + 0x18]
call fcn.00403a06
mov eax, esi
push eax
mov eax, ebx
call fcn.0040196b
test al, al
pop ecx
lea ecx, [esp + 0x24]
jne 0x402cc7
push str.ErrorExtraFileRead
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push 0
lea ecx, [esp + 0x28]
jmp 0x4033c0
push 0x41069c
call fcn.0040348b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403bd6
lea edi, [esp + 0x10]
mov esi, eax
call fcn.00403cb3
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17], al
call fcn.00404930
cmp byte [esp + 0xf], bl
je 0x402d45
push str.ErrorNoProductName
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
lea ecx, [esp + 0x24]
jmp 0x4033bf
lea ecx, [esp + 0x18]
call fcn.004024a5
push str.ServerURL
lea ecx, [esp + 0x28]
call fcn.0040348b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403bd6
lea edi, [esp + 0x10]
mov esi, eax
call fcn.00403cb3
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17], al
call fcn.00404930
cmp byte [esp + 0xf], bl
je 0x402dd2
push str.ErrorNoServerURL
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push ebx
push esi
lea ecx, [esp + 0x2c]
jmp 0x4033c2
mov edi, dword [sym.imp.MOZCRT19.dll_getenv]
push str.MOZ_CRASHREPORTER_DATA_DIRECTORY
call edi
cmp eax, ebx
pop ecx
je 0x402dfa
cmp byte [eax], bl
je 0x402dfa
mov esi, 0x41414c
push eax
mov ecx, esi
call fcn.004044de
jmp 0x402ea7
push 0x41069c
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403a29
push eax
lea ecx, [esp + 0xe0]
call fcn.004034ad
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.00404930
push 0x4106a8
lea ecx, [esp + 0x28]
call fcn.0040348b
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403a29
push eax
lea ecx, [esp + 0xfc]
call fcn.004034ad
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.00404930
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xfc]
call fcn.0040a4b5
test al, al
pop ecx
mov esi, 0x41414c
jne 0x402e89
mov eax, esi
call fcn.004034dd
push ebx
push 1
lea ecx, [esp + 0x100]
call fcn.00404930
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
cmp dword [0x414160], ebx
je 0x40338e
mov ecx, esi
call fcn.0040a5c4
test al, al
je 0x40338e
call fcn.00401a57
mov ebx, 0x414168
call fcn.0040a61e
test al, al
jne 0x402f0d
push str.ErrorDumpFileExists
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push 0
lea ecx, [esp + 0xe0]
jmp 0x4033c0
push str.pending
push 0x4105b8
lea eax, [esp + 0xe4]
push esi
push eax
call fcn.00407657
add esp, 0xc
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.00407657
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
lea ecx, [esp + 0x114]
call fcn.00401cb0
test al, al
jne 0x402f66
lea ecx, [esp + 0x114]
jmp 0x4033bf
mov esi, str.ServerURL
push esi
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403a29
push eax
lea ecx, [esp + 0x134]
call fcn.004034ad
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
push esi
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403b39
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
push str.MOZ_CRASHREPORTER_RESTART_XUL_APP_FILE
call edi
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x403098
cmp byte [eax], bl
je 0x403098
mov esi, str.XUL_APP_FILE
lea edi, [esp + 0xf8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call sub.MOZCRT19.dll_strlen
mov esi, eax
pop ecx
lea eax, [esp + 0xf8]
push eax
call sub.MOZCRT19.dll_strlen
pop ecx
add esi, eax
push esi
call dword [sym.imp.MOZCRT19.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x403068
push str.Out_of_memory
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea ecx, [esp + 0xdc]
call fcn.00401607
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
push ebx
push 1
lea ecx, [esp + 0x138]
call fcn.00404930
jmp 0x402f5a
lea eax, [esp + 0xf8]
push eax
push esi
call sub.MOZCRT19.dll_strcpy
push dword [esp + 0x18]
push esi
call sub.MOZCRT19.dll_strcat
push esi
call dword [sym.imp.MOZCRT19.dll__putenv]
add esp, 0x14
push esi
call dword [sym.imp.MOZCRT19.dll_free]
mov edi, dword [sym.imp.MOZCRT19.dll_getenv]
pop ecx
lea eax, [esp + 0x58]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.004041fc
push ebx
push ecx
lea eax, [esp + 0x60]
push str.MOZ_CRASHREPORTER_RESTART_ARG_
push eax
call fcn.004073c8
add esp, 0xc
push eax
call fcn.004035fe
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 1
call fcn.00404ecc
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x4030ec
lea eax, [esp + 0x28]
push eax
call edi
pop ecx
push ebx
push 1
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00404930
cmp esi, ebx
je 0x4031fd
cmp byte [esi], bl
je 0x4031fd
push esi
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0x4c]
call fcn.0040419c
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.00404930
push 0x4105df
lea ecx, [esp + 0xfc]
call fcn.0040348b
lea esi, [esp + 0x5c]
call fcn.00404fa5
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
jae 0x40316d
lea eax, [esp + 0xfc]
mov ebx, dword [esp + 0x10c]
push eax
mov eax, dword [esp + 0xa0]
lea esi, [esp + 0x60]
call fcn.0040615a
push 0
push 1
lea ecx, [esp + 0x100]
call fcn.00404930
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push ecx
push str.MOZ_CRASHREPORTER_RESTART_ARG_
push eax
call fcn.004073c8
add esp, 0xc
push eax
call fcn.004035fe
inc dword [esp + 0x10]
mov eax, esi
push eax
lea ecx, [esp + 0xfc]
call fcn.00404ecc
cmp dword [esp + 0x110], 0x10
mov eax, dword [esp + 0xfc]
jae 0x4031dd
lea eax, [esp + 0xfc]
push eax
call edi
pop ecx
push 0
push 1
lea ecx, [esp + 0x100]
mov esi, eax
call fcn.00404930
xor ebx, ebx
test esi, esi
jne 0x403106
push str.MOZ_CRASHREPORTER_URL
call edi
cmp eax, ebx
pop ecx
je 0x40321a
cmp byte [eax], bl
je 0x40321a
push eax
lea ecx, [esp + 0x134]
call fcn.004044de
push 0x4108c4
lea ecx, [esp + 0x28]
call fcn.0040348b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], 1
call fcn.00403bd6
lea edi, [esp + 0x40]
mov esi, eax
call fcn.00403cb3
test al, al
jne 0x4032ad
push 0x4108c4
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 3
call fcn.00403a29
sub esp, 0x1c
mov ecx, esp
push eax
call fcn.004034ad
call fcn.00402ac5
add esp, 0x1c
test al, al
mov byte [esp + 0xf], 1
jne 0x4032b1
mov byte [esp + 0xf], bl
xor edi, edi
inc edi
test byte [esp + 0x10], 2
je 0x4032ce
and dword [esp + 0x10], 0xfffffffd
push ebx
push edi
lea ecx, [esp + 0xe4]
call fcn.00404930
test byte [esp + 0x10], 1
je 0x4032e0
push ebx
push edi
lea ecx, [esp + 0x2c]
call fcn.00404930
cmp byte [esp + 0xf], bl
je 0x40336e
push str.ErrorEndOfLife
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
push ebx
push edi
lea ecx, [esp + 0xe4]
call fcn.00404930
call fcn.00402469
lea ecx, [esp + 0xa4]
call fcn.00404246
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0xa8], 0x410938
call fcn.0040e32a
pop ecx
lea esi, [esp + 0x48]
call fcn.00404177
push ebx
push edi
lea ecx, [esp + 0x138]
call fcn.00404930
push ebx
push edi
lea ecx, [esp + 0x11c]
jmp 0x4033c2
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040a0b7
add esp, 0xc
test al, al
jne 0x403327
jmp 0x403322
push str.ErrorNoSettingsPath
lea ecx, [esp + 0xe0]
call fcn.0040348b
lea eax, [esp + 0xdc]
push eax
push 0x4148c4
call fcn.00403a29
mov ecx, eax
call fcn.00401607
lea ecx, [esp + 0xdc]
push ebx
push 1
call fcn.00404930
lea eax, [esp + 0x18]
call fcn.00403b04
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040ea20
mov esp, ebp
pop ebp
ret