Function at 0x4b9f60
Capabilities:
Check if file exists
Gather firefox profile information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x4e8014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ef740]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [eax + 0x4ed740]
push str.___Try_To_Get_Cookies_From_FireFox_Browser_r_n
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
lea eax, [ebp - 0x10c]
push 0x105
push 0
push eax
call fcn.004bb940
push esi
push edi
lea eax, [ebp - 0x10c]
push str._s_s_
push eax
call fcn.004b8c80
add esp, 0x24
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4ba009
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [0x4ef740]
push str.____Could_Not_Find_Browser_Path__s_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0xc
add dword [0x4ef740], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bab62
mov esp, ebp
pop ebp
ret
push str.C:Program_FilesMozilla_Firefox_firefox.exe
call fcn.004ba400
add esp, 4
test al, al
jne 0x4ba1c8
push str.C:Program_Files__x86_Mozilla_Firefox_firefox.exe
call fcn.004ba400
add esp, 4
test al, al
mov eax, dword [0x4ef740]
lea eax, [eax + 0x4ed740]
jne 0x4ba04d
push str.____Could_Not_Find_firefox.exe_In_Default_Path_r_n
push eax
call fcn.004b8c80
add esp, 8
jmp 0x4ba1c2
push str.___Try_To_Get_firefox.exe_Path_in_Reg_r_n
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
add esp, 8
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push 0xf003f
push 0
push str.SoftwareMozillaFirefoxLauncher_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ba1a2
push 0x105
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x438], 0x104
push eax
call fcn.004bb940
add esp, 0xc
lea eax, [ebp - 0x438]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4ba16e
mov eax, dword [ebp - 0x438]
xor ecx, ecx
test eax, eax
je 0x4ba119
nop dword [eax + eax]
cmp byte [ebp + eax - 0x214], 0x7c
je 0x4ba159
cmp eax, 0x105
jae 0x4ba3ec
mov byte [ebp + eax - 0x214], 0
inc ecx
dec eax
mov dword [ebp - 0x438], eax
cmp ecx, eax
jb 0x4ba0f0
lea eax, [ebp - 0x214]
push eax
call fcn.004ba400
add esp, 4
test al, al
jne 0x4ba194
mov eax, dword [0x4ef740]
push str.____Could_Not_Get_firefox.exe_in_Reg_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
add esp, 8
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ba1c8
cmp eax, 0x105
jae 0x4ba3ec
mov byte [ebp + eax - 0x214], 0
jmp 0x4ba119
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4ef740]
push str.____RegEnumValueA_Failed__Error_is__d_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0xc
add dword [0x4ef740], eax
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ba1c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4ef740]
push str.____RegOpenKeyExA_Failed__Error_is__d_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add esp, 0xc
add dword [0x4ef740], eax
push ebx
lea edi, [ebp - 0x10c]
add edi, esi
push 0x4d36b4
push edi
call fcn.004b8c80
lea eax, [ebp - 0x434]
xor bl, bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004c3754
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x4ba3aa
nop
test bl, bl
jne 0x4ba3a1
lea ecx, [ebp - 0x410]
mov eax, 0x4d36b8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ba233
test dl, dl
je 0x4ba22f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ba233
add eax, 2
add ecx, 2
test dl, dl
jne 0x4ba213
xor eax, eax
jmp 0x4ba238
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ba389
lea eax, [ebp - 0x410]
mov ecx, 0x4d36bc
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4ba270
test dl, dl
je 0x4ba26c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4ba270
add ecx, 2
add eax, 2
test dl, dl
jne 0x4ba250
xor eax, eax
jmp 0x4ba275
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ba389
test byte [ebp - 0x434], 0x10
je 0x4ba389
lea eax, [ebp - 0x410]
push eax
push str._scookies.sqlite
push edi
call fcn.004b8c80
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4ba389
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004ac690
add esp, 8
test eax, eax
jne 0x4ba3bb
push 0x200
push eax
lea eax, [ebp - 0x30c]
mov bl, 1
push eax
call fcn.004bb940
mov eax, dword [0x4ef740]
push str.___Try_to_Get_Temporary_Cookies_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
lea eax, [ebp - 0x30c]
push str.select_value_from_moz_cookies_where_name_like_ESTSAUTH
push 0x4d3194
push eax
call fcn.004b8c80
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x438]
call fcn.004ba7e0
mov eax, dword [0x4ef740]
push str.___Try_to_Get_Persistent_Cookies_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
add dword [0x4ef740], eax
lea eax, [ebp - 0x30c]
push str.select_value_from_moz_cookies_where_name_like_ESTSAUTHPERSISTENT
push 0x4d3194
push eax
call fcn.004b8c80
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x438]
call fcn.004ba7e0
add esp, 0x44
push dword [ebp - 0x438]
call fcn.004a9d50
add esp, 4
lea eax, [ebp - 0x434]
push eax
push esi
call fcn.004c376f
add esp, 8
test eax, eax
je 0x4ba200
push esi
call fcn.004c372e
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bab62
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [0x4ef740]
push str.____Could_Not_Open_cookies.sqlite__Error_is__d_r_n
lea eax, [eax + 0x4ed740]
push eax
call fcn.004b8c80
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [0x4ef740], eax
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.004bab62
mov esp, ebp
pop ebp
ret
call fcn.004bac92
int3