Function at 0x41ebd3
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0x250
mov eax, 0x55730f
call fcn.0052faf2
mov ebx, ecx
mov dword [ebp - 4], 2
call fcn.0042b589
push eax
lea ecx, [ebp - 0x220]
call fcn.0040217f
push 1
push 0x1a
lea eax, [ebp - 0x21c]
push eax
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.0042b589
push eax
lea ecx, [ebp - 0x224]
call fcn.0040217f
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push str._sEpsonDocument_Capture_
push eax
mov byte [ebp - 4], 4
call fcn.004034f1
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401ee1
mov esi, str.CopyCusPro.ini
push esi
call fcn.0052ba99
pop ecx
push eax
push esi
lea ecx, [ebp - 0x220]
call fcn.00404353
push dword [ebp - 0x220]
push 1
push str.FirstRun
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x41ee44
call fcn.0042b589
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040217f
push str.Devices
push str.Resources
mov byte [ebp - 4], 5
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push str._s_s_s_
push eax
call fcn.004034f1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 0x14
push eax
call fcn.00401e83
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x230], esi
mov byte [ebp - 4], 6
cmp dword [esi - 0xc], 0
jne 0x41ecf7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401ee1
mov esi, dword [ebp - 0x230]
call fcn.0042b589
push eax
lea ecx, [ebp - 0x228]
call fcn.0040217f
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x22c]
push esi
push edi
lea eax, [ebp - 0x228]
push 0x588938
push eax
call fcn.004034f1
add esp, 0x10
lea ecx, [ebp - 0x25c]
call fcn.0042d64f
push 0
mov byte [ebp - 4], 8
push dword [ebp - 0x228]
lea ecx, [ebp - 0x25c]
call fcn.0042d6f6
lea ecx, [ebp - 0x25c]
test eax, eax
jne 0x41ed7b
mov byte [ebp - 4], 7
call fcn.0042d681
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004021a7
lea ecx, [esi - 0x10]
call fcn.004021a7
lea ecx, [edi - 0x10]
jmp 0x41ee3f
call fcn.0042d1bb
mov eax, dword [ebp + 8]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x234], esp
mov ebx, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov dword [ebp - 0x23c], esp
mov ebx, esp
push esi
call fcn.00401e83
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ebp - 0x240], esp
mov ebx, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [ebx], eax
add edi, 0xfffffff0
mov dword [ebp - 0x238], esp
mov ebx, esp
push edi
mov byte [ebp - 4], 0xb
call fcn.00401e83
add eax, 0x10
mov dword [ebx], eax
pop ecx
mov byte [ebp - 4], 8
call fcn.0041dee0
add esp, 0x14
test eax, eax
je 0x41ee19
push dword [ebp - 0x220]
push 0x58a4e0
push str.FirstRun
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 7
call fcn.0042d681
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, esi
call fcn.004021a7
mov ecx, edi
call fcn.004021a7
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004021a7
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004021a7
call fcn.0052fb75
ret