Function at 0x4067fc
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9b0
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.004038e4
push 0
push str.comport
push 0x4547d8
call fcn.004033e0
add esp, 0xc
dec eax
mov dword [0x452fec], eax
cmp dword [0x452fec], 0
jl 0x40683e
cmp dword [0x452fec], 0x100
jl 0x406846
xor edx, edx
mov dword [0x452fec], edx
mov ecx, dword [0x452fec]
mov dword [0x452ff0], ecx
push 1
push str.NOEDIT
push 0x4547d8
call fcn.004033e0
add esp, 0xc
test eax, eax
jle 0x406874
mov dword [0x46db4c], 1
push 0x469a07
push str.lfn_PP
call fcn.00423634
add esp, 8
push 0x46af85
push str.lfn_RD
call fcn.00423634
add esp, 8
push 0x46c503
push str.lfn_XD
call fcn.00423634
add esp, 8
push 0
push 0x104
push 0x452bc6
push str.lfn_XS
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0
push 0x104
push 0x452abf
push str.lfn_RS
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0
push 0x104
push 0x452ccd
push str.lfn_LG
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0
push 0x104
push 0x452e04
push str.lfn_XML
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0
push 0x104
push 0x468fd5
push str.datapath
push 0x4547d8
call fcn.0040334c
add esp, 0x14
cmp byte [0x468fd5], 0
jne 0x40695b
push 0x468af8
push 0x468fd5
call fcn.0044435c
add esp, 8
push 0x468fd5
call fcn.004045d8
pop ecx
mov byte [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x234], 0
jne 0x4069b6
mov edx, dword [ebp - 0x14]
shl edx, 4
cmp dword [edx + 0x45aa58], 0
je 0x4069b6
mov ecx, dword [ebp - 0x14]
shl ecx, 4
mov eax, dword [ecx + 0x45aa50]
cmp byte [eax], 0
je 0x4069b6
mov edx, dword [ebp - 0x14]
shl edx, 4
push dword [edx + 0x45aa50]
lea ecx, [ebp - 0x234]
push ecx
call fcn.0044435c
add esp, 8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x406972
push 0x5c
lea eax, [ebp - 0x234]
push eax
call fcn.00444491
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4069e2
mov edx, dword [ebp - 0x10]
mov byte [edx + 1], 0
jmp 0x4069e9
mov byte [ebp - 0x234], 0
cmp byte [ebp - 0x234], 0
jne 0x406d04
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [eax + 0x45aa5c], 0
je 0x406a37
mov edx, dword [ebp - 0x14]
shl edx, 4
mov ecx, dword [edx + 0x45aa50]
mov dword [ebp - 0x24], ecx
xor eax, eax
mov dword [ebp - 0x18], eax
imul edx, dword [ebp - 0x18], 0x83
mov ecx, dword [ebp - 0x24]
mov byte [ecx + edx*2], 0
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x15
jl 0x406a1e
jmp 0x406a46
mov eax, dword [ebp - 0x14]
shl eax, 4
mov edx, dword [eax + 0x45aa50]
mov byte [edx], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x4069fb
cmp dword [0x453e9c], 0
je 0x406a6f
push 0x468af8
push 0x468fd5
call fcn.0044435c
add esp, 8
jmp 0x406d04
mov dword [ebp - 0x1c], 1
push 0x468af8
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0044435c
add esp, 8
lea eax, [ebp - 0x12c]
push eax
call fcn.00404618
pop ecx
push 0
push 5
lea edx, [ebp - 0x650]
push edx
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
test eax, eax
jne 0x406ab6
mov byte [ebp - 0x650], 0
jmp 0x406ad7
lea ecx, [ebp - 0x650]
push ecx
call fcn.004045d8
pop ecx
push 0x459123
lea eax, [ebp - 0x650]
push eax
call fcn.00444280
add esp, 8
push 0x468af8
push 0x468fd5
call fcn.00444310
add esp, 8
test eax, eax
jne 0x406af4
mov byte [0x468fd5], 0
cmp byte [0x468fd5], 0
jne 0x406b3b
cmp byte [ebp - 0x650], 0
jne 0x406b27
push str.setup_MyDoc_err1
call fcn.00403934
pop ecx
lea edx, [ebp - 0x12c]
push edx
push 0x468fd5
call fcn.0044435c
add esp, 8
jmp 0x406b3b
lea ecx, [ebp - 0x650]
push ecx
push 0x468fd5
call fcn.0044435c
add esp, 8
push 0x468fd5
call fcn.00404618
pop ecx
push 0x468fd5
push str.Der_Pfad_f
push 0x45913b
lea eax, [ebp - 0x548]
push eax
call fcn.00447d04
add esp, 0x10
cmp byte [ebp - 0x650], 0
je 0x406b85
lea edx, [ebp - 0x650]
push edx
push 0x468fd5
call fcn.00444310
add esp, 8
test eax, eax
jne 0x406bba
push 0
push 0x459191
push 7
push 0x45918d
push 0x20001
push 0
push 0x30
push 0
lea ecx, [ebp - 0x548]
push ecx
push 0
push dword [0x4528dc]
call fcn.0041eb08
add esp, 0x2c
mov dword [ebp - 0x14], eax
jmp 0x406c13
push 0
push str.Anderen_Pfad_ausw
push 7
push str.Dokumentenverzeichnis_verwenden
push 2
push 0x4591a9
push 0x20001
push 0
push 0x30
push 0
lea eax, [ebp - 0x548]
push eax
push 0
push dword [0x4528dc]
call fcn.0041eb08
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jne 0x406c13
lea edx, [ebp - 0x650]
push edx
push 0x468fd5
call fcn.0044435c
add esp, 8
jmp 0x406b46
cmp dword [ebp - 0x14], 7
jne 0x406c6d
push 0x468fd5
lea ecx, [ebp - 0x33c]
push ecx
call fcn.0044435c
add esp, 8
push 0x4591e6
lea eax, [ebp - 0x33c]
push eax
push dword [0x4528dc]
call fcn.004212d8
add esp, 0xc
cmp byte [ebp - 0x33c], 0
je 0x406b46
lea edx, [ebp - 0x33c]
push edx
push 0x468fd5
call fcn.0044435c
add esp, 8
jmp 0x406b46
lea ecx, [ebp - 0x12c]
push ecx
push 0x468fd5
call fcn.00444310
add esp, 8
test eax, eax
je 0x406cc5
push 0x468fd5
call fcn.00404464
pop ecx
test eax, eax
jne 0x406cc5
push 0x468fd5
push 0x4591fe
push 0x14
push dword [0x4528dc]
call fcn.00411b5c
add esp, 0x10
push 0x468fd5
push str.setup_MyDoc_err2___s_
call fcn.00403934
add esp, 8
jmp 0x406b46
push 0x468fd5
push str.setup_MyDoc__s_
call fcn.00403934
add esp, 8
push 0x468fd5
push str.datapath
push 0x4547d8
call fcn.004032d8
add esp, 0xc
push 0x468fd5
call fcn.00420aa4
pop ecx
push 0x468fd5
call fcn.004045d8
pop ecx
push 0x468fd5
lea eax, [ebp - 0x548]
push eax
call fcn.0044435c
add esp, 8
push str.PCDDIRTEST.
lea edx, [ebp - 0x548]
push edx
call fcn.00444280
add esp, 8
push 0x80
lea ecx, [ebp - 0x548]
push ecx
call sub.KERNEL32.DLL_SetFileAttributesA
push 0x459265
lea eax, [ebp - 0x548]
push eax
call fcn.004463c0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x406d71
push dword [ebp - 0x20]
call fcn.00445c04
pop ecx
lea edx, [ebp - 0x548]
push edx
call sub.KERNEL32.DLL_DeleteFileA
jmp 0x406d95
push 0x468fd5
push str.Cant_use_datapath___s__r_n
call fcn.00403934
add esp, 8
push 0x468af8
push 0x468fd5
call fcn.0044435c
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
shl eax, 4
mov edx, dword [eax + 0x45aa50]
cmp byte [edx], 0
jne 0x406dc4
push 0x468fd5
mov ecx, dword [ebp - 0x14]
shl ecx, 4
push dword [ecx + 0x45aa50]
call fcn.0044435c
add esp, 8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x406d9a
push 0
push 9
lea eax, [ebp - 0xc]
push eax
push str.lfi_PP
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0x452f9c
push 0x459282
lea edx, [ebp - 0xc]
push edx
call fcn.00447d80
add esp, 0xc
dec eax
jne 0x406e12
cmp dword [0x452f9c], 1
jl 0x406e12
cmp dword [0x452f9c], 6
jl 0x406e1c
mov dword [0x452f9c], 3
push 0
push 9
lea ecx, [ebp - 0xc]
push ecx
push str.lfi_RS
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0x452fa0
push 0x459285
lea eax, [ebp - 0xc]
push eax
call fcn.00447d80
add esp, 0xc
dec eax
jne 0x406e61
cmp dword [0x452fa0], 1
jl 0x406e61
cmp dword [0x452fa0], 4
jle 0x406e6b
mov dword [0x452fa0], 1
push 0
push 9
lea edx, [ebp - 0xc]
push edx
push str.lfi_RD
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0x452fa4
push 0x459288
lea ecx, [ebp - 0xc]
push ecx
call fcn.00447d80
add esp, 0xc
dec eax
jne 0x406eb0
cmp dword [0x452fa4], 1
jl 0x406eb0
cmp dword [0x452fa4], 2
jle 0x406eba
mov dword [0x452fa4], 1
push 0
push 9
lea eax, [ebp - 0xc]
push eax
push str.lfn_TRS
push 0x4547d8
call fcn.0040334c
add esp, 0x14
push 0x452fa8
push 0x45928b
lea edx, [ebp - 0xc]
push edx
call fcn.00447d80
add esp, 0xc
dec eax
je 0x406ef7
mov dword [0x452fa8], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x406f02
call fcn.00406f08
mov esp, ebp
pop ebp
ret