Function at 0x41005a80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411474e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.41005070
test eax, eax
jne 0x410063d9
lea eax, [ebp - 0x24]
push eax
call fcn.41005560
add esp, 4
mov edi, eax
push 0x41158c1c
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.41002090
mov ebx, eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.41002090
push ebx
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 2
call fcn.41005670
push edi
push eax
lea eax, [ebp - 0x1c]
mov bl, 3
push eax
mov byte [ebp - 4], bl
call fcn.41005670
add esp, 0x18
lea ecx, [esi + 0x98]
push eax
mov byte [ebp - 4], 4
call fcn.410043b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005b62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005b85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x3c]
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
test eax, eax
mov eax, dword [esi + 0x3c]
je 0x41005bf1
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
add eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.41002090
mov edi, eax
push 0x41158aa4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 5
call fcn.41002090
mov ebx, eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.41002090
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 7
call fcn.41005670
push edi
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 8
call fcn.41005670
add esp, 0x18
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005c66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005cac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x3c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41005cef
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x7c]
call fcn.41041dac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005d15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x34]
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
test eax, eax
mov eax, dword [esi + 0x34]
je 0x41005d38
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
add eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.41002090
mov edi, eax
push 0x41158aa4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xe
call fcn.41002090
mov ebx, eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.41002090
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0x10
call fcn.41005670
push edi
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 0x11
call fcn.41005670
add esp, 0x18
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005dad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005dd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x16
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005e16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x34]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41005e36
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x7c]
call fcn.41041dac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005e5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x40]
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
test eax, eax
mov eax, dword [esi + 0x40]
je 0x41005e7f
push 0x5c
push eax
call fcn.4112d6c5
add esp, 8
add eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.41002090
mov edi, eax
push 0x41158aa4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0x17
call fcn.41002090
mov ebx, eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x18
call fcn.41002090
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0x19
call fcn.41005670
push edi
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 0x1a
call fcn.41005670
add esp, 0x18
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1d
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005f17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1e
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005f3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x1f
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005f5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x40]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41005f7d
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x7c]
call fcn.41041dac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41005fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4100619e
cmp word [edi], 0
je 0x4100619e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41005fc3
sub eax, edx
sar eax, 1
cmp dword [esi + 0xa4], 0
mov dword [ebp - 0x1c], eax
je 0x4100600e
lea ebx, [edi + eax*2 - 0x12]
push str._tpps.ini
push ebx
call fcn.4112e40c
add esp, 8
test eax, eax
je 0x41006179
push str._tpps.dll
push ebx
call fcn.4112e40c
add esp, 8
test eax, eax
je 0x41006179
push 0x5c
push edi
call fcn.4112d6c5
add esp, 8
test eax, eax
je 0x4100602d
push 0x5c
push edi
call fcn.4112d6c5
add esp, 8
add eax, 2
jmp 0x4100602f
mov eax, edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.41002090
mov edi, eax
push 0x41158aa4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0x20
call fcn.41002090
mov ebx, eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x21
call fcn.41002090
push ebx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov byte [ebp - 4], 0x22
call fcn.41005670
push edi
push eax
lea edx, [ebp + 8]
push edx
mov byte [ebp - 4], 0x23
call fcn.41005670
add esp, 0x18
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x25
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410060a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x26
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410060c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x27
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410060ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x28
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100610d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4100612d
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x7c]
call fcn.41041dac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41006153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
cmp ebx, edi
je 0x4100616c
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
push edx
push ebx
push edi
call fcn.4112f700
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + eax*2 + 2]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41006180
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x41005fb4
mov eax, dword [ebp - 0x18]
cmp edi, eax
je 0x410061aa
xor edx, edx
mov word [eax], dx
push str..ppd
lea ecx, [ebp - 0x20]
call fcn.41002090
mov edi, eax
push 0x41158aa4
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x29
call fcn.41002090
mov ebx, eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x2a
call fcn.41002090
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x2b
call fcn.41005670
lea ecx, [esi + 0x98]
push ecx
push eax
lea ecx, [ebp + 8]
push ecx
mov byte [ebp - 4], 0x2c
call fcn.41005670
push edi
push eax
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 0x2d
call fcn.41005670
add esp, 0x24
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x2f
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41006238
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x30
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100625b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x31
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100627e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x32
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410062a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x33
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410062c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esp
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x410062f4
cmp eax, dword [edi - 0x10]
jne 0x410062f4
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4100632d
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x4100630d
call fcn.410012e0
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.4112dcfa
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
add ebx, 0x10
mov dword [ecx], ebx
mov eax, dword [esi + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 0x34
call fcn.41002090
mov ecx, esi
mov byte [ebp - 4], 0x33
call fcn.41005730
mov edx, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [esi + 0xa4], ebx
je 0x41006377
mov eax, dword [esi + 0x38]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x38], ecx
jmp 0x41006468
push 0x41158be0
push edx
call fcn.4112f6de
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x410063ef
mov ecx, esi
call fcn.41005070
push eax
mov eax, dword [ebp - 0x10]
push eax
push str.Cannot_open___s___with_error__d
push 0x2000001
push 0x18d
push str.PostScriptDriver.cpp
call fcn.41002c10
add esp, 0x18
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410063d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 0x7c]
call fcn.41002e00
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
sub ecx, 5
push ecx
add edx, 5
push edx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x35
call fcn.410030a0
push edi
mov dword [ebp - 0x1c], eax
call fcn.4112f5ac
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x38], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4100645c
push str.Decompression_failed
push 0x2000001
push 0x197
push str.PostScriptDriver.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x33
call fcn.41002e40
jmp 0x410063b3
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x33
call fcn.41002e40
mov eax, dword [esi + 0x98]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x28]
push ecx
xor eax, eax
mov dword [esi + 0x68], str.ThinPrint
mov dword [esi + 0x6c], str.http:__www.thinprint.com
mov dword [esi + 0x70], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
push 6
push ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x48], ebx
call sub.WINSPOOL.DRV_AddPrinterDriverW
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x410064d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x98]
push eax
push edx
push str.AddPrinterDriver___s____d
push 0x2000001
push 0x1ac
push str.PostScriptDriver.cpp
mov dword [esi + 0x78], eax
call fcn.41002c10
add esp, 0x18
jmp 0x410064f8
mov eax, dword [esi + 0x98]
push eax
push str.AddPrinterDriver___s__added_ok
push 0x1000001
push 0x1af
push str.PostScriptDriver.cpp
call fcn.41002c10
add esp, 0x14
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100651e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4