Function at 0x4043d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x658e64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x208]
mov esi, ecx
push 0
push eax
call fcn.005cf9e0
add esp, 0xc
lea eax, [ebp - 0x104]
xor edi, edi
xor ebx, ebx
cmp esi, 0xe
jne 0x404414
push str.MozillaSeaMonkey
jmp 0x404419
push str.MozillaFirefox
push 0x100
push eax
call fcn.005d5367
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x404459
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cc070
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push 0x208
push eax
call fcn.005d5367
push 0x632e14
lea eax, [ebp - 0x410]
push 0x208
push eax
call fcn.005d6b58
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x410]
push 0x208
push eax
call fcn.005d6b58
push str.profiles.ini
lea eax, [ebp - 0x410]
push 0x208
push eax
call fcn.005d6b58
push 0x632e4c
lea eax, [ebp - 0x410]
mov dword [ebp - 0x814], ebx
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.005d55fb
add esp, 0x3c
test eax, eax
jne 0x404446
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x404446
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.005d6ad3
add esp, 0xc
test eax, eax
je 0x40469b
nop dword [eax]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.005d69be
push 8
lea eax, [ebp - 0x810]
push str._profile
push eax
call fcn.005d6ae0
add esp, 0x14
test eax, eax
jne 0x404544
xor ebx, ebx
xor edi, edi
jmp 0x404679
lea eax, [ebp - 0x810]
push str.default1
push eax
call fcn.005d567d
add esp, 8
test eax, eax
jne 0x404566
lea ebx, [eax + 1]
test edi, edi
jmp 0x404677
lea eax, [ebp - 0x810]
push str.path
push eax
call fcn.005cebc0
add esp, 8
test eax, eax
je 0x404679
lea eax, [ebp - 0x810]
push 0x632e70
push eax
call fcn.005cebc0
add esp, 8
test eax, eax
je 0x40459d
mov byte [eax], 0x5c
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045a6
sub eax, edx
dec eax
cmp eax, 0x400
jae 0x4046bc
mov byte [ebp + eax - 0x810], cl
lea eax, [ebp - 0x810]
push 0x632e74
push eax
call fcn.005cebc0
mov edi, eax
lea ecx, [ebp - 0x208]
add esp, 8
mov dword [ebp - 0x818], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045e7
sub ecx, edx
lea edx, [ebp - 0x104]
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404600
sub edx, esi
mov esi, edi
lea edi, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x404610
lea eax, [ecx + 3]
sub esi, edi
add eax, edx
add esi, eax
push esi
call fcn.005d6bc1
mov edi, eax
add esp, 4
test edi, edi
je 0x404679
lea eax, [ebp - 0x208]
push eax
push esi
push edi
call fcn.005d5367
push 0x632e14
push esi
push edi
call fcn.005d6b58
lea eax, [ebp - 0x104]
push eax
push esi
push edi
call fcn.005d6b58
push 0x632e14
push esi
push edi
call fcn.005d6b58
mov eax, dword [ebp - 0x818]
inc eax
push eax
push esi
push edi
call fcn.005d6b58
add esp, 0x3c
test ebx, ebx
jne 0x40469b
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.005d6ad3
add esp, 0xc
test eax, eax
jne 0x404510
push dword [ebp - 0x814]
call fcn.005d1e92
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005cc070
mov esp, ebp
pop ebp
ret
call fcn.005cc6af
int3