Function at 0x415225
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47ba44
call fcn.00459afc
sub esp, 0x2e8
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push esi
push 0x487014
lea ecx, [ebp + 0xc]
call fcn.0040a3c3
test eax, eax
jl 0x415451
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x487010
call fcn.00401a15
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea ecx, [ebp - 0xec]
call fcn.0040a5ff
mov byte [ebp - 4], 3
push dword [eax]
lea ecx, [ebp - 0x68]
call fcn.00401a15
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x41529d
mov eax, dword [eax + 4]
jmp 0x4152a0
add eax, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401a15
mov byte [ebp - 4], 5
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.00404436
add esp, 0x3c
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x68]
call fcn.004013ee
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xe8]
cmp dword [ebp - 0xec], eax
je 0x4152ee
push dword [ebp - 0xec]
call fcn.0045bfdc
pop ecx
lea eax, [ebp - 0x24]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f811
mov ecx, eax
call fcn.0040a734
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f811
mov ecx, eax
call fcn.0040a756
mov edi, eax
lea eax, [ebp - 0x44]
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f811
mov ecx, eax
call fcn.0040a734
push fcn.0046002c
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.00418c7f
add esp, 0x20
lea eax, [ebp - 0x2f4]
push eax
xor esi, esi
push esi
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f811
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040183e
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov byte [ebp - 4], 0xa
call dword [eax + 0x24]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x415446
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x10]
call fcn.004092ae
mov byte [ebp - 4], 0xc
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042f811
push str.PROGRAMFILES
mov ecx, eax
call fcn.004179c4
test eax, eax
jne 0x4153ef
push esi
push 0x487008
lea ecx, [ebp - 0x10]
call fcn.0040a3c3
test eax, eax
jl 0x4153ef
push 0x483f80
push 0x486ffc
lea ecx, [ebp - 0x10]
call fcn.00418272
lea ecx, [ebp - 0x10]
call fcn.00418aa1
mov ecx, eax
call fcn.0041845b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040a77d
push 2
lea ecx, [ebp - 0x3c]
call fcn.0042f811
cmp dword [eax + 0x18], 0x10
jb 0x415410
mov eax, dword [eax + 4]
jmp 0x415413
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a817
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040607d
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.004208c9
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
call fcn.004208c9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
call fcn.00408273
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0040387b
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004208c9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8