Function at 0x412012
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp - 0x110]
push eax
push ecx
push ecx
push 0x2e
push ecx
mov byte [ebp - 0x110], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x5db458
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x5db464
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
lea eax, [ebp - 0x110]
push str.Custom
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
lea eax, [ebp - 0x110]
push str.Custom.sfx
push esi
push eax
call fcn.0057c7e2
mov ecx, dword [0x61d990]
add esp, 0xc
mov ebx, dword [0x61d980]
mov esi, ebx
mov edx, dword [0x61d984]
cmp ecx, ebx
mov edi, edx
cmovg esi, ecx
push 2
pop eax
cmp esi, eax
mov dword [ebp - 0x12c], eax
push 2
cmovl esi, eax
mov eax, dword [0x61d994]
cmp eax, edx
cmovg edi, eax
cmp edi, 2
cmovl edi, dword [ebp - 0x12c]
cmp ecx, ebx
cmovl ebx, ecx
mov ecx, dword [0x61d98c]
cmp eax, edx
mov dword [ebp - 0x158], ebx
mov ebx, dword [0x61d988]
cmovl edx, eax
cmp dword [0x61d998], ebx
mov eax, dword [0x61d9b4]
cmovg ebx, dword [0x61d998]
mov dword [ebp - 0x15c], edx
pop edx
cmp ebx, edx
push 4
cmovl ebx, edx
cmp dword [0x61d99c], ecx
cmovg ecx, dword [0x61d99c]
cmp ecx, edx
cmovl ecx, edx
pop edx
mov dword [ebp - 0x128], ecx
xor ecx, ecx
cmp eax, edx
mov dword [ebp - 0x12c], edx
push 8
cmove ecx, edx
movd xmm0, dword [0x61d9b0]
cmp eax, 6
pop edx
cmove ecx, edx
mov dword [ebp - 0x14c], edx
cmp eax, 8
push 0xe
pop edx
cmove ecx, edx
mov dword [ebp - 0x148], edx
cmp eax, 0xa
mov eax, dword [0x61d9b8]
push 0x12
pop edx
cmove ecx, edx
xor edx, edx
cmp eax, 4
mov dword [ebp - 0x150], ecx
cvtdq2pd xmm0, xmm0
cmove edx, dword [ebp - 0x12c]
cmp eax, 6
push 0x12
cmove edx, dword [ebp - 0x14c]
cmp eax, 8
cmove edx, dword [ebp - 0x148]
cmp eax, 0xa
pop eax
mulsd xmm0, qword [0x5e1588]
cmove edx, eax
mov eax, ecx
mov dword [ebp - 0x12c], edx
cmp edx, ecx
cmova eax, edx
cvttsd2si ecx, xmm0
mov dword [ebp - 0x184], eax
add eax, ecx
mov dword [ebp - 0x164], ecx
add dword [ebp - 0x128], eax
add esi, eax
add edi, eax
mov dword [ebp - 0x140], esi
add ebx, eax
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x124], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x194], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, 0xa0
mov ebx, eax
mov dword [ebp - 0x120], ebx
lea ecx, [edx + 0x14]
call fcn.0042ae12
push eax
push ebx
mov dword [ebp - 0x154], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movd xmm1, dword [0x61d9ac]
mov edx, esi
movd xmm0, dword [ebp - 0x150]
mov ebx, eax
sub edx, dword [0x61d980]
cvtdq2pd xmm1, xmm1
mov edi, dword [0x61d984]
sub edi, dword [ebp - 0x144]
mov esi, dword [0x61d98c]
add edi, 0xb4
mov ecx, dword [ebp - 0x124]
sub esi, dword [ebp - 0x128]
cvtdq2pd xmm0, xmm0
sub ecx, dword [0x61d988]
add esi, 0xa0
mulsd xmm1, qword [0x5e1588]
addsd xmm1, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp - 0x180], eax
movd xmm0, ecx
sub esp, 0x10
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si ecx, xmm0
movd xmm0, edi
mov edi, esp
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x17c], ecx
push 0
subsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, esi
lea esi, [ebp - 0x180]
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x178], eax
subsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp - 0x174], eax
sub eax, ecx
movsd dword es:[edi], dword [esi]
cdq
sub eax, edx
mov edx, dword [0x61d9a0]
sar eax, 1
movsd dword es:[edi], dword [esi]
add eax, ecx
mov dword [ebp - 0x18c], eax
movzx eax, byte [0x61d9a8]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x120]
mov ecx, esi
call fcn.0040cda1
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [0x61d9b4]
mov ebx, dword [ebp - 0x154]
lea ecx, [ebp - 0x11c]
push dword [0x61d9ac]
push 0xb4
push ebx
call fcn.00411f82
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [ebp - 0x13c], 0
lea esi, [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
mov ebx, eax
mov eax, dword [ebp - 0x124]
sub esp, 0x10
mov dword [ebp - 0x138], eax
mov edi, esp
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x134], eax
mov eax, 0xa0
sub eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
mov ecx, 0xb4
mov dword [ebp - 0x168], eax
mov eax, ecx
mov dword [ebp - 0x134], ecx
sub eax, dword [ebp - 0x144]
lea esi, [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
mov edi, esp
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x148], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
and dword [ebp - 0x13c], 0
lea esi, [ebp - 0x13c]
and dword [ebp - 0x138], 0
mov edi, esp
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 0xb4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
mov ecx, 0xa0
mov dword [ebp - 0x170], eax
mov eax, ecx
mov dword [ebp - 0x130], ecx
sub eax, dword [ebp - 0x128]
lea esi, [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
mov edi, esp
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x160], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
movaps xmm0, xmmword [0x5e17d0]
lea esi, [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
mov edi, esp
movups xmmword [ebp - 0x13c], xmm0
push 0
push 0
movsd dword es:[edi], dword [esi]
xor edx, edx
mov dword [ebp - 0x190], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040cda1
movd xmm1, dword [0x61d9b0]
movd xmm0, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x140]
sub eax, dword [0x61d990]
mov ecx, dword [ebp - 0x124]
sub ecx, dword [0x61d998]
cvtdq2pd xmm0, xmm0
mov esi, dword [0x61d994]
sub esi, dword [ebp - 0x144]
mov edx, dword [0x61d99c]
add esi, 0xb4
sub edx, dword [ebp - 0x128]
add edx, 0xa0
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x5e1588]
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x180], eax
addsd xmm0, xmm1
cvttsd2si ecx, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x17c], ecx
subsd xmm0, xmm1
cvttsd2si eax, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x178], eax
subsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp - 0x174], eax
sub eax, ecx
sub esp, 0x10
cdq
mov edi, esp
lea esi, [ebp - 0x180]
sub eax, edx
mov edx, dword [0x61d9a4]
sar eax, 1
add eax, ecx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x188], eax
movzx eax, byte [0x61d9a9]
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x120]
mov ecx, esi
call fcn.0040cda1
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push esi
call ebx
push dword [0x61d9b8]
mov edi, dword [ebp - 0x154]
lea ecx, [ebp - 0x11c]
push dword [0x61d9b0]
push 0xb4
push edi
call fcn.00411f82
push edi
push esi
call ebx
and dword [ebp - 0x13c], 0
lea esi, [ebp - 0x13c]
mov ecx, dword [ebp - 0x120]
mov ebx, eax
mov eax, dword [ebp - 0x124]
sub esp, 0x10
mov dword [ebp - 0x138], eax
mov edi, esp
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x130], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
mov ecx, dword [ebp - 0x148]
lea esi, [ebp - 0x13c]
mov dword [ebp - 0x13c], ecx
mov edi, esp
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x134], 0xb4
mov dword [ebp - 0x150], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
and dword [ebp - 0x13c], 0
lea esi, [ebp - 0x13c]
and dword [ebp - 0x138], 0
mov edi, esp
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 0xb4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411d30
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x138], ecx
add ecx, dword [ebp - 0x128]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x130], ecx
mov edi, esp
lea esi, [ebp - 0x13c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x120]
mov ecx, esi
call fcn.00411d30
add esp, 0x10
mov dword [ebp - 0x12c], eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x158]
xor ecx, ecx
sub edx, dword [ebp - 0x184]
sub edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x184]
sub eax, dword [ebp - 0x164]
mov edi, dword [ebp - 0x124]
mov ebx, dword [ebp - 0x160]
sub ebx, edi
test edx, edx
push ebx
cmovle ecx, edx
push dword [ebp - 0x140]
mov dword [ebp - 0x15c], ecx
xor ecx, ecx
test eax, eax
cmovle ecx, eax
mov eax, dword [ebp - 0x188]
add eax, dword [ebp - 0x18c]
cdq
sub eax, edx
mov dword [ebp - 0x158], ecx
mov ecx, dword [ebp - 0x120]
xor edx, edx
sar eax, 1
test edi, edi
cmovns edx, edi
mov edi, ebx
sub edi, eax
sub eax, edx
add edi, edx
mov edx, dword [ebp - 0x168]
push edi
lea esi, [eax - 1]
push esi
push 0
push str.CustomLeft.png
push dword [ebp - 0x150]
call fcn.00411961
mov edx, dword [ebp - 0x16c]
add esp, 0x1c
push ebx
push dword [ebp - 0x144]
mov ebx, dword [ebp - 0x120]
mov ecx, ebx
push edi
push esi
push 1
push str.CustomRight.png
push dword [ebp - 0x148]
call fcn.00411961
mov eax, dword [ebp - 0x15c]
add esp, 0x1c
mov ecx, dword [ebp - 0x140]
test eax, eax
jns 0x412788
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, dword [ebp - 0x158]
test eax, eax
jns 0x41279f
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp - 0x144]
jmp 0x4127a5
mov eax, dword [ebp - 0x144]
mov edx, dword [ebp - 0x164]
add ecx, 4
push dword [ebp - 0x124]
add ecx, edx
mov esi, 0xb2
lea edi, [edx + 4]
mov edx, 0xb4
add edi, eax
push edx
sub esi, edi
push edi
lea eax, [ecx + edi]
cmp eax, edx
mov edx, dword [ebp - 0x170]
cmovl esi, ecx
mov ecx, ebx
push esi
push 2
pop eax
push eax
push str.CustomTop.png
push dword [ebp - 0x14c]
call fcn.00411961
add esp, 0x1c
mov ecx, ebx
push dword [ebp - 0x128]
push 0xb4
push edi
mov edi, dword [ebp - 0x190]
mov edx, edi
push esi
push 3
push str.CustomBottom.png
push dword [ebp - 0x12c]
call fcn.00411961
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x1c
push dword [ebp - 0x168]
call esi
push dword [ebp - 0x16c]
call esi
push dword [ebp - 0x170]
call esi
push edi
call esi
push dword [ebp - 0x150]
call esi
push dword [ebp - 0x148]
call esi
push dword [ebp - 0x14c]
call esi
push dword [ebp - 0x12c]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x154]
call esi
push dword [ebp - 0x194]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret