Function at 0x4d468c
Capabilities:
Get common file path
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x68
push 0
push 0
dec ecx
jne 0x4d4694
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x4d7314
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x54], 0
setne byte [ebp - 0xaa]
mov byte [ebp - 0x55], 1
mov ecx, 0x4d7330
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0xa4], eax
mov ecx, 0x4d7348
mov dl, 1
mov eax, dword [0x4ed344]
call fcn.004ed3ac
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x4d728f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x4d4740
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f3938]
cmp dword [eax], 0
je 0x4d4736
mov eax, dword [0x4f3938]
mov eax, dword [eax]
mov edx, dword [0x4baf18]
call fcn.004068f0
mov eax, dword [0x4f3938]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4791
cmp byte [ebp - 0xaa], 0
je 0x4d490c
xor eax, eax
mov dword [ebp - 0xb0], eax
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d47ef
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
call fcn.0041be0c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x4d47e4
inc dword [ebp - 0xb0]
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d47c3
lea ecx, [ebp - 0x154]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d738c
call fcn.00481428
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x54]
call fcn.004e8f84
lea ecx, [ebp - 0x158]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d73a4
call fcn.00481428
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x54]
call fcn.004e8fdc
lea ecx, [ebp - 0x15c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d73c0
call fcn.00481428
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x54]
call fcn.004e903c
lea ecx, [ebp - 0x160]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d73f8
call fcn.00481428
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
lea ecx, [ebp - 0x164]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7424
call fcn.00481428
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x54]
call fcn.004e9268
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004e919c
mov edx, dword [ebp - 0xb0]
mov eax, edx
add edx, edx
add edx, edx
add edx, edx
sub edx, eax
mov eax, dword [ebp - 0x54]
call fcn.004e91c4
mov eax, dword [ebp - 0x54]
call fcn.004e8eec
mov eax, dword [ebp - 0x54]
call fcn.00425294
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004e91d8
lea edx, [ebp - 0x40]
mov eax, 0x4d745c
call fcn.004d2430
mov eax, dword [0x4f38fc]
mov eax, dword [eax]
mov dx, 0xffed
call fcn.00474a78
mov byte [ebp - 0x9a], 0
mov byte [ebp - 0xa6], 0
mov byte [ebp - 0xa7], 0
mov byte [ebp - 0xa8], 0
mov byte [ebp - 0xa9], 0
xor eax, eax
push ebp
push 0x4d71e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d6f8b
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x84], eax
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
call fcn.0041be0c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x4d6f7c
mov byte [ebp - 0xa5], 1
movzx ebx, byte [ebp - 0xaa]
test bl, bl
je 0x4d49cf
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d49cf
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004ded14
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d4a37
lea ecx, [ebp - 0x168]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004d27ac
mov edx, dword [ebp - 0x168]
lea eax, [ebp - 0x10]
call fcn.00405774
mov eax, dword [ebp - 4]
add eax, 0x8c
mov edx, dword [ebp - 0x10]
call fcn.00405730
mov eax, dword [ebp - 0x10]
call fcn.0040af54
test al, al
jne 0x4d4a37
mov eax, dword [ebp - 0x10]
call fcn.0040b460
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec368
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4d4a61
mov eax, dword [ebp - 0x14]
call fcn.0040af54
test al, al
jne 0x4d4a61
mov eax, dword [ebp - 0x14]
call fcn.0040b460
test bl, bl
je 0x4d4aab
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x16c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7468
call fcn.00481428
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4d4f04
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
cmp byte [ebp - 0xa6], 0
jne 0x4d4cd4
xor ebx, ebx
mov byte [ebp - 0xb1], 1
jmp 0x4d4cc7
lea ecx, [ebp - 0x20]
movzx edx, bl
mov eax, dword [ebp - 4]
call fcn.004decb0
cmp dword [ebp - 0x20], 0
jne 0x4d4afc
mov byte [ebp - 0xb1], 0
cmp dword [ebp - 0x20], 0
je 0x4d4cc6
lea ecx, [ebp - 0x170]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x170]
call fcn.004c06b8
test al, al
je 0x4d4cc6
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdcb8
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x178]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x178]
pop edx
call fcn.004bdf50
test al, al
je 0x4d4cc6
call fcn.004ec360
cmp eax, 1
jae 0x4d4bcf
call fcn.004bd7fc
sub al, 5
je 0x4d4b89
sub al, 2
je 0x4d4b89
sub al, 2
jne 0x4d4c98
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
call fcn.004ecb14
test al, al
jne 0x4d4bc2
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
jmp 0x4d4c98
mov eax, dword [0x4f3334]
mov byte [eax], 1
jmp 0x4d4c98
lea ecx, [ebp - 0x17c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec7c8
test al, al
je 0x4d4c0a
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
lea ecx, [ebp - 0x180]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ec624
test al, al
je 0x4d4c98
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
call fcn.004bd7fc
sub al, 5
je 0x4d4c56
sub al, 2
je 0x4d4c56
sub al, 2
jne 0x4d4c7a
call fcn.004bd7fc
sub al, 5
je 0x4d4c67
sub al, 2
je 0x4d4c67
sub al, 2
jne 0x4d4c90
call fcn.004ec360
cmp eax, 2
jb 0x4d4c90
call fcn.004ecb14
test al, al
jne 0x4d4c90
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
mov eax, dword [0x4f3334]
mov byte [eax], 1
lea ecx, [ebp - 0x184]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x184]
call fcn.004c06b8
test al, al
je 0x4d4cc6
mov byte [ebp - 0xb1], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
inc ebx
cmp byte [ebp - 0xb1], 0
jne 0x4d4ae1
mov eax, dword [0x4f3380]
movzx eax, byte [eax]
mov byte [ebp - 0xa7], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x75], 0
je 0x4d4eed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [0x4f3494]
mov eax, dword [eax]
call fcn.004c99f8
mov eax, dword [0x4f3494]
mov eax, dword [eax]
xor edx, edx
call fcn.004c917c
mov eax, dword [0x4f38e0]
mov eax, dword [eax]
call fcn.00473320
mov eax, dword [0x4f36b0]
mov eax, dword [eax]
call fcn.00473320
mov byte [ebp - 0xa6], 1
call fcn.004bd7fc
sub al, 5
je 0x4d4d49
sub al, 2
je 0x4d4d49
sub al, 2
jne 0x4d4dca
mov eax, dword [0x4f3334]
cmp byte [eax], 0
je 0x4d4dca
call fcn.004ec360
cmp eax, 1
jb 0x4d4d87
call fcn.004ec360
cmp eax, 2
jae 0x4d4d87
mov eax, dword [0x4f3354]
cmp byte [eax], 0
jne 0x4d4d87
mov eax, dword [0x4f3494]
mov eax, dword [eax]
mov dl, 3
call fcn.004c917c
mov eax, dword [0x4f3354]
mov byte [eax], 1
call fcn.004ec360
cmp eax, 2
jb 0x4d4dca
mov eax, dword [0x4f3354]
cmp byte [eax], 0
jne 0x4d4dca
call fcn.004ecb14
test al, al
je 0x4d4db4
mov eax, dword [0x4f3494]
mov eax, dword [eax]
mov dl, 2
call fcn.004c917c
jmp 0x4d4dc2
mov eax, dword [0x4f3494]
mov eax, dword [eax]
xor edx, edx
call fcn.004c917c
mov eax, dword [0x4f3354]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [0x4f3494]
mov eax, dword [eax]
call fcn.004c8f94
test eax, eax
jg 0x4d4e01
mov eax, dword [0x4f3354]
cmp byte [eax], 0
je 0x4d4e95
call fcn.004bd87c
test al, al
je 0x4d4e95
mov eax, dword [0x4f3494]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xfc]
dec eax
je 0x4d4e20
dec eax
je 0x4d4e85
sub eax, 3
je 0x4d4e75
jmp 0x4d4eed
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
mov eax, dword [0x4f3354]
cmp byte [eax], 0
je 0x4d4eed
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
xor edx, edx
mov eax, 0x4d74ac
call fcn.004ed030
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
jmp 0x4d4eed
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
jmp 0x4d4eed
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
mov byte [ebp - 0xa5], 0
jmp 0x4d4eed
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
mov eax, dword [0x4f3354]
cmp byte [eax], 0
je 0x4d4eed
call fcn.004bd87c
test al, al
jne 0x4d4eed
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
xor edx, edx
mov eax, 0x4d74ac
call fcn.004ed030
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
cmp byte [ebp - 0xa5], 0
jne 0x4d4f04
mov eax, dword [0x4f3380]
movzx edx, byte [ebp - 0xa7]
mov byte [eax], dl
cmp byte [ebp - 0xa5], 0
je 0x4d6f7c
mov eax, dword [0x4f38f0]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00405730
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x50
call fcn.00403b3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00405b6c
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.00405b6c
mov dword [ebp - 0x140], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004d3e6c
mov eax, dword [ebp - 0x18]
call fcn.00405b6c
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00405b6c
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x188]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov cl, 1
xor edx, edx
call fcn.004d26a8
mov eax, dword [ebp - 0x188]
call fcn.00405b6c
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00405b6c
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00405b6c
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00405b6c
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x99], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x76], 0
jne 0x4d5b78
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d5b78
mov byte [ebp - 0x8d], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4d3d68]
call fcn.00406e2c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4baec4]
call fcn.00406e2c
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00406c70
mov edx, eax
add edx, edx
add edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.00408b48
cmp byte [ebp - 0xaa], 0
je 0x4d50c9
mov eax, dword [ebp - 0x54]
call fcn.004e91b0
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004e91c4
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x18c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d74c4
call fcn.00481428
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d56d9
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
cmp byte [ebp - 0xaa], 0
je 0x4d5116
lea ecx, [ebp - 0x190]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
lea ecx, [ebp - 0x194]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x194]
mov eax, 0x4d74fc
call fcn.00405cb8
dec eax
jne 0x4d516f
lea ecx, [ebp - 0x198]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x198]
call fcn.00405b6c
push eax
call sub.winspool.drv_DeletePrinterConnectionA
cmp eax, 1
sbb eax, eax
neg eax
mov byte [ebp - 0x8d], al
cmp byte [ebp - 0x8d], 0
je 0x4d56ca
lea ecx, [ebp - 0x19c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x78]
call fcn.004d7ddc
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x78]
mov edx, dword [edx + 0x10]
call fcn.004058d4
lea eax, [ebp - 0xf4]
xor ecx, ecx
mov edx, 0xc
call fcn.00403b3c
mov dword [ebp - 0xec], 0xf000c
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1a0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1a0]
call fcn.00405b6c
push eax
call sub.winspool.drv_OpenPrinterA
test eax, eax
jne 0x4d528c
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x1b8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1bc]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7508
call fcn.00481428
mov eax, dword [ebp - 0x1bc]
mov ecx, 1
pop edx
call fcn.0040bbec
mov eax, dword [ebp - 0x1a4]
call fcn.00448c24
mov byte [ebp - 0x99], 1
jmp 0x4d56d9
lea ecx, [ebp - 0x1c0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c0]
mov ebx, dword [ebp - 0x60]
add ebx, ebx
lea ebx, [ebx + ebx*2]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ebx*8 + 4]
mov edx, dword [ebp - 0xc]
lea edx, [edx + ebx*8]
call fcn.004da194
lea ecx, [ebp - 0x1c4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0xc]
lea edx, [edx + ebx*8 + 8]
call fcn.004d8218
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx*8 + 0x14]
push eax
lea ecx, [ebp - 0x1c8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ebx*8 + 0x10]
mov edx, dword [ebp - 0xc]
lea edx, [edx + ebx*8 + 0xc]
call fcn.004d86ec
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx*8 + 0x20]
push eax
lea ecx, [ebp - 0x1cc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ebx*8 + 0x1c]
mov edx, dword [ebp - 0xc]
lea edx, [edx + ebx*8 + 0x18]
call fcn.004d8f14
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx*8 + 0x2c]
push eax
lea ecx, [ebp - 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + ebx*8 + 0x28]
mov edx, dword [ebp - 0xc]
lea edx, [edx + ebx*8 + 0x24]
call fcn.004d9854
cmp byte [ebp - 0xa5], 0
je 0x4d55a3
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov dword [ebp - 0xd8], eax
xor eax, eax
push ebp
push 0x4d558b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd1], 1
jmp 0x4d555f
mov eax, dword [ebp - 0xd8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4d548f
inc esi
xor ebx, ebx
cmp byte [ebp - 0xaa], 0
je 0x4d5441
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e92bc
lea ecx, [ebp - 0x1d4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
push eax
mov eax, 0x3e8
pop edx
mov ecx, edx
cdq
idiv ecx
push eax
call sub.kernel32.dll_Sleep_1
lea ecx, [ebp - 0x1d8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1d8]
call fcn.004c0ec8
test eax, eax
jle 0x4d5487
lea ecx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1dc]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec esi
jne 0x4d53ed
mov eax, dword [ebp - 0xd8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
setg byte [ebp - 0xd1]
cmp byte [ebp - 0xd1], 0
je 0x4d555f
cmp byte [ebp - 0xaa], 0
je 0x4d54c1
mov eax, dword [ebp - 0x54]
call fcn.004e8f08
movzx eax, byte [ebp - 0xaa]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [0x4f38a8]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [ebp - 0xd8]
call fcn.004c7d8c
mov eax, dword [0x4f38a8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xfc]
dec eax
je 0x4d54fd
dec eax
je 0x4d5548
sub eax, 3
je 0x4d5558
jmp 0x4d555f
mov byte [ebp - 0xd1], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4d555f
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x1e0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1e0]
call fcn.004c0ec8
test eax, eax
jle 0x4d5542
mov byte [ebp - 0xd1], 0
inc ebx
dec esi
jne 0x4d5519
jmp 0x4d555f
mov byte [ebp - 0xa5], 0
mov byte [ebp - 0xd1], 0
jmp 0x4d555f
mov byte [ebp - 0xd1], 1
movzx eax, byte [ebp - 0xd1]
and al, byte [ebp - 0xa5]
jne 0x4d53c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5592
mov eax, dword [ebp - 0xd8]
call fcn.004047a0
ret
mov eax, dword [ebp - 0x80]
push eax
call sub.winspool.drv_DeletePrinter
test eax, eax
jne 0x4d56b5
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x1e8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1ec]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d752c
call fcn.00481428
mov eax, dword [ebp - 0x1ec]
mov ecx, 1
pop edx
call fcn.0040bbec
mov eax, dword [ebp - 0x1e4]
call fcn.00448c24
mov eax, dword [ebp - 0x80]
push eax
call sub.winspool.drv_ClosePrinter
mov ebx, dword [ebp - 0x60]
add ebx, ebx
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 8]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 8], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 0xc]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 0x18]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0x18], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 0x24]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0x24], edx
mov byte [ebp - 0x99], 1
jmp 0x4d56d9
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x78]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x80]
push eax
call sub.winspool.drv_ClosePrinter
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d50eb
cmp byte [ebp - 0x99], 0
jne 0x4d6f7c
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d56fd
mov dword [ebp - 0xd0], 6
jmp 0x4d5707
mov dword [ebp - 0xd0], 3
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
push 0
mov eax, dword [ebp - 0xd0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.00405b6c
push eax
push 0
call sub.winspool.drv_EnumPrinterDriversA
mov eax, dword [ebp - 0xc4]
add eax, 0x64
call fcn.00402ef8
mov dword [ebp - 0x6c], eax
xor eax, eax
push ebp
push 0x4d5b71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x6c]
push eax
movzx ecx, byte [ebp - 0xd0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x48]
call fcn.004d2c2c
mov dword [ebp - 0x70], eax
cmp byte [ebp - 0x8d], 0
je 0x4d5b1a
cmp byte [ebp - 0xaa], 0
je 0x4d57da
mov eax, dword [ebp - 0x54]
call fcn.004e91b0
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004e91c4
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x1f0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7554
call fcn.00481428
mov edx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
xor eax, eax
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x140]
push eax
push 0
call sub.winspool.drv_DeletePrinterDriverA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x99], al
jmp 0x4d588e
imul eax, dword [ebp - 0xcc], 0x3e8
push eax
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0xcc], 2
jne 0x4d5867
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
call fcn.004ec360
cmp eax, 1
jb 0x4d5851
call fcn.004ecb14
test al, al
je 0x4d5851
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004d3c8c
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x140]
push eax
push 0
call sub.winspool.drv_DeletePrinterDriverA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x99], al
inc dword [ebp - 0xcc]
cmp byte [ebp - 0x99], 0
jne 0x4d58a4
cmp dword [ebp - 0xcc], 2
jbe 0x4d5808
cmp byte [ebp - 0x99], 0
jne 0x4d5b1a
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xbb9
je 0x4d5930
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1f4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1f8]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7580
call fcn.00481428
mov eax, dword [ebp - 0x1f8]
mov ecx, 1
pop edx
call fcn.0040bbec
jmp 0x4d594a
lea ecx, [ebp - 0x44]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d75b4
call fcn.00481428
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d596a
mov edx, 6
mov eax, dword [ebp - 0x70]
call fcn.004d341c
mov dword [ebp - 0xb8], eax
jmp 0x4d597d
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d341c
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4d5993
cmp dword [ebp - 0xb8], 0x20
jne 0x4d5a85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d5a85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d5a85
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 8]
call fcn.00406c70
cmp eax, dword [ebp - 0x60]
jle 0x4d5a76
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
push eax
push 2
push 0
call sub.winspool.drv_AddPrinterA
test eax, eax
jne 0x4d5a76
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x200]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x200]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 0x1b0], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 0x1a8], 0
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x204]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7610
call fcn.00481428
mov eax, dword [ebp - 0x204]
mov ecx, 1
pop edx
call fcn.0040bbec
mov eax, dword [ebp - 0x1fc]
call fcn.00448c24
jmp 0x4d5a85
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d59c8
mov eax, dword [ebp - 4]
mov byte [eax + 0x76], 1
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d5afa
inc eax
mov dword [ebp - 0xe4], eax
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
call fcn.0041be0c
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x208]
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x78]
call fcn.0040a1fc
mov eax, dword [ebp - 0x208]
push eax
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.0040a1fc
mov edx, dword [ebp - 0x20c]
pop eax
call fcn.00405b04
jne 0x4d5af2
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x76], 1
dec dword [ebp - 0xe4]
jne 0x4d5aa2
mov eax, dword [0x4f3380]
movzx edx, byte [ebp - 0xa7]
mov byte [eax], dl
mov eax, dword [ebp - 0x44]
call fcn.00448c24
call fcn.00405100
jmp 0x4d6f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5b78
mov eax, dword [ebp - 0x6c]
call fcn.00402f14
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d5b70
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
call fcn.00402f14
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d5b57
ret
cmp dword [ebp - 0x10], 0
je 0x4d6ef1
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004bdcb8
lea eax, [ebp - 0x28]
mov edx, 0x12c
call fcn.00405dfc
push 0x12c
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
call fcn.0040b494
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00405dfc
lea ecx, [ebp - 0x210]
mov edx, 0x4d7634
mov eax, dword [ebp - 0x28]
call fcn.004bdcb8
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x28]
call fcn.00405774
mov eax, dword [ebp - 0x28]
call fcn.0040af54
test al, al
je 0x4d5c9c
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jb 0x4d5c32
lea ecx, [ebp - 0x214]
mov edx, 0x4d7640
mov eax, dword [ebp - 0x28]
call fcn.004bdcb8
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x28]
call fcn.00405774
mov eax, dword [ebp - 0x28]
call fcn.0040b460
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x21c]
call fcn.004059f4
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
mov eax, dword [ebp - 0x28]
call fcn.004bdcb8
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 0x28]
call fcn.00405774
push 0x20
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004def40
test al, al
je 0x4d5c9c
push 0x20
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp byte [ebp - 0xaa], 0
je 0x4d5cf8
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d5cc0
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x220]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7650
call fcn.00481428
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
xor eax, eax
mov dword [ebp - 0x60], eax
or edi, 0xffffffff
mov esi, 2
call fcn.004d33f8
test al, al
je 0x4d5d13
mov edi, 2
mov ebx, dword [0x4f3618]
movzx ebx, byte [ebx]
call fcn.004bd7fc
sub al, 2
jae 0x4d5d33
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
call fcn.004d2d8c
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004decb0
jmp 0x4d6220
lea ecx, [ebp - 0x228]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x228]
call fcn.004c06b8
test al, al
jne 0x4d5ee0
push 0x20
lea ecx, [ebp - 0x22c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x22c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdcb8
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
cmp byte [ebp - 0xaa], 0
je 0x4d5e80
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d5dd5
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x234]
push 0x4d7680
lea ecx, [ebp - 0x238]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d768c
call fcn.00481428
push dword [ebp - 0x238]
push 0x4d7680
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x240]
push eax
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040a1fc
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x23c]
pop edx
call fcn.004bdcb8
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x24c]
call fcn.004058d4
mov eax, dword [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x250]
call fcn.004058d4
mov eax, dword [ebp - 0x250]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004def40
test al, al
je 0x4d6079
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4d6079
lea ecx, [ebp - 0x254]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdcb8
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x258]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov eax, dword [ebp - 0x258]
pop edx
call fcn.004bdf50
test al, al
je 0x4d6079
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdcb8
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
cmp byte [ebp - 0xaa], 0
je 0x4d6012
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d5f67
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x260]
push 0x4d7680
mov edx, 0x4d768c
lea ecx, [ebp - 0x264]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
push dword [ebp - 0x264]
push 0x4d7680
lea edx, [ebp - 0x26c]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x26c]
push eax
lea edx, [ebp - 0x274]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.0040a1fc
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
pop edx
call fcn.004bdcb8
push dword [ebp - 0x268]
lea eax, [ebp - 0x25c]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x278]
call fcn.004058d4
mov eax, dword [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x27c]
call fcn.004058d4
mov eax, dword [ebp - 0x27c]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004def40
test al, al
je 0x4d6079
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4d61f0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405b04
je 0x4d61f0
mov eax, dword [ebp - 0x14]
call fcn.0040af54
test al, al
je 0x4d61f0
cmp edi, dword [ebp - 0x60]
jge 0x4d61f0
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdcb8
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
cmp byte [ebp - 0xaa], 0
je 0x4d6189
lea edx, [ebp - 0x284]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x284]
push 0x4d7680
mov edx, 0x4d768c
lea ecx, [ebp - 0x288]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
push dword [ebp - 0x288]
push 0x4d7680
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x290]
push eax
lea edx, [ebp - 0x298]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x294]
call fcn.0040a1fc
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x28c]
pop edx
call fcn.004bdcb8
push dword [ebp - 0x28c]
lea eax, [ebp - 0x280]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x29c]
call fcn.004058d4
mov eax, dword [ebp - 0x29c]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2a0]
call fcn.004058d4
mov eax, dword [ebp - 0x2a0]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004def40
test al, al
je 0x4d61f0
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x20]
mov edx, 0x4d7698
call fcn.00405b04
jne 0x4d6209
mov eax, dword [0x4f3618]
mov byte [eax], bl
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004decb0
mov ebx, dword [0x4f3618]
movzx ebx, byte [ebx]
cmp dword [ebp - 0x20], 0
jne 0x4d5d46
mov byte [ebp - 0xb9], 0
call fcn.004bfe08
sub eax, 1
jb 0x4d6240
dec eax
je 0x4d628b
jmp 0x4d629e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x4d629e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
jne 0x4d629e
lea ecx, [ebp - 0x2a4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2a4]
call fcn.004bde50
cmp eax, 0x64
jle 0x4d629e
mov byte [ebp - 0xb9], 1
jmp 0x4d629e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
jne 0x4d629e
mov byte [ebp - 0xb9], 1
cmp byte [ebp - 0xb9], 1
jne 0x4d633e
cmp byte [ebp - 0xaa], 0
je 0x4d6312
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d62cf
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x2a8]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d76ac
call fcn.00481428
mov edx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
lea ecx, [ebp - 0x2ac]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004bdcb8
mov eax, dword [ebp - 0x2ac]
call fcn.004d3b84
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
cmp byte [ebp - 0xaa], 0
je 0x4d63a5
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d6362
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x2b0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d76d8
call fcn.00481428
mov edx, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
lea eax, [ebp - 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.00406c70
dec eax
test eax, eax
jl 0x4d63f3
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x60]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x50]
mov edx, dword [edx + eax*8 + 4]
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x10]
call fcn.004e9c30
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d63c9
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004decb0
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004decb0
lea ecx, [ebp - 0x2c]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004decb0
cmp dword [ebp - 0x24], 0
je 0x4d6432
cmp dword [ebp - 0x28], 0
je 0x4d6432
cmp dword [ebp - 0x2c], 0
jne 0x4d648e
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2b8]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7708
call fcn.00481428
mov eax, dword [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0xb
lea edx, [ebp - 0x2c0]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x2b4]
call fcn.00448c24
jmp 0x4d6f7c
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x24]
call fcn.00405774
lea ecx, [ebp - 0x2c8]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2c8]
lea eax, [ebp - 0x28]
call fcn.00405774
lea ecx, [ebp - 0x2cc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c]
call fcn.00405774
lea eax, [ebp - 0x30]
call fcn.004056dc
lea edx, [ebp - 0x2d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040a4a8
cmp dword [ebp - 0x2d0], 0
je 0x4d651e
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
lea eax, [ebp - 0x34]
call fcn.004056dc
lea edx, [ebp - 0x2d4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.0040a4a8
cmp dword [ebp - 0x2d4], 0
je 0x4d6606
xor eax, eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004decb0
jmp 0x4d65ef
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0x38]
call fcn.00405cb8
test eax, eax
jne 0x4d65de
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
je 0x4d6591
mov eax, dword [ebp - 0xe8]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jle 0x4d65a7
lea eax, [ebp - 0x34]
mov edx, 0x4d7730
call fcn.004059a8
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d65d3
lea ecx, [ebp - 0x2d8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x34]
call fcn.004059a8
jmp 0x4d65de
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x38]
call fcn.004059a8
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004decb0
cmp dword [ebp - 0x38], 0
jne 0x4d655c
lea eax, [ebp - 0x34]
mov edx, 0x4d7730
call fcn.004059a8
mov eax, dword [ebp - 0x24]
call fcn.00405b6c
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x2c]
call fcn.00405b6c
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x30]
call fcn.00405b6c
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x34]
call fcn.00405b6c
mov dword [ebp - 0x12c], eax
mov eax, dword [0x4f37c8]
test byte [eax], 2
jne 0x4d668e
lea eax, [ebp - 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x74]
call fcn.004ec00c
mov edx, dword [0x4f37c8]
mov byte [edx], al
mov eax, dword [0x4f37c8]
movzx eax, byte [eax]
and al, 2
cmp al, 2
jne 0x4d66bf
mov eax, dword [0x4f3618]
mov byte [eax], 0
jmp 0x4d66bf
cmp byte [ebp - 0xaa], 0
je 0x4d66bf
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d66b2
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
cmp byte [ebp - 0xaa], 0
je 0x4d673a
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d66e3
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x2dc]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d773c
call fcn.00481428
mov edx, dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
lea eax, [ebp - 0x2e0]
mov edx, dword [ebp - 0x144]
call fcn.004058d4
mov edx, dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d675a
mov edx, 6
mov eax, dword [ebp - 0x68]
call fcn.004d341c
mov dword [ebp - 0x94], eax
jmp 0x4d676d
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d341c
mov dword [ebp - 0x94], eax
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
cmp dword [ebp - 0x94], 0
je 0x4d689b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x84], eax
cmp byte [ebp - 0xaa], 0
je 0x4d6804
mov eax, dword [ebp - 0x54]
call fcn.004e91b0
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004e91c4
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x2e4]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7764
call fcn.00481428
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
lea eax, [ebp - 0x2e8]
mov edx, dword [ebp - 0x144]
call fcn.004058d4
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
cmp dword [ebp - 0x84], 0x703
je 0x4d6820
cmp dword [ebp - 0x84], 0xb7
jne 0x4d68b1
mov eax, dword [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x140]
push eax
push 0
call sub.winspool.drv_DeletePrinterDriverA
test eax, eax
jne 0x4d6866
mov edx, 0x4d75b4
lea ecx, [ebp - 0x2ec]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2ec]
call fcn.00448c24
jmp 0x4d6f7c
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d6886
mov edx, 6
mov eax, dword [ebp - 0x68]
call fcn.004d341c
mov dword [ebp - 0x94], eax
jmp 0x4d68b1
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d341c
mov dword [ebp - 0x94], eax
jmp 0x4d68b1
cmp byte [ebp - 0xaa], 0
je 0x4d68b1
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
cmp dword [ebp - 0x94], 0
jne 0x4d6e93
cmp byte [ebp - 0xaa], 0
je 0x4d691a
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d68e2
call fcn.00405100
call fcn.00405100
jmp 0x4d729d
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x2f0]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d77a0
call fcn.00481428
mov edx, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d6d04
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp byte [ebp - 0xaa], 0
je 0x4d6978
lea ecx, [ebp - 0x2f4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
call fcn.004d2f00
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4d6bc7
mov eax, dword [ebp - 0xc]
call fcn.00406c70
cmp eax, dword [ebp - 0x60]
jl 0x4d6ae0
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*8 + 0xc], 0
je 0x4d6a22
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*8 + 0x14]
push eax
lea ecx, [ebp - 0x2fc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x2fc]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + edx*8 + 0x10]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebx + edx*8 + 0xc]
call fcn.004d8c4c
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*8 + 0x18], 0
je 0x4d6a81
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*8 + 0x20]
push eax
lea ecx, [ebp - 0x300]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x300]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + edx*8 + 0x1c]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebx + edx*8 + 0x18]
call fcn.004d95c8
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*8 + 0x24], 0
je 0x4d6ae0
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*8 + 0x2c]
push eax
lea ecx, [ebp - 0x304]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x304]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + edx*8 + 0x28]
mov edx, dword [ebp - 0x60]
add edx, edx
lea edx, [edx + edx*2]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebx + edx*8 + 0x24]
call fcn.004d9f08
mov eax, dword [ebp - 0x80]
push eax
call sub.winspool.drv_ClosePrinter
mov eax, dword [ebp - 0xc]
call fcn.00406c70
cmp eax, dword [ebp - 0x60]
jl 0x4d6b4f
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*8 + 8], 0
je 0x4d6b4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x308]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x308]
push eax
lea eax, [ebp - 0x9a]
push eax
push 1
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 8]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0x3c]
mov dl, 1
call fcn.004d7bb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x60]
call fcn.0041be0c
test al, al
je 0x4d6b9b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
lea ecx, [ebp - 0x30c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x30c]
push eax
lea eax, [ebp - 0x9a]
push eax
push 1
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov eax, 4
call fcn.004d7bb4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4d6bbb
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.004da3d8
push ebp
mov eax, dword [ebp - 0x3c]
call fcn.004d4368
pop ecx
jmp 0x4d6c1d
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x314]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d77bc
call fcn.00481428
mov eax, dword [ebp - 0x314]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0
lea edx, [ebp - 0x2c0]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x310]
call fcn.00448c24
mov eax, dword [ebp - 0xc]
call fcn.00406c70
test eax, eax
jle 0x4d6cf5
mov ebx, dword [ebp - 0x60]
add ebx, ebx
lea ebx, [ebx + ebx*2]
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*8], 0
je 0x4d6c51
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*8 + 8], 0
je 0x4d6c6f
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 8]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*8 + 0xc], 0
je 0x4d6c8d
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*8 + 0x18], 0
je 0x4d6cab
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 0x18]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
cmp dword [eax + ebx*8 + 0x24], 0
je 0x4d6cc9
mov eax, dword [ebp - 0x60]
add eax, eax
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 0x24]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 8], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0x18], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + ebx*8 + 0x24], edx
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d693c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4d6e4b
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.004d3d88
cmp byte [ebp - 0xaa], 0
je 0x4d6d33
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
call fcn.004d2f00
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x4d6dab
lea eax, [ebp - 0x318]
push eax
mov edx, 0x4d77bc
lea ecx, [ebp - 0x31c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x31c]
push eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], 0
lea edx, [ebp - 0x2c0]
xor ecx, ecx
pop eax
call fcn.0040bbec
mov eax, dword [ebp - 0x318]
call fcn.00448c24
jmp 0x4d6e4b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je 0x4d6dda
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
lea eax, [ebp - 0x9a]
push eax
push 1
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov eax, 4
call fcn.004d7bb4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0
je 0x4d6df2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 2
jne 0x4d6e21
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x4d6e21
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
lea eax, [ebp - 0x9a]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov eax, 0x800
call fcn.004d7bb4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4d6e41
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.004da3d8
push ebp
mov eax, dword [ebp - 0x3c]
call fcn.004d4368
pop ecx
cmp byte [ebp - 0x9a], 0
je 0x4d6ef1
call fcn.004bd7fc
cmp al, 1
jne 0x4d6e76
push 0x4d77d4
push 0
push 0x1a
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4d6ef1
call fcn.004bd7fc
add al, 0xfe
sub al, 8
jae 0x4d6ef1
push 0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4d6ef1
cmp dword [ebp - 0x94], 0xfffffffe
je 0x4d6ef1
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x324]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d77e4
call fcn.00481428
mov eax, dword [ebp - 0x324]
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x2c0], edx
mov byte [ebp - 0x2bc], 0
lea edx, [ebp - 0x2c0]
xor ecx, ecx
call fcn.0040bbec
mov eax, dword [ebp - 0x320]
call fcn.00448c24
cmp byte [ebp - 0xaa], 0
je 0x4d6f3c
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004e9218
lea ecx, [ebp - 0x328]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d780c
call fcn.00481428
mov edx, dword [ebp - 0x328]
mov eax, dword [ebp - 0x54]
call fcn.004e909c
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004e90fc
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x72]
mov byte [ebp - 0xa9], al
mov eax, dword [0x4f37c8]
movzx eax, byte [eax]
and al, 2
cmp al, 2
jne 0x4d6f6b
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x72]
and al, 1
cmp al, 1
jne 0x4d6f6b
mov byte [ebp - 0xa8], 1
call fcn.004d291c
cmp eax, 3
jne 0x4d6f7c
mov byte [ebp - 0xa8], 1
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d497b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d71f3
mov eax, dword [0x4f38fc]
mov eax, dword [eax]
xor edx, edx
call fcn.00474a78
lea ecx, [ebp - 0x32c]
mov edx, 0x4d783c
mov eax, dword [ebp - 0x14]
call fcn.004bdcb8
mov eax, dword [ebp - 0x32c]
call fcn.0040af54
test al, al
je 0x4d7010
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3a24
call fcn.004bd7fc
sub al, 5
je 0x4d7004
sub al, 2
je 0x4d7004
sub al, 2
je 0x4d7004
mov eax, dword [ebp - 0xa0]
call fcn.004ed6d0
mov eax, dword [ebp - 0xa0]
call fcn.004ed914
mov eax, dword [0x4f36e0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x60], eax
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d7083
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
call fcn.0041be0c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x4d7078
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
call fcn.004bd7fc
add al, 0xfc
sub al, 6
jae 0x4d7078
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
je 0x4d7078
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.004c06f0
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d7032
mov eax, dword [0x4f36e4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x60]
call fcn.0041be0c
mov dword [ebp - 4], eax
cmp byte [ebp - 0xaa], 0
je 0x4d70b1
mov eax, dword [ebp - 0x54]
call fcn.004e8f24
test al, al
je 0x4d70b1
mov byte [ebp - 0xa8], 0
cmp byte [ebp - 0xa8], 0
je 0x4d71e8
call fcn.004d291c
sub eax, 1
jb 0x4d7159
je 0x4d70dd
dec eax
je 0x4d711b
dec eax
je 0x4d716d
jmp 0x4d71e8
cmp byte [ebp - 0xaa], 0
je 0x4d70ee
mov eax, dword [ebp - 0x54]
call fcn.004e8f08
lea eax, [ebp - 0x330]
call fcn.004d2970
mov eax, dword [ebp - 0x330]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004d29f0
jmp 0x4d71e8
cmp byte [ebp - 0xaa], 0
je 0x4d712c
mov eax, dword [ebp - 0x54]
call fcn.004e8f08
lea eax, [ebp - 0x334]
call fcn.004d2970
mov eax, dword [ebp - 0x334]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004d29f0
jmp 0x4d71e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
movzx edx, byte [ebp - 0xa9]
call fcn.004d7860
jmp 0x4d71e8
cmp byte [ebp - 0xaa], 0
je 0x4d717e
mov eax, dword [ebp - 0x54]
call fcn.004e8f08
movzx eax, byte [ebp - 0xa9]
and al, 1
cmp al, 1
jne 0x4d71b3
lea eax, [ebp - 0x338]
call fcn.004d2970
mov eax, dword [ebp - 0x338]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.004d29f0
movzx eax, byte [ebp - 0xa9]
and al, 2
cmp al, 2
jne 0x4d71e8
lea eax, [ebp - 0x33c]
call fcn.004d2970
mov eax, dword [ebp - 0x33c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, 2
call fcn.004d29f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d731b
lea eax, [ebp - 0x340]
mov edx, 0x20
call fcn.00405700
lea eax, [ebp - 0x2b8]
mov edx, 0x41
call fcn.00405700
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.00405700
lea eax, [ebp - 0x198]
mov edx, 0x14
call fcn.00405700
lea eax, [ebp - 0x50]
mov edx, 0x11
call fcn.00405700
lea eax, [ebp - 0xc]
mov edx, dword [0x4baec4]
call fcn.00406e38
lea eax, [ebp - 8]
mov edx, dword [0x4d3d68]
call fcn.00406e38
ret