Function at 0x41ec60
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47f2a1
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x51c], eax
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
push 0
push 0
push 0
push 6
push 0
push 0
mov edi, ecx
push 0
lea ecx, [esp + 0x34]
call fcn.004533bc
mov dword [esp + 0x538], 0
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ecd8
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x538], 1
mov ecx, dword [edi]
test ecx, ecx
je 0x41ed08
cmp dword [ecx + 0x20], 0
je 0x41ed08
lea edx, [esp + 0x10]
push edx
call fcn.00446d9b
jmp 0x41ed3a
call fcn.0044bc48
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x50]
test edx, edx
jne 0x41ed1b
xor eax, eax
jmp 0x41ed2f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ed20
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404e80
lea ecx, [esp + 0x18]
call fcn.00452f67
or dword [eax + 0x34], 0x804
add eax, 0x34
lea ecx, [esp + 0x18]
call fcn.00452f67
mov ebp, 1
lea ecx, [esp + 0x18]
mov dword [eax + 0x18], ebp
call fcn.00452f67
push 0x208
mov dword [eax + 0xc], str.CSV_Files__.csv_
lea eax, [esp + 0x328]
push 0
push eax
call fcn.004692d0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00452f67
lea ecx, [esp + 0x324]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x18]
call fcn.00452f67
mov dword [eax + 0x14], 0x104
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.00452f67
mov dword [eax + 0x30], esi
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, ebp
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x208
or eax, ecx
jge 0x41edda
push 0x208
mov ecx, ebx
call fcn.004047c0
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00452f67
mov dword [eax + 0x1c], esi
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ee02
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x538], 2
mov eax, dword [esi - 8]
mov ecx, ebp
sub ecx, dword [esi - 4]
sub eax, 0x208
or eax, ecx
jge 0x41ee3d
push 0x208
lea ecx, [esp + 0x18]
call fcn.004047c0
mov esi, dword [esp + 0x14]
push ebp
push 0x23
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [esi - 4], ebp
jle 0x41ee5f
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404810
mov esi, dword [esp + 0x14]
push str.Epson
mov eax, esi
call fcn.004254d0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x41ee7f
xor eax, eax
jmp 0x41ee99
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ee84
sub eax, edx
sar eax, 1
js 0x41efac
cmp eax, dword [esi - 8]
jg 0x41efac
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x18]
mov word [esi + eax*2], 0
call fcn.00452f67
mov dword [eax + 0x2c], esi
mov eax, dword [edi]
test eax, eax
jne 0x41eec1
xor edi, edi
jmp 0x41eec4
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x18]
call fcn.00452f67
lea ecx, [esp + 0x18]
mov dword [eax + 4], edi
call fcn.00453249
mov edx, dword [ebx]
test edx, edx
jne 0x41eee3
xor ecx, ecx
jmp 0x41ef05
mov ecx, edx
lea ebp, [ecx + 2]
jmp 0x41eef0
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x41eef0
sub ecx, ebp
sar ecx, 1
js 0x41efac
cmp ecx, dword [edx - 8]
jg 0x41efac
mov dword [edx - 0xc], ecx
mov edx, dword [ebx]
mov word [edx + ecx*2], 0
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [esi - 0x10]
mov byte [esp + 0x538], 1
lea edx, [eax + 0xc]
mov edi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ef47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x538], 0xffffffff
call fcn.00453337
mov eax, edi
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.00467769
add esp, 0x52c
ret
push 0x80070057
call fcn.00402720
int3