Function at 0x41a830
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0xa34
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0xa30], eax
mov eax, dword [esp + 0xa38]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x21a]
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0x21c], cx
call fcn.00477c40
add esp, 0xc
lea eax, [esp + 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x41a8a2
xor eax, eax
mov ecx, dword [esp + 0xa30]
xor ecx, esp
call fcn.00477bf8
add esp, 0xa34
ret 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x62a]
push edx
mov word [esp + 0x62c], cx
call fcn.00477c40
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00477c40
add esp, 0x18
push str.MozillaFirefox
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0xc]
push str._sprofiles.ini
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x104
lea eax, [esp + 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x41a889
push esi
lea esi, [esp + 0x624]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a934
sub eax, edx
sar eax, 1
mov dword [esp + 8], eax
je 0x41aab2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
lea esp, [esp]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x842]
push edx
mov word [esp + 0x844], cx
call fcn.00477c40
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x43e]
push ecx
mov word [esp + 0x440], ax
call fcn.00477c40
add esp, 0x18
lea edx, [esp + 0x18]
push edx
push 0x104
lea eax, [esp + 0x840]
push eax
push 0x492aa0
push str.Name
push esi
call edi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.IsRelative
push esi
call ebx
lea edx, [esp + 0x18]
push edx
push 0x104
mov ebp, eax
lea eax, [esp + 0x430]
push eax
push 0x492aa0
push str.Path
push esi
call edi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Default
push esi
call ebx
cmp eax, 1
je 0x41aa6b
mov ecx, str.default
lea eax, [esp + 0x838]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aa36
test dx, dx
je 0x41aa32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aa36
add eax, 4
add ecx, 4
test dx, dx
jne 0x41aa10
xor eax, eax
jmp 0x41aa3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41aa6b
mov edx, dword [esp + 0x14]
lea esi, [esi + edx*2 + 2]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41aa50
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
jne 0x41a960
jmp 0x41aaaf
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x428]
cmp ebp, 1
jne 0x41aa95
push eax
lea ecx, [esp + 0x224]
push ecx
push 0x49a034
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x41aaaf
lea ecx, [esp + 0x428]
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41aaa0
pop ebp
pop edi
pop ebx
mov edx, dword [esp + 4]
push edx
push str.CInternal::getFirefoxProfilePath
push str._UNO___s___s
call fcn.00419c60
mov ecx, dword [esp + 0xa40]
add esp, 0xc
pop esi
xor ecx, esp
mov eax, 1
call fcn.00477bf8
add esp, 0xa34
ret 4