Function at 0x405430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e876
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 0x405b29
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 0x405b29
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 0x4054d0
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 0x405510
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405510
sub eax, edx
push eax
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0xc8]
call fcn.00401d30
push 0xc
push str.profiles.ini
lea ecx, [esp + 0xc8]
mov dword [esp + 0x234], ebx
call fcn.00404830
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 0x405560
sub eax, edx
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x38]
call fcn.00401d30
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 0x4055ad
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00405140
test eax, eax
jne 0x405618
cmp dword [esp + 0x64], ebp
jb 0x4055d3
mov edx, dword [esp + 0x50]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x4055f2
mov eax, dword [esp + 0x34]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x405b29
mov ecx, dword [esp + 0xc4]
push ecx
jmp 0x405b21
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00404740
push esi
push str._extensions.ini
lea ecx, [esp + 0x38]
call fcn.00404830
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.00401580
lea ecx, [esp + 0x114]
call fcn.004021e0
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.00401f50
lea ecx, [esp + 0x118]
call fcn.00402b10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41f4a6
call fcn.00401f50
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.00401580
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push str.ExtensionDirs
mov byte [esp + 0x284], 9
call fcn.00401f50
lea edx, [esp + 0x130]
mov byte [esp + 0x280], 7
push edx
lea ecx, [esp + 0x150]
call fcn.00402260
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x238], 0xa
call fcn.00401580
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x405789
mov eax, dword [esp + 0xe0]
push eax
call fcn.00418537
add esp, 4
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x20]
je 0x4058c7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x41f4a6
mov byte [ecx + 4], bl
call fcn.00401d30
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.00401580
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.00401d30
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x150]
mov byte [esp + 0x284], 7
call fcn.00402260
push 0x26
push 0x27
push str.1B33E42F_EF14_4cd3_B6DC_174571C4349C
lea ecx, [esp + 0xe8]
mov byte [esp + 0x238], 0xd
call fcn.004044a0
cmp eax, 0xffffffff
jne 0x405882
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x40585c
mov edx, dword [esp + 0xe0]
push edx
call fcn.00418537
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 0x405797
jmp 0x4058c7
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x74]
call fcn.00401580
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0xac]
call fcn.00401580
cmp dword [esp + 0xf4], ebp
mov byte [esp + 0x22c], 7
jb 0x4058c7
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x80], ebp
mov eax, dword [esp + 0x6c]
jae 0x4058d8
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.00404420
test eax, eax
je 0x405a07
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.00401580
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.00401580
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.00401d30
lea ecx, [esp + 0x14c]
mov byte [esp + 0x280], 7
call fcn.00401c80
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.00401580
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.00401580
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.00401d30
lea ecx, [esp + 0x14c]
mov byte [esp + 0x280], 7
call fcn.00401c80
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x405a31
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.004020c0
mov edx, dword [esp + 0x2c]
push edx
call fcn.00418537
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.00401c50
cmp dword [esp + 0xb8], ebp
jb 0x405a6a
mov eax, dword [esp + 0xa4]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0x80], ebp
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
jb 0x405a95
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x9c], ebp
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x405abd
mov edx, dword [esp + 0x88]
push edx
call fcn.00418537
add esp, 4
cmp dword [esp + 0x64], ebp
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x405ae5
mov eax, dword [esp + 0x50]
push eax
call fcn.00418537
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x405b04
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00418537
add esp, 4
cmp dword [esp + 0xd8], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x405b29
mov edx, dword [esp + 0xc4]
push edx
call fcn.00418537
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