Function at 0x411961
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, edx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea edx, [ebx + ebx]
mov dword [ebp - 0x21c], eax
mov ecx, edi
call fcn.0042ae12
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], eax
call edi
push esi
mov esi, dword [ebp - 0x220]
mov ebx, eax
push esi
call edi
push 0xcc0020
mov edi, eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp - 0x224]
mov esi, dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x228]
push eax
push eax
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x230]
push dword [ebp - 0x220]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x224]
xor ecx, ecx
push 0xcc0020
push ecx
push ecx
push dword [ebp - 0x220]
push eax
push dword [ebp - 0x228]
push eax
push ecx
push dword [ebp - 0x21c]
call esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [ebp - 0x220]
call esi
push ebx
push dword [ebp - 0x21c]
call esi
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x2e
push ebx
mov byte [ebp - 0x218], bl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x5db458
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
push 0x5db464
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
lea eax, [ebp - 0x218]
push str.Custom
push esi
push eax
call fcn.0057c7e2
add esp, 0xc
mov al, byte [ebp + ebx - 0x218]
mov byte [ebp + ebx - 0x110], al
inc ebx
test al, al
jne 0x411ab1
push str.Custom.sfx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0057c7e2
lea edi, [ebp - 0x110]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411ae0
mov ebx, dword [ebp - 0x234]
mov edx, ebx
mov ax, word [0x5db1fc]
mov esi, edx
mov word [edi], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x411afb
lea edi, [ebp - 0x110]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411b0b
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x22c]
call fcn.00411787
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test edi, edi
jne 0x411baf
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Image
push str.Shadow.Left
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x14]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x5db56c
push str.Shadow.Left
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x18]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Bottom
push str.Shadow.Left
call esi
cmp edi, 1
jne 0x411c24
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Image
push str.Shadow.Right
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x14]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x5db56c
push str.Shadow.Right
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x18]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Bottom
push str.Shadow.Right
call esi
cmp edi, 2
jne 0x411c99
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Image
push str.Shadow.Top
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x14]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Left
push str.Shadow.Top
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x18]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Right
push str.Shadow.Top
call esi
cmp edi, 3
jne 0x411d07
lea eax, [ebp - 0x218]
mov edi, str.Shadow.Bottom
push eax
push ebx
push str.Image
push edi
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x14]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Left
push edi
call esi
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 0x18]
call fcn.0057cc17
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Right
push edi
call esi
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x21c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret