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

Disassembly:
push 0xffffffffffffffff
push 0x492c21
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x51c], eax
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
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.00465d20
mov dword [esp + 0x538], 0
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424e98
push 0x80004005
call fcn.004022b0
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 0x424ec8
cmp dword [ecx + 0x20], 0
je 0x424ec8
lea edx, [esp + 0x10]
push edx
call fcn.00459413
jmp 0x424efa
call fcn.0045ed7b
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x50]
test edx, edx
jne 0x424edb
xor eax, eax
jmp 0x424eef
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424ee0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404b00
lea ecx, [esp + 0x18]
call fcn.00465910
or dword [eax + 0x34], 0x804
add eax, 0x34
lea ecx, [esp + 0x18]
call fcn.00465910
mov ebp, 1
lea ecx, [esp + 0x18]
mov dword [eax + 0x18], ebp
call fcn.00465910
push 0x208
mov dword [eax + 0xc], str.CSV_Files__.csv_
lea eax, [esp + 0x328]
push 0
push eax
call fcn.0047c3b0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00465910
lea ecx, [esp + 0x324]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x18]
call fcn.00465910
mov dword [eax + 0x14], 0x104
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.00465910
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 0x424f9a
push 0x208
mov ecx, ebx
call fcn.004044c0
mov esi, dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00465910
mov dword [eax + 0x1c], esi
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424fc2
push 0x80004005
call fcn.004022b0
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 0x424ffd
push 0x208
lea ecx, [esp + 0x18]
call fcn.004044c0
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 0x42501f
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404510
mov esi, dword [esp + 0x14]
push str.Epson
mov eax, esi
call fcn.00430470
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jne 0x42503f
xor eax, eax
jmp 0x425059
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x425044
sub eax, edx
sar eax, 1
js 0x42516c
cmp eax, dword [esi - 8]
jg 0x42516c
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x18]
mov word [esi + eax*2], 0
call fcn.00465910
mov dword [eax + 0x2c], esi
mov eax, dword [edi]
test eax, eax
jne 0x425081
xor edi, edi
jmp 0x425084
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x18]
call fcn.00465910
lea ecx, [esp + 0x18]
mov dword [eax + 4], edi
call fcn.00465bf1
mov edx, dword [ebx]
test edx, edx
jne 0x4250a3
xor ecx, ecx
jmp 0x4250c5
mov ecx, edx
lea ebp, [ecx + 2]
jmp 0x4250b0
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x4250b0
sub ecx, ebp
sar ecx, 1
js 0x42516c
cmp ecx, dword [edx - 8]
jg 0x42516c
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 0x425107
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 0x42512f
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.00465cdf
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.0047a105
add esp, 0x52c
ret
push 0x80070057
call fcn.004022b0
int3