Function at 0x4055d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41ea26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push 0xf01ff
mov dword [esp + 0xc4], 0x104
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405cc9
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
je 0x405cc9
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x118]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x405670
mov ecx, 8
mov esi, str.Application_DataMozillaFirefox_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0xf
lea eax, [esp + 0x118]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
lea edx, [eax + 1]
jmp 0x4056b0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4056b0
sub eax, edx
push eax
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xc8]
call fcn.00401d80
push 0xc
push str.profiles.ini
lea ecx, [esp + 0xc8]
mov dword [esp + 0x234], ebx
call fcn.004049d0
lea eax, [esp + 0x118]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405700
sub eax, edx
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x38]
call fcn.00401d80
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0xd8]
mov ebp, 0x10
cmp eax, ebp
mov eax, dword [esp + 0xc4]
mov byte [esp + 0x22c], 2
jae 0x40574d
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004052e0
test eax, eax
jne 0x4057b8
cmp dword [esp + 0x64], ebp
jb 0x405773
mov edx, dword [esp + 0x50]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x405792
mov eax, dword [esp + 0x34]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x405cc9
mov ecx, dword [esp + 0xc4]
push ecx
jmp 0x405cc1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.004048e0
push esi
push str._extensions.ini
lea ecx, [esp + 0x38]
call fcn.004049d0
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x54]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x254], 5
mov byte [ecx + 4], bl
call fcn.004015d0
lea ecx, [esp + 0x114]
call fcn.00402230
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.ExtensionDirs
mov byte [esp + 0x250], 7
call fcn.00401fa0
lea ecx, [esp + 0x118]
call fcn.00402b60
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4204ca
call fcn.00401fa0
mov eax, dword [esp + 0x3c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
add eax, 0xffffffe4
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x270], 8
mov byte [ecx + 4], bl
call fcn.004015d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push str.ExtensionDirs
mov byte [esp + 0x284], 9
call fcn.00401fa0
lea edx, [esp + 0x130]
mov byte [esp + 0x280], 7
push edx
lea ecx, [esp + 0x150]
call fcn.004022b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x238], 0xa
call fcn.004015d0
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x405929
mov eax, dword [esp + 0xe0]
push eax
call fcn.004186e7
add esp, 4
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
je 0x405a67
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x4204ca
mov byte [ecx + 4], bl
call fcn.00401d80
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edi
mov byte [esp + 0x270], 0xb
mov byte [ecx + 4], bl
call fcn.004015d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0xd
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.ExtensionDirs
mov byte [esp + 0x288], 0xc
mov byte [ecx + 4], bl
call fcn.00401d80
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x150]
mov byte [esp + 0x284], 7
call fcn.004022b0
push 0x26
push 0x27
push str.1B33E42F_EF14_4cd3_B6DC_174571C4349C
lea ecx, [esp + 0xe8]
mov byte [esp + 0x238], 0xd
call fcn.00404640
cmp eax, 0xffffffff
jne 0x405a22
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x4059fc
mov edx, dword [esp + 0xe0]
push edx
call fcn.004186e7
add esp, 4
mov eax, dword [esp + 0x20]
add edi, 0x1c
cmp edi, eax
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
jne 0x405937
jmp 0x405a67
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x74]
call fcn.004015d0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0xac]
call fcn.004015d0
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x405a67
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x80], ebp
mov eax, dword [esp + 0x6c]
jae 0x405a78
lea eax, [esp + 0x6c]
mov edx, dword [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0xa0]
push eax
push ebx
lea ecx, [esp + 0x94]
call fcn.004045c0
test eax, eax
je 0x405ba7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x8c]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004015d0
mov eax, dword [esp + 0x3c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
add eax, 0xffffffe4
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x270], 0xe
mov byte [ecx + 4], bl
call fcn.004015d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0xd
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.ExtensionDirs
mov byte [esp + 0x288], 0xf
mov byte [ecx + 4], bl
call fcn.00401d80
lea ecx, [esp + 0x14c]
mov byte [esp + 0x280], 7
call fcn.00401cd0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xa8]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004015d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x60], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe0]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x270], 0x10
mov byte [ecx + 4], bl
call fcn.004015d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x64], esp
push 0xd
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.ExtensionDirs
mov byte [esp + 0x288], 0x11
mov byte [ecx + 4], bl
call fcn.00401d80
lea ecx, [esp + 0x14c]
mov byte [esp + 0x280], 7
call fcn.00401cd0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x405bd1
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00402110
mov edx, dword [esp + 0x2c]
push edx
call fcn.004186e7
add esp, 0x14
lea ecx, [esp + 0xf8]
mov byte [esp + 0x22c], 5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.00401ca0
cmp dword [esp + 0xb8], ebp
jb 0x405c0a
mov eax, dword [esp + 0xa4]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x80], ebp
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jb 0x405c35
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x9c], ebp
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x405c5d
mov edx, dword [esp + 0x88]
push edx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x405c85
mov eax, dword [esp + 0x50]
push eax
call fcn.004186e7
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x405ca4
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004186e7
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x405cc9
mov edx, dword [esp + 0xc4]
push edx
call fcn.004186e7
add esp, 4
mov ecx, dword [esp + 0x224]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret