Function at 0x473a92
Capabilities:
Get common file path

Disassembly:
mov eax, 0x52248a
call fcn.0051f0b4
sub esp, 0x430
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea edi, [eax + 4]
mov dword [ebp + 8], ebx
cmp dword [edi], ebx
jne 0x473ca2
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
add eax, 0x28
push eax
push 0x50
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
call fcn.00460cd7
test eax, eax
jl 0x473b14
lea eax, [ebp - 0x10]
push eax
push 0x28
call fcn.00460cd7
test eax, eax
jl 0x473b14
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00435802
mov esi, dword [eax]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x473b03
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], ebx
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
test eax, eax
jge 0x473b3c
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x473b24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x473b35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x473ca5
push 0x56f16c
lea ecx, [ebp - 0x1c]
call fcn.00402946
xor eax, eax
mov esi, 0x206
mov byte [ebp - 4], 2
push esi
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push ebx
push eax
call fcn.004ee670
xor eax, eax
push esi
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push ebx
push eax
call fcn.004ee670
add esp, 0x18
push 1
push 0x1a
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.iApple
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.iApple.db
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x1c]
push str._s_s
push eax
call fcn.004142e8
mov esi, dword [ebp - 0x1c]
add esp, 0x10
cmp esi, ebx
je 0x473be1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x473be6
mov dword [ebp - 0x14], ebx
jmp 0x473c00
add eax, eax
mov dword [ebp - 0x14], eax
call fcn.004eff00
mov eax, esp
push ebx
push dword [ebp - 0x14]
push esi
push eax
call fcn.004115b4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push edi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x10]
test eax, eax
setl al
cmp al, bl
je 0x473c2d
lea ecx, [esi - 0x10]
call fcn.0040297c
jmp 0x473b14
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push str.PRAGMA_synchronous__0
push dword [edi]
push eax
call dword [ecx + 0x18]
test eax, eax
setl al
cmp al, bl
jne 0x473c20
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.00435802
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push str.PRAGMA_auto_vacuum__2
push dword [edi]
push eax
call dword [ecx + 0x18]
test eax, eax
setl al
lea ecx, [esi - 0x10]
cmp al, bl
jne 0x473c23
call fcn.0040297c
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x473c91
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x473ca2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
lea esp, [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4