Function at 0x4d4b4c
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 0x4d4b54
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x4d77e1
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, 0x4d77fc
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0xa4], eax
mov ecx, 0x4d7814
mov dl, 1
mov eax, dword [0x4ee898]
call fcn.004ee900
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x4d775c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
mov dword [ebp - 0x68], eax
xor eax, eax
push ebp
push 0x4d4c00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f5950]
cmp dword [eax], 0
je 0x4d4bf6
mov eax, dword [0x4f5950]
mov eax, dword [eax]
mov edx, dword [0x4bb2e0]
call fcn.004068f0
mov eax, dword [0x4f5950]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d4c51
cmp byte [ebp - 0xaa], 0
je 0x4d4dcc
xor eax, eax
mov dword [ebp - 0xb0], eax
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d4caf
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [0x4f56f4]
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 0x4d4ca4
inc dword [ebp - 0xb0]
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d4c83
lea ecx, [ebp - 0x154]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7858
call fcn.00481428
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x54]
call fcn.004ea3c0
lea ecx, [ebp - 0x158]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7870
call fcn.00481428
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x54]
call fcn.004ea418
lea ecx, [ebp - 0x15c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d788c
call fcn.00481428
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x54]
call fcn.004ea478
lea ecx, [ebp - 0x160]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d78c4
call fcn.00481428
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004ea538
lea ecx, [ebp - 0x164]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d78f0
call fcn.00481428
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x54]
call fcn.004ea6a4
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004ea5d8
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.004ea600
mov eax, dword [ebp - 0x54]
call fcn.004ea328
mov eax, dword [ebp - 0x54]
call fcn.00425294
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004ea614
lea edx, [ebp - 0x40]
mov eax, 0x4d7928
call fcn.004d28cc
mov eax, dword [0x4f5914]
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 0x4d76b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d7458
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x84], eax
mov eax, dword [0x4f56f4]
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 0x4d7449
mov byte [ebp - 0xa5], 1
movzx ebx, byte [ebp - 0xaa]
test bl, bl
je 0x4d4e8f
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d4e8f
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004dfe10
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d4ef7
lea ecx, [ebp - 0x168]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004d2c48
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 0x4d4ef7
mov eax, dword [ebp - 0x10]
call fcn.0040b460
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004ed88c
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4d4f21
mov eax, dword [ebp - 0x14]
call fcn.0040af54
test al, al
jne 0x4d4f21
mov eax, dword [ebp - 0x14]
call fcn.0040b460
test bl, bl
je 0x4d4f6b
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x16c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7934
call fcn.00481428
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4d53c4
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
cmp byte [ebp - 0xa6], 0
jne 0x4d5194
xor ebx, ebx
mov byte [ebp - 0xb1], 1
jmp 0x4d5187
lea ecx, [ebp - 0x20]
movzx edx, bl
mov eax, dword [ebp - 4]
call fcn.004dfdac
cmp dword [ebp - 0x20], 0
jne 0x4d4fbc
mov byte [ebp - 0xb1], 0
cmp dword [ebp - 0x20], 0
je 0x4d5186
lea ecx, [ebp - 0x170]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x170]
call fcn.004c0724
test al, al
je 0x4d5186
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdd24
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x178]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x178]
pop edx
call fcn.004bdfbc
test al, al
je 0x4d5186
call fcn.004ed884
cmp eax, 1
jae 0x4d508f
call fcn.004bd828
sub al, 5
je 0x4d5049
sub al, 2
je 0x4d5049
sub al, 2
jne 0x4d5158
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
call fcn.004ee068
test al, al
jne 0x4d5082
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
jmp 0x4d5158
mov eax, dword [0x4f5344]
mov byte [eax], 1
jmp 0x4d5158
lea ecx, [ebp - 0x17c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004edd1c
test al, al
je 0x4d50ca
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
lea ecx, [ebp - 0x180]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004edb78
test al, al
je 0x4d5158
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
call fcn.004bd828
sub al, 5
je 0x4d5116
sub al, 2
je 0x4d5116
sub al, 2
jne 0x4d513a
call fcn.004bd828
sub al, 5
je 0x4d5127
sub al, 2
je 0x4d5127
sub al, 2
jne 0x4d5150
call fcn.004ed884
cmp eax, 2
jb 0x4d5150
call fcn.004ee068
test al, al
jne 0x4d5150
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
mov eax, dword [0x4f5344]
mov byte [eax], 1
lea ecx, [ebp - 0x184]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x184]
call fcn.004c0724
test al, al
je 0x4d5186
mov byte [ebp - 0xb1], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
inc ebx
cmp byte [ebp - 0xb1], 0
jne 0x4d4fa1
mov eax, dword [0x4f5390]
movzx eax, byte [eax]
mov byte [ebp - 0xa7], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x75], 0
je 0x4d53ad
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
call fcn.004ca0fc
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
xor edx, edx
call fcn.004c9880
mov eax, dword [0x4f58f8]
mov eax, dword [eax]
call fcn.00473320
mov eax, dword [0x4f56c0]
mov eax, dword [eax]
call fcn.00473320
mov byte [ebp - 0xa6], 1
call fcn.004bd828
sub al, 5
je 0x4d5209
sub al, 2
je 0x4d5209
sub al, 2
jne 0x4d528a
mov eax, dword [0x4f5344]
cmp byte [eax], 0
je 0x4d528a
call fcn.004ed884
cmp eax, 1
jb 0x4d5247
call fcn.004ed884
cmp eax, 2
jae 0x4d5247
mov eax, dword [0x4f5364]
cmp byte [eax], 0
jne 0x4d5247
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
mov dl, 3
call fcn.004c9880
mov eax, dword [0x4f5364]
mov byte [eax], 1
call fcn.004ed884
cmp eax, 2
jb 0x4d528a
mov eax, dword [0x4f5364]
cmp byte [eax], 0
jne 0x4d528a
call fcn.004ee068
test al, al
je 0x4d5274
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
mov dl, 2
call fcn.004c9880
jmp 0x4d5282
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
xor edx, edx
call fcn.004c9880
mov eax, dword [0x4f5364]
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 [0x4f54a4]
mov eax, dword [eax]
call fcn.004c9694
test eax, eax
jg 0x4d52c1
mov eax, dword [0x4f5364]
cmp byte [eax], 0
je 0x4d5355
call fcn.004bd8a8
test al, al
je 0x4d5355
mov eax, dword [0x4f54a4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xfc]
dec eax
je 0x4d52e0
dec eax
je 0x4d5345
sub eax, 3
je 0x4d5335
jmp 0x4d53ad
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
mov eax, dword [0x4f5364]
cmp byte [eax], 0
je 0x4d53ad
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
xor edx, edx
mov eax, 0x4d7978
call fcn.004ee584
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
jmp 0x4d53ad
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
jmp 0x4d53ad
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
mov byte [ebp - 0xa5], 0
jmp 0x4d53ad
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 0
mov byte [ebp - 0xa5], 1
mov eax, dword [0x4f5364]
cmp byte [eax], 0
je 0x4d53ad
call fcn.004bd8a8
test al, al
jne 0x4d53ad
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
xor edx, edx
mov eax, 0x4d7978
call fcn.004ee584
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
cmp byte [ebp - 0xa5], 0
jne 0x4d53c4
mov eax, dword [0x4f5390]
movzx edx, byte [ebp - 0xa7]
mov byte [eax], dl
cmp byte [ebp - 0xa5], 0
je 0x4d7449
mov eax, dword [0x4f5908]
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.004d432c
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.004d2b44
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 0x4d6038
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d6038
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 [0x4d4228]
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 [0x4bb28c]
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 0x4d5589
mov eax, dword [ebp - 0x54]
call fcn.004ea5ec
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004ea600
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x18c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7990
call fcn.00481428
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d5b99
inc eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x60], 0
cmp byte [ebp - 0xaa], 0
je 0x4d55d6
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.004ea538
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, 0x4d79c8
call fcn.00405cb8
dec eax
jne 0x4d562f
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 0x4d5b8a
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.004d82a8
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 0x4d574c
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 [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d79d4
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 0x4d5b99
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.004da660
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.004d86e4
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.004d8bb8
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.004d93e0
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.004d9d20
cmp byte [ebp - 0xa5], 0
je 0x4d5a63
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov dword [ebp - 0xd8], eax
xor eax, eax
push ebp
push 0x4d5a4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd1], 1
jmp 0x4d5a1f
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 0x4d594f
inc esi
xor ebx, ebx
cmp byte [ebp - 0xaa], 0
je 0x4d5901
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea6f8
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.004ea538
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.004c0f34
test eax, eax
jle 0x4d5947
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 0x4d58ad
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 0x4d5a1f
cmp byte [ebp - 0xaa], 0
je 0x4d5981
mov eax, dword [ebp - 0x54]
call fcn.004ea344
movzx eax, byte [ebp - 0xaa]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [0x4f58c0]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [ebp - 0xd8]
call fcn.004c848c
mov eax, dword [0x4f58c0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xfc]
dec eax
je 0x4d59bd
dec eax
je 0x4d5a08
sub eax, 3
je 0x4d5a18
jmp 0x4d5a1f
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 0x4d5a1f
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.004c0f34
test eax, eax
jle 0x4d5a02
mov byte [ebp - 0xd1], 0
inc ebx
dec esi
jne 0x4d59d9
jmp 0x4d5a1f
mov byte [ebp - 0xa5], 0
mov byte [ebp - 0xd1], 0
jmp 0x4d5a1f
mov byte [ebp - 0xd1], 1
movzx eax, byte [ebp - 0xd1]
and al, byte [ebp - 0xa5]
jne 0x4d5889
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5a52
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 0x4d5b75
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 [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d79f8
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 0x4d5b99
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 0x4d55ab
cmp byte [ebp - 0x99], 0
jne 0x4d7449
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d5bbd
mov dword [ebp - 0xd0], 6
jmp 0x4d5bc7
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 0x4d6031
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.004d30c8
mov dword [ebp - 0x70], eax
cmp byte [ebp - 0x8d], 0
je 0x4d5fda
cmp byte [ebp - 0xaa], 0
je 0x4d5c9a
mov eax, dword [ebp - 0x54]
call fcn.004ea5ec
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004ea600
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x1f0]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7a20
call fcn.00481428
mov edx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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 0x4d5d4e
imul eax, dword [ebp - 0xcc], 0x3e8
push eax
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0xcc], 2
jne 0x4d5d27
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
call fcn.004ed884
cmp eax, 1
jb 0x4d5d11
call fcn.004ee068
test al, al
je 0x4d5d11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.004d4144
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
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 0x4d5d64
cmp dword [ebp - 0xcc], 2
jbe 0x4d5cc8
cmp byte [ebp - 0x99], 0
jne 0x4d5fda
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xbb9
je 0x4d5df0
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 [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7a4c
call fcn.00481428
mov eax, dword [ebp - 0x1f8]
mov ecx, 1
pop edx
call fcn.0040bbec
jmp 0x4d5e0a
lea ecx, [ebp - 0x44]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7a80
call fcn.00481428
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d5e2a
mov edx, 6
mov eax, dword [ebp - 0x70]
call fcn.004d38b8
mov dword [ebp - 0xb8], eax
jmp 0x4d5e3d
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d38b8
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4d5e53
cmp dword [ebp - 0xb8], 0x20
jne 0x4d5f45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d5f45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d5f45
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 0x4d5f36
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 0x4d5f36
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 [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7adc
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 0x4d5f45
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d5e88
mov eax, dword [ebp - 4]
mov byte [eax + 0x76], 1
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d5fba
inc eax
mov dword [ebp - 0xe4], eax
mov eax, dword [0x4f56f4]
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 0x4d5fb2
mov eax, dword [ebp - 0x64]
mov byte [eax + 0x76], 1
dec dword [ebp - 0xe4]
jne 0x4d5f62
mov eax, dword [0x4f5390]
movzx edx, byte [ebp - 0xa7]
mov byte [eax], dl
mov eax, dword [ebp - 0x44]
call fcn.00448c24
call fcn.00405100
jmp 0x4d7449
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6038
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 0x4d6030
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 0x4d6017
ret
cmp dword [ebp - 0x10], 0
je 0x4d73be
mov byte [ebp - 0xb9], 0
call fcn.004bfe74
sub eax, 1
jb 0x4d6058
dec eax
je 0x4d60a3
jmp 0x4d60b6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x4d60b6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
jne 0x4d60b6
lea ecx, [ebp - 0x210]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004bdd24
mov eax, dword [ebp - 0x210]
call fcn.004bdebc
cmp eax, 0x64
jle 0x4d60b6
mov byte [ebp - 0xb9], 1
jmp 0x4d60b6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
jne 0x4d60b6
mov byte [ebp - 0xb9], 1
cmp byte [ebp - 0xb9], 0
jne 0x4d61dd
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.004bdd24
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 - 0x214]
mov edx, 0x4d7b00
mov eax, dword [ebp - 0x28]
call fcn.004bdd24
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x28]
call fcn.00405774
mov eax, dword [ebp - 0x28]
call fcn.0040af54
test al, al
je 0x4d61dd
call fcn.004bd828
add al, 0xfe
sub al, 8
jb 0x4d6173
lea ecx, [ebp - 0x218]
mov edx, 0x4d7b0c
mov eax, dword [ebp - 0x28]
call fcn.004bdd24
mov edx, dword [ebp - 0x218]
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 - 0x220]
call fcn.004059f4
mov edx, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
mov eax, dword [ebp - 0x28]
call fcn.004bdd24
mov edx, dword [ebp - 0x21c]
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.004e003c
test al, al
je 0x4d61dd
push 0x20
mov eax, dword [ebp - 0x28]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp byte [ebp - 0xaa], 0
je 0x4d6239
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d6201
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x224]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7b1c
call fcn.00481428
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
xor eax, eax
mov dword [ebp - 0x60], eax
or edi, 0xffffffff
mov esi, 2
call fcn.004d3894
test al, al
je 0x4d6254
mov edi, 2
mov ebx, dword [0x4f5628]
movzx ebx, byte [ebx]
call fcn.004bd828
sub al, 2
jae 0x4d6274
lea edx, [ebp - 0x228]
mov eax, dword [ebp - 4]
call fcn.004d3228
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004dfdac
jmp 0x4d6761
lea ecx, [ebp - 0x22c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x22c]
call fcn.004c0724
test al, al
jne 0x4d6421
push 0x20
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x230]
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.004bdd24
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
cmp byte [ebp - 0xaa], 0
je 0x4d63c1
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d6316
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x238]
push 0x4d7b4c
lea ecx, [ebp - 0x23c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7b58
call fcn.00481428
push dword [ebp - 0x23c]
push 0x4d7b4c
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x244]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0040a1fc
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x240]
pop edx
call fcn.004bdd24
push dword [ebp - 0x240]
lea eax, [ebp - 0x234]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x250]
call fcn.004058d4
mov eax, dword [ebp - 0x250]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x254]
call fcn.004058d4
mov eax, dword [ebp - 0x254]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004e003c
test al, al
je 0x4d65ba
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4d65ba
lea ecx, [ebp - 0x258]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdd24
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x25c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov eax, dword [ebp - 0x25c]
pop edx
call fcn.004bdfbc
test al, al
je 0x4d65ba
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdd24
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
cmp byte [ebp - 0xaa], 0
je 0x4d6553
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d64a8
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
lea edx, [ebp - 0x264]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x264]
push 0x4d7b4c
mov edx, 0x4d7b58
lea ecx, [ebp - 0x268]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
push dword [ebp - 0x268]
push 0x4d7b4c
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x270]
push eax
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x278]
lea edx, [ebp - 0x274]
call fcn.0040a1fc
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x26c]
pop edx
call fcn.004bdd24
push dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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 - 0x27c]
call fcn.004058d4
mov eax, dword [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x280]
call fcn.004058d4
mov eax, dword [ebp - 0x280]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004e003c
test al, al
je 0x4d65ba
push 0x20
mov eax, dword [ebp - 0x4c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4d6731
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405b04
je 0x4d6731
mov eax, dword [ebp - 0x14]
call fcn.0040af54
test al, al
je 0x4d6731
cmp edi, dword [ebp - 0x60]
jge 0x4d6731
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
call fcn.004bdd24
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
cmp byte [ebp - 0xaa], 0
je 0x4d66ca
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x50]
call fcn.0040b324
push dword [ebp - 0x288]
push 0x4d7b4c
mov edx, 0x4d7b58
lea ecx, [ebp - 0x28c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
push dword [ebp - 0x28c]
push 0x4d7b4c
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 0x4c]
call fcn.0040b324
mov eax, dword [ebp - 0x294]
push eax
lea edx, [ebp - 0x29c]
mov eax, dword [ebp - 0x4c]
call fcn.0040b1e4
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x298]
call fcn.0040a1fc
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x290]
pop edx
call fcn.004bdd24
push dword [ebp - 0x290]
lea eax, [ebp - 0x284]
mov edx, 5
call fcn.00405a70
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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 - 0x2a0]
call fcn.004058d4
mov eax, dword [ebp - 0x2a0]
push eax
mov eax, dword [ebp - 0x50]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x2a4]
call fcn.004058d4
mov eax, dword [ebp - 0x2a4]
cmp esi, dword [ebp - 0x60]
setl cl
pop edx
call fcn.004e003c
test al, al
je 0x4d6731
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, 0x4d7b64
call fcn.00405b04
jne 0x4d674a
mov eax, dword [0x4f5628]
mov byte [eax], bl
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004dfdac
mov ebx, dword [0x4f5628]
movzx ebx, byte [ebx]
cmp dword [ebp - 0x20], 0
jne 0x4d6287
cmp byte [ebp - 0xb9], 1
jne 0x4d680b
cmp byte [ebp - 0xaa], 0
je 0x4d67df
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d679c
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x2a8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7b78
call fcn.00481428
mov edx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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.004bdd24
mov eax, dword [ebp - 0x2ac]
call fcn.004d4020
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
cmp byte [ebp - 0xaa], 0
je 0x4d6872
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d682f
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x2b0]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7ba4
call fcn.00481428
mov edx, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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 0x4d68c0
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.004eb068
inc dword [ebp - 0x60]
dec dword [ebp - 0xe4]
jne 0x4d6896
lea ecx, [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004dfdac
lea ecx, [ebp - 0x28]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004dfdac
lea ecx, [ebp - 0x2c]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004dfdac
cmp dword [ebp - 0x24], 0
je 0x4d68ff
cmp dword [ebp - 0x28], 0
je 0x4d68ff
cmp dword [ebp - 0x2c], 0
jne 0x4d695b
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2b8]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7bd4
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 0x4d7449
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
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.004bdd24
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.004bdd24
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 0x4d69eb
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
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 0x4d6ad3
xor eax, eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004dfdac
jmp 0x4d6abc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0x38]
call fcn.00405cb8
test eax, eax
jne 0x4d6aab
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
je 0x4d6a5e
mov eax, dword [ebp - 0xe8]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jle 0x4d6a74
lea eax, [ebp - 0x34]
mov edx, 0x4d7bfc
call fcn.004059a8
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d6aa0
lea ecx, [ebp - 0x2d8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
call fcn.004bdd24
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x34]
call fcn.004059a8
jmp 0x4d6aab
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.004dfdac
cmp dword [ebp - 0x38], 0
jne 0x4d6a29
lea eax, [ebp - 0x34]
mov edx, 0x4d7bfc
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 [0x4f57dc]
test byte [eax], 2
jne 0x4d6b5b
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.004ed530
mov edx, dword [0x4f57dc]
mov byte [edx], al
mov eax, dword [0x4f57dc]
movzx eax, byte [eax]
and al, 2
cmp al, 2
jne 0x4d6b8c
mov eax, dword [0x4f5628]
mov byte [eax], 0
jmp 0x4d6b8c
cmp byte [ebp - 0xaa], 0
je 0x4d6b8c
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d6b7f
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
cmp byte [ebp - 0xaa], 0
je 0x4d6c07
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d6bb0
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x2dc]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7c08
call fcn.00481428
mov edx, dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
lea eax, [ebp - 0x2e0]
mov edx, dword [ebp - 0x144]
call fcn.004058d4
mov edx, dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d6c27
mov edx, 6
mov eax, dword [ebp - 0x68]
call fcn.004d38b8
mov dword [ebp - 0x94], eax
jmp 0x4d6c3a
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d38b8
mov dword [ebp - 0x94], eax
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
cmp dword [ebp - 0x94], 0
je 0x4d6d68
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x84], eax
cmp byte [ebp - 0xaa], 0
je 0x4d6cd1
mov eax, dword [ebp - 0x54]
call fcn.004ea5ec
mov edx, eax
inc edx
mov eax, dword [ebp - 0x54]
call fcn.004ea600
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x2e4]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7c30
call fcn.00481428
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
lea eax, [ebp - 0x2e8]
mov edx, dword [ebp - 0x144]
call fcn.004058d4
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
cmp dword [ebp - 0x84], 0x703
je 0x4d6ced
cmp dword [ebp - 0x84], 0xb7
jne 0x4d6d7e
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 0x4d6d33
mov edx, 0x4d7a80
lea ecx, [ebp - 0x2ec]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00481428
mov eax, dword [ebp - 0x2ec]
call fcn.00448c24
jmp 0x4d7449
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d6d53
mov edx, 6
mov eax, dword [ebp - 0x68]
call fcn.004d38b8
mov dword [ebp - 0x94], eax
jmp 0x4d6d7e
mov edx, 3
mov eax, dword [ebp - 0x68]
call fcn.004d38b8
mov dword [ebp - 0x94], eax
jmp 0x4d6d7e
cmp byte [ebp - 0xaa], 0
je 0x4d6d7e
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
cmp dword [ebp - 0x94], 0
jne 0x4d7360
cmp byte [ebp - 0xaa], 0
je 0x4d6de7
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d6daf
call fcn.00405100
call fcn.00405100
jmp 0x4d776a
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x2f0]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7c6c
call fcn.00481428
mov edx, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4d71d1
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 0x4d6e45
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.004ea538
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.004d339c
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4d7094
mov eax, dword [ebp - 0xc]
call fcn.00406c70
cmp eax, dword [ebp - 0x60]
jl 0x4d6fad
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 0x4d6eef
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.004d9118
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 0x4d6f4e
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.004d9a94
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 0x4d6fad
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.004da3d4
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 0x4d701c
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 0x4d701c
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.004d8080
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x60]
call fcn.0041be0c
test al, al
je 0x4d7068
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.004d8080
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4d7088
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.004da8a4
push ebp
mov eax, dword [ebp - 0x3c]
call fcn.004d4828
pop ecx
jmp 0x4d70ea
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x314]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7c88
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 0x4d71c2
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 0x4d711e
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 0x4d713c
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 0x4d715a
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 0x4d7178
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 0x4d7196
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 0x4d6e09
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x4d7318
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.004d4248
cmp byte [ebp - 0xaa], 0
je 0x4d7200
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x54]
call fcn.004ea538
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.004d339c
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x4d7278
lea eax, [ebp - 0x318]
push eax
mov edx, 0x4d7c88
lea ecx, [ebp - 0x31c]
mov eax, dword [0x4f5434]
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 0x4d7318
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je 0x4d72a7
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.004d8080
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 0
je 0x4d72bf
mov eax, dword [ebp - 4]
cmp dword [eax + 0x98], 2
jne 0x4d72ee
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x4d72ee
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.004d8080
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa0], 0
je 0x4d730e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.004da8a4
push ebp
mov eax, dword [ebp - 0x3c]
call fcn.004d4828
pop ecx
cmp byte [ebp - 0x9a], 0
je 0x4d73be
call fcn.004bd828
cmp al, 1
jne 0x4d7343
push 0x4d7ca0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4d73be
call fcn.004bd828
add al, 0xfe
sub al, 8
jae 0x4d73be
push 0
push 0
push 0x1a
push 0xffff
call sub.user32.dll_PostMessageA
jmp 0x4d73be
cmp dword [ebp - 0x94], 0xfffffffe
je 0x4d73be
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x324]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7cb0
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 0x4d7409
mov edx, 1
mov eax, dword [ebp - 0x54]
call fcn.004ea654
lea ecx, [ebp - 0x328]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d7cd8
call fcn.00481428
mov edx, dword [ebp - 0x328]
mov eax, dword [ebp - 0x54]
call fcn.004ea4d8
xor edx, edx
mov eax, dword [ebp - 0x54]
call fcn.004ea538
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x72]
mov byte [ebp - 0xa9], al
mov eax, dword [0x4f57dc]
movzx eax, byte [eax]
and al, 2
cmp al, 2
jne 0x4d7438
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x72]
and al, 1
cmp al, 1
jne 0x4d7438
mov byte [ebp - 0xa8], 1
call fcn.004d2db8
cmp eax, 3
jne 0x4d7449
mov byte [ebp - 0xa8], 1
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d4e3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d76c0
mov eax, dword [0x4f5914]
mov eax, dword [eax]
xor edx, edx
call fcn.00474a78
lea ecx, [ebp - 0x32c]
mov edx, 0x4d7d08
mov eax, dword [ebp - 0x14]
call fcn.004bdd24
mov eax, dword [ebp - 0x32c]
call fcn.0040af54
test al, al
je 0x4d74dd
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ebp - 0xaa]
mov eax, dword [ebp - 0xa4]
call fcn.004d3ec0
call fcn.004bd828
sub al, 5
je 0x4d74d1
sub al, 2
je 0x4d74d1
sub al, 2
je 0x4d74d1
mov eax, dword [ebp - 0xa0]
call fcn.004eee8c
mov eax, dword [ebp - 0xa0]
call fcn.004ef010
mov eax, dword [0x4f56f0]
mov eax, dword [eax]
call fcn.00476ef4
xor eax, eax
mov dword [ebp - 0x60], eax
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d7550
inc eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x5c], 0
mov eax, dword [0x4f56f4]
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 0x4d7545
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
call fcn.004bd828
add al, 0xfc
sub al, 6
jae 0x4d7545
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
je 0x4d7545
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
call fcn.004c075c
inc dword [ebp - 0x5c]
dec dword [ebp - 0xe0]
jne 0x4d74ff
mov eax, dword [0x4f56f4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x60]
call fcn.0041be0c
mov dword [ebp - 4], eax
cmp byte [ebp - 0xaa], 0
je 0x4d757e
mov eax, dword [ebp - 0x54]
call fcn.004ea360
test al, al
je 0x4d757e
mov byte [ebp - 0xa8], 0
cmp byte [ebp - 0xa8], 0
je 0x4d76b5
call fcn.004d2db8
sub eax, 1
jb 0x4d7626
je 0x4d75aa
dec eax
je 0x4d75e8
dec eax
je 0x4d763a
jmp 0x4d76b5
cmp byte [ebp - 0xaa], 0
je 0x4d75bb
mov eax, dword [ebp - 0x54]
call fcn.004ea344
lea eax, [ebp - 0x330]
call fcn.004d2e0c
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.004d2e8c
jmp 0x4d76b5
cmp byte [ebp - 0xaa], 0
je 0x4d75f9
mov eax, dword [ebp - 0x54]
call fcn.004ea344
lea eax, [ebp - 0x334]
call fcn.004d2e0c
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.004d2e8c
jmp 0x4d76b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
movzx edx, byte [ebp - 0xa9]
call fcn.004d7d2c
jmp 0x4d76b5
cmp byte [ebp - 0xaa], 0
je 0x4d764b
mov eax, dword [ebp - 0x54]
call fcn.004ea344
movzx eax, byte [ebp - 0xa9]
and al, 1
cmp al, 1
jne 0x4d7680
lea eax, [ebp - 0x338]
call fcn.004d2e0c
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.004d2e8c
movzx eax, byte [ebp - 0xa9]
and al, 2
cmp al, 2
jne 0x4d76b5
lea eax, [ebp - 0x33c]
call fcn.004d2e0c
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.004d2e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d77e8
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 [0x4bb28c]
call fcn.00406e38
lea eax, [ebp - 8]
mov edx, dword [0x4d4228]
call fcn.00406e38
ret