Function at 0x40d550
Capabilities:
Create pipe
Delete file
Get common file path
Read .ini file
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498b2c
mov eax, dword fs:[0]
push eax
sub esp, 0xb24
mov eax, dword [0x4cb070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xaa0], ecx
mov esi, dword [ebp + 8]
push 0
mov dword [ebp - 0xa1c], esi
mov ecx, dword [esi + 0x708]
mov dword [esi + 0x71c], 0
mov eax, dword [ecx]
call dword [eax + 0x204]
mov ecx, dword [esi + 0x710]
cmp dword [esi + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
mov ecx, dword [esi + 0x714]
cmp dword [esi + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa24], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xe
xor eax, eax
mov dword [ebp - 0xaa4], 7
push str.pdfSetting.ini
lea ecx, [ebp - 0xab8]
mov dword [ebp - 0xaa8], 0
mov word [ebp - 0xab8], ax
call fcn.0040a9c0
lea eax, [ebp - 0xab8]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0xa18]
lea ecx, [ebp - 0xa6c]
call fcn.0040e030
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xaa4]
cmp eax, 8
jb 0x40d66e
inc eax
lea ecx, [ebp - 0xab8]
push eax
push dword [ebp - 0xab8]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0xaa4], 7
cmp dword [ebp - 0xa58], 8
mov word [ebp - 0xab8], ax
lea eax, [ebp - 0xa6c]
cmovae eax, dword [ebp - 0xa6c]
push eax
mov dword [ebp - 0xaa8], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xb30]
mov ecx, esi
push eax
call fcn.0042b880
mov dword [ebp - 0xa90], eax
lea eax, [ebp - 0xb18]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0042b840
mov ebx, eax
lea eax, [ebp - 0xb00]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0042b780
mov edi, eax
lea eax, [ebp - 0xae8]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0042b6c0
mov esi, eax
lea eax, [ebp - 0xad0]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa1c]
push eax
call fcn.0040c4a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xa1c]
add ecx, 0x720
push ecx
push dword [ebp - 0xa90]
push ebx
mov ebx, dword [ebp - 0xa1c]
push edi
push esi
push dword [ebx + 0x740]
push eax
lea eax, [ebp - 0xa6c]
push eax
call fcn.0040c9e0
mov eax, dword [ebp - 0xabc]
cmp eax, 8
jb 0x40d75d
inc eax
lea ecx, [ebp - 0xad0]
push eax
push dword [ebp - 0xad0]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0xabc], 7
mov word [ebp - 0xad0], ax
mov eax, dword [ebp - 0xad4]
mov dword [ebp - 0xac0], 0
cmp eax, 8
jb 0x40d798
inc eax
lea ecx, [ebp - 0xae8]
push eax
push dword [ebp - 0xae8]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0xad4], 7
mov word [ebp - 0xae8], ax
mov eax, dword [ebp - 0xaec]
mov dword [ebp - 0xad8], 0
cmp eax, 8
jb 0x40d7d3
inc eax
lea ecx, [ebp - 0xb00]
push eax
push dword [ebp - 0xb00]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0xaec], 7
mov word [ebp - 0xb00], ax
mov eax, dword [ebp - 0xb04]
mov dword [ebp - 0xaf0], 0
cmp eax, 8
jb 0x40d80e
inc eax
lea ecx, [ebp - 0xb18]
push eax
push dword [ebp - 0xb18]
call fcn.0040aba0
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0xb18], ax
mov eax, dword [ebp - 0xb1c]
mov dword [ebp - 0xb04], 7
mov dword [ebp - 0xb08], 0
cmp eax, 8
jb 0x40d84d
inc eax
lea ecx, [ebp - 0xb30]
push eax
push dword [ebp - 0xb30]
call fcn.0040aba0
lea eax, [ebp - 0xa84]
mov ecx, ebx
push eax
call fcn.0042b370
xor eax, eax
mov dword [ebp - 0xa28], 7
mov dword [ebp - 0xa2c], 0
mov word [ebp - 0xa3c], ax
push 8
push str.export__
lea ecx, [ebp - 0xa3c]
mov byte [ebp - 4], 9
call fcn.00403730
push 0x16
push str.softwareZZDS_PDFPRINT
mov ecx, eax
call fcn.00403730
push 3
push 0x4ae8b4
mov ecx, eax
call fcn.00403730
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xa6c]
push ecx
mov ecx, eax
call fcn.00403860
push 3
push 0x4ae8b4
mov ecx, eax
call fcn.00403730
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xa84]
push ecx
mov ecx, eax
call fcn.00403860
push 2
push 0x4af2ec
mov ecx, eax
call fcn.00403730
lea ecx, [ebp - 0xa94]
call fcn.0043ed50
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
call fcn.0043f3d0
test al, al
sete cl
mov byte [ebp - 0xa99], cl
mov byte [ebp - 4], 0xb
or edi, 0xffffffff
mov esi, dword [ebp - 0xa90]
test esi, esi
je 0x40d941
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40d941
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40d93b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov cl, byte [ebp - 0xa99]
mov byte [ebp - 4], 9
test cl, cl
je 0x40d9f9
lea ecx, [ebp - 0xa20]
call fcn.0043ed50
push 0xd
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa3c]
mov esi, dword [eax]
push str.ZZDS_pdfPrint
call fcn.00403730
push 1
push 0x4af310
mov ecx, eax
call fcn.00403730
mov ecx, esi
mov dword [ebp - 0xa90], eax
call fcn.0043f280
test al, al
mov edx, 0x4af314
mov ecx, 0x4af318
cmove edx, ecx
cmp word [edx], 0
jne 0x40d9a4
xor ecx, ecx
jmp 0x40d9bf
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d9b0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa90]
push edx
call fcn.00403730
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0xa1c]
test esi, esi
je 0x40d9f9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40d9f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40d9f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xa90], 0
push eax
lea eax, [ebp - 0xa88]
mov dword [ebp - 0xa8c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xa88], 0
lea eax, [ebp - 0xa8c]
movq qword [ebp - 0xa98], xmm0
push eax
mov dword [ebp - 0xa98], 0xc
mov dword [ebp - 0xa90], 1
mov dword [ebp - 0xa94], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40da6d
mov dword [ebp - 0xa8c], eax
mov dword [ebp - 0xa88], eax
mov dword [ebp - 0xa40], 0xf
mov dword [ebp - 0xa44], 0
mov byte [ebp - 0xa54], 0
lea ecx, [ebp - 0xa94]
mov byte [ebp - 4], 0xf
call fcn.004456e0
mov ecx, dword [ebp - 0xaa0]
lea edx, [ebp - 0xa3c]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0xa28], 8
cmovae edx, dword [ebp - 0xa3c]
add ecx, 0x30
cmp dword [ecx + 0x14], 8
jb 0x40dac0
mov ecx, dword [ecx]
lea esi, [ebp - 0xa8c]
push esi
lea esi, [ebp - 0xab0]
push esi
sub esp, 8
push edx
push ecx
mov ecx, dword [eax]
call fcn.00445a90
test eax, eax
setne cl
mov byte [ebp - 0xa99], cl
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0xa90]
test esi, esi
je 0x40db17
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40db17
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40db11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov cl, byte [ebp - 0xa99]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xab0]
test cl, cl
jne 0x40dc5d
xor esi, esi
nop dword [eax + eax]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x400
mov edi, eax
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00474730
add esp, 0xc
mov dword [ebp - 0xa1c], 0
lea eax, [ebp - 0xa1c]
push 0
push 0
push eax
push 1
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x40dbec
cmp dword [ebp - 0xa1c], 0
je 0x40dbec
push 0
lea eax, [ebp - 0xa1c]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xa1c], 0
je 0x40dbec
cmp byte [ebp - 0x410], 0
jne 0x40dbc2
xor eax, eax
jmp 0x40dbd9
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dbd0
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040e400
cmp edi, 0x102
jne 0x40dc1e
mov eax, dword [ebp - 0xab0]
cmp esi, 0x5a
jge 0x40db30
mov ecx, dword [ebx + 0x70c]
add esi, 0xa
push esi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CProgressUI::SetValue_int_]
mov eax, dword [ebp - 0xab0]
jmp 0x40db30
test edi, edi
jne 0x40dc35
lea eax, [ebp - 0xa24]
push eax
push dword [ebp - 0xab0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xa40], 0x10
lea eax, [ebp - 0xa54]
cmovae eax, dword [ebp - 0xa54]
push eax
push 0x4af31c
call fcn.0040e680
mov eax, dword [ebp - 0xab0]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push dword [ebp - 0xaac]
call esi
cmp dword [ebp - 0xa24], 1
mov ecx, dword [ebx + 0x708]
jne 0x40dcf0
mov dword [ebx + 0x71c], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x204]
mov ecx, dword [ebx + 0x718]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x6f8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x710]
cmp dword [ebx + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
mov ecx, dword [ebx + 0x714]
cmp dword [ebx + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
mov bl, 1
jmp 0x40ddc7
mov dword [ebx + 0x71c], 2
mov eax, dword [ecx]
push 2
call dword [eax + 0x204]
mov ecx, dword [ebx + 0x718]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x6f8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [ebx + 0x710]
cmp dword [ebx + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
mov ecx, dword [ebx + 0x714]
cmp dword [ebx + 0x71c], 1
sete al
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0xf8]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00474730
add esp, 0xc
lea eax, [ebp - 0xa6c]
cmp dword [ebp - 0xa58], 8
cmovae eax, dword [ebp - 0xa6c]
push eax
push 0x3ff
lea eax, [ebp - 0x810]
push eax
push 0x4af32c
push str.message
push str.error
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0x4af354
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0xaa0]
push dword [eax + 0x70]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor bl, bl
mov eax, dword [ebp - 0xa40]
cmp eax, 0x10
jb 0x40dde5
inc eax
lea ecx, [ebp - 0xa54]
push eax
push dword [ebp - 0xa54]
call fcn.00401820
push dword [ebp - 0xa8c]
mov dword [ebp - 0xa40], 0xf
mov dword [ebp - 0xa44], 0
mov byte [ebp - 0xa54], 0
call esi
push dword [ebp - 0xa88]
call esi
mov eax, dword [ebp - 0xa28]
mov dword [ebp - 0xa8c], 0
mov dword [ebp - 0xa88], 0
cmp eax, 8
jb 0x40de42
inc eax
lea ecx, [ebp - 0xa3c]
push eax
push dword [ebp - 0xa3c]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0xa28], 7
mov word [ebp - 0xa3c], ax
mov eax, dword [ebp - 0xa70]
mov dword [ebp - 0xa2c], 0
cmp eax, 8
jb 0x40de7d
inc eax
lea ecx, [ebp - 0xa84]
push eax
push dword [ebp - 0xa84]
call fcn.0040aba0
mov ecx, dword [ebp - 0xa58]
xor eax, eax
mov dword [ebp - 0xa70], 7
mov dword [ebp - 0xa74], 0
mov word [ebp - 0xa84], ax
cmp ecx, 8
jb 0x40deb8
inc ecx
push ecx
push dword [ebp - 0xa6c]
lea ecx, [ebp - 0xa6c]
call fcn.0040aba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459a5d
mov esp, ebp
pop ebp
ret 4