Function at 0x4c712d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.0059fbd0
mov eax, dword [ebp + 0xc]
and word [eax], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x218]
call fcn.004a20d8
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x104
push str._sThunderbird
mov esi, ebx
lea edi, [ebp - 0x420]
call fcn.004a9039
mov eax, edi
push eax
push str._sprofiles.ini
lea edi, [ebp - 0x218]
call fcn.004a9039
add esp, 0x10
mov eax, ebx
lea esi, [ebp - 8]
mov edi, ebx
call fcn.0043c415
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 8]
call esi
cmp eax, 0x102
jb 0x4c71e0
push dword [ebp - 8]
add edi, ebx
call fcn.0058f8c9
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058f8c4
pop ecx
pop ecx
lea ecx, [ebp - 0x218]
push ecx
push edi
push eax
mov dword [ebp - 8], eax
call esi
lea ecx, [edi - 2]
cmp eax, ecx
jae 0x4c71a9
mov esi, dword [ebp - 8]
xor edi, edi
mov word [ebp - 0x830], di
cmp word [esi], di
mov dword [ebp - 4], esi
je 0x4c723d
jmp 0x4c71f9
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
push edi
push str.Default
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4c730a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4c721a
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
cmp word [eax], di
mov dword [ebp - 4], eax
jne 0x4c71f6
cmp word [ebp - 0x830], di
jne 0x4c729f
mov eax, dword [ebp - 8]
cmp word [eax], di
mov dword [ebp - 4], eax
je 0x4c7332
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x830]
push eax
push 0x5b07d8
push str.Path
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4c7292
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4c7278
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 2]
cmp word [eax], di
mov dword [ebp - 4], eax
jne 0x4c724c
cmp word [ebp - 0x830], di
je 0x4c7332
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push eax
push str._s_sprefs.js
mov esi, ebx
lea edi, [ebp - 0x218]
call fcn.004a9039
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, edi
call fcn.00401016
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x420]
push eax
push str.mail.accountmanager.defaultaccount
push dword [ebp - 4]
call fcn.004c6fed
xor esi, esi
cmp word [ebp - 0x1050], si
jne 0x4c733f
xor bl, bl
push dword [ebp - 8]
call fcn.0058f8c9
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x830]
push eax
push 0x5b07d8
push str.Path
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4c7234
push dword [ebp - 8]
call fcn.0058f8c9
pop ecx
xor al, al
jmp 0x4c7303
lea eax, [ebp - 0x1050]
mov dword [ebp - 0xc], eax
mov word [ebp - 0xa38], si
mov eax, dword [ebp - 0xc]
cmp word [eax], si
je 0x4c7425
lea eax, [ebp - 0xe48]
push eax
push 0x2c
lea edi, [ebp - 0xc]
call fcn.0055b45f
cmp word [ebp - 0xe48], si
je 0x4c7419
lea eax, [ebp - 0xe48]
push eax
push str.mail.account._s.identities
mov esi, ebx
lea edi, [ebp - 0x628]
call fcn.004a9039
pop ecx
pop ecx
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, edi
push eax
push dword [ebp - 4]
call fcn.004c6fed
lea esi, [ebp - 0x1258]
jmp 0x4c73b8
mov esi, dword [ebp - 0x10]
cmp word [esi], 0
je 0x4c7417
lea eax, [ebp - 0xa38]
push eax
push 0x2c
mov edx, esi
call fcn.0056bb30
cmp word [ebp - 0xa38], 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x10], eax
je 0x4c740e
lea eax, [ebp - 0xa38]
push eax
push str.mail.identity._s.useremail
mov esi, ebx
lea edi, [ebp - 0x628]
call fcn.004a9039
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push eax
mov eax, edi
push eax
push dword [ebp - 4]
call fcn.004c6fed
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x4c73b5
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp word [eax], si
je 0x4c734f
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x420]
push eax
push str.mail.smtp.defaultserver
push dword [ebp - 4]
call fcn.004c6fed
cmp word [ebp - 0xc40], si
jne 0x4c747d
lea eax, [ebp - 0xa38]
push eax
push str.mail.identity._s.smtpServer
mov esi, ebx
lea edi, [ebp - 0x628]
call fcn.004a9039
pop ecx
pop ecx
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, edi
push eax
push dword [ebp - 4]
call fcn.004c6fed
lea eax, [ebp - 0xc40]
push eax
push str.mail.smtpserver._s.hostname
mov esi, ebx
lea edi, [ebp - 0x628]
call fcn.004a9039
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
mov eax, edi
push eax
push dword [ebp - 4]
call fcn.004c6fed
test al, al
je 0x4c72f6
mov bl, 1
jmp 0x4c72f8