Function at 0x401e8b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
push ebx
push esi
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x217]
push 0
push eax
mov byte [ebp - 0x218], 0
call sub.msvcrt.dll_memset
push 0x1a
pop esi
lea edi, [ebp - 0x218]
call fcn.0040ee59
mov esi, str.MozillaProfiles
push esi
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x218]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
add esp, 0x14
cmp eax, ebx
jae 0x401efa
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
mov eax, edi
call fcn.004062ad
pop ecx
pop ecx
jmp 0x401f02
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov edi, eax
push edi
call fcn.0040614b
test eax, eax
pop ecx
jne 0x401f0f
mov byte [edi], al
push str.ThunderbirdProfiles
add edi, 0x105
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
cmp eax, ebx
pop ecx
pop ecx
jae 0x401f4e
lea eax, [ebp - 0x218]
push str.ThunderbirdProfiles
push eax
mov eax, edi
call fcn.004062ad
pop ecx
pop ecx
jmp 0x401f51
mov byte [edi], 0
push edi
call fcn.0040614b
test eax, eax
pop ecx
jne 0x401f5e
mov byte [edi], al
mov edi, dword [ebp + 8]
push str.current
push str.SoftwareQualcommEudoraCommandLine
add edi, 0x20a
push 0x80000001
call fcn.00401c97
add esp, 0xc
test eax, eax
mov esi, CreateStatusWindowA
jne 0x401fa0
push 0x412466
push str.SoftwareClassesSoftwareQualcommEudoraCommandLinecurrent
push esi
call fcn.00401c97
add esp, 0xc
test eax, eax
jne 0x401fa0
mov byte [edi], al
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMozillaMozilla_Thunderbird
push esi
call fcn.0040eb3f
add esp, 0xc
test eax, eax
jne 0x4021a9
push 0xff
mov byte [ebp - 0x318], al
xor edi, edi
lea eax, [ebp - 0x317]
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x318]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 8], edi
call fcn.0040ec05
add esp, 0x18
test eax, eax
jne 0x4021a0
mov esi, str.sqlite3.dll
lea eax, [ebp - 0x318]
push eax
call sub.msvcrt.dll_atoi
cmp eax, 3
pop ecx
jl 0x402167
push 0x3ff
lea eax, [ebp - 0x927]
push edi
push eax
mov byte [ebp - 0x928], 0
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x10f]
push edi
push eax
mov byte [ebp - 0x110], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x928]
push str._sMain
push eax
call sub.msvcrt.dll_sprintf
push ebx
lea eax, [ebp - 0x110]
push eax
push str.Install_Directory
lea eax, [ebp - 0x928]
push eax
push dword [ebp - 4]
call fcn.0040ebc1
add esp, 0x38
cmp byte [ebp - 0x110], 0
je 0x402167
lea eax, [ebp - 0x110]
push eax
call fcn.0040614b
test eax, eax
pop ecx
je 0x402167
push ebx
lea eax, [ebp - 0x41f]
push edi
push eax
mov byte [ebp - 0x420], 0
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x527]
push edi
push eax
mov byte [ebp - 0x528], 0
call sub.msvcrt.dll_memset
push esi
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x110]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
add esp, 0x20
cmp eax, ebx
jae 0x4020f8
lea eax, [ebp - 0x110]
push esi
push eax
lea eax, [ebp - 0x420]
call fcn.004062ad
pop ecx
pop ecx
jmp 0x4020ff
mov byte [ebp - 0x420], 0
push str.nss3.dll
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x110]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, ebx
pop ecx
pop ecx
jae 0x40213c
lea eax, [ebp - 0x110]
push str.nss3.dll
push eax
lea eax, [ebp - 0x528]
call fcn.004062ad
pop ecx
pop ecx
jmp 0x402143
mov byte [ebp - 0x528], 0
lea eax, [ebp - 0x420]
push eax
call fcn.0040614b
test eax, eax
pop ecx
je 0x402165
lea eax, [ebp - 0x528]
push eax
call fcn.0040614b
test eax, eax
pop ecx
jne 0x402189
xor edi, edi
inc dword [ebp - 8]
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040ec05
add esp, 0xc
test eax, eax
je 0x401ffb
jmp 0x4021a0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
add eax, 0x30f
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
add esi, 0x30f
cmp byte [esi], 0
jne 0x4021d1
push ebx
push esi
push str._programfiles_Mozilla_Thunderbird
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
call fcn.0040614b
test eax, eax
pop ecx
jne 0x4021d1
mov byte [esi], al
pop edi
pop esi
pop ebx
leave
ret 4