Function at 0x415e10
Capabilities:
Access peb ldr_data
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4489ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa18
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.0044608e
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x1e0]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push 0x3f2
mov ecx, edi
call fcn.00441335
mov dword [esp + 0x64], eax
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xa2c], esi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
push 0x40
mov byte [esp + 0xa30], 1
call fcn.0043cb78
cmp eax, esi
je 0x415ec1
push 0x40
push eax
lea ecx, [esp + 0x18]
call fcn.00401860
push 0x41
call fcn.0043cb78
cmp eax, esi
je 0x415edc
push 0x41
push eax
lea ecx, [esp + 0x1c]
call fcn.00401860
mov ebx, dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.0040a6e0
add esp, 0xc
cmp eax, 1
jne 0x415f5a
cmp dword [ebp + 0x10], esi
jne 0x415f5a
lea eax, [ebx - 0x10]
mov byte [esp + 0xa2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 3
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x466c80], esi
je 0x415f76
mov eax, dword [edi + 0x8c]
push esi
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a940
add esp, 4
mov dword [esp + 0x6c], eax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x3e8]
lea edx, [esp + 0x38]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push esi
push esi
push 2
push esi
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
jne 0x416024
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x416024
mov byte [esp + 0xa2c], 0
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x415fbb
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
push 2
push esi
push 6
call sub.WINSPOOL.DRV_EnumPrintersA
test eax, eax
je 0x4160b7
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jbe 0x4160b7
lea ebx, [edi + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x416081
mov eax, dword [esp + 0x38]
inc esi
add ebx, 0x54
cmp esi, eax
jb 0x416062
jmp 0x4160b7
imul esi, esi, 0x54
mov edx, dword [esi + edi + 4]
mov al, byte [edx]
add esi, edi
cmp al, 0x5c
jne 0x4160b7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4160b7
mov ecx, dword [esi + 0x10]
push ecx
lea edx, [esp + 0x3ec]
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.00404100
mov esi, eax
mov eax, dword [esp + 0x34]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x4c], esi
jne 0x416282
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0xf000c
call sub.WINSPOOL.DRV_OpenPrinterA
cmp eax, edi
jne 0x41617c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa2c], 0
jne 0x4164b5
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416162
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 4
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 2
je 0x416196
cmp esi, 3
je 0x416196
lea eax, [esp + 0x1e0]
push eax
push ebx
call fcn.0040e220
jmp 0x4161a8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1e0]
push ecx
push edx
call fcn.0040afc0
or esi, 0xffffffff
add esp, 8
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x416202
mov eax, dword [esp + 0x1c]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4161e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x415ffc
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 3
push edi
push ecx
mov dword [esp + 0x38], edi
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
jne 0x416229
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416273
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x1c]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x41624f
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x4165bd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x20]
push edx
push eax
push esi
push 3
push 0
push ecx
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
jne 0x416338
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x1c]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x4165bd
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push 3
push edi
push edi
call sub.WINSPOOL.DRV_EnumPrinterDriversA
test eax, eax
jne 0x4162c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4162c7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x415fd3
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x4164a9
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
push 3
push edi
push edi
call sub.WINSPOOL.DRV_EnumPrinterDriversA
test eax, eax
je 0x416331
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jbe 0x416331
mov edi, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add edi, 4
mov eax, dword [edi]
lea edx, [esp + 0x3e8]
push edx
push eax
call ebx
test eax, eax
je 0x41638d
mov eax, dword [esp + 0x38]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x416314
mov esi, dword [esp + 0x24]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x466c80]
test eax, eax
je 0x41635a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8c]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push 0
push edx
push ebx
push eax
call fcn.00406e20
add esp, 0x14
cmp eax, 1
jne 0x416457
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4163ad
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4163be
mov edx, dword [esp + 0x30]
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*8]
mov byte [esp + 0x1e0], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], esi
jmp 0x416335
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x1c]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [0x466c80]
test eax, eax
je 0x4163dd
mov eax, dword [0x466da8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x4163dd
mov ecx, dword [ebp + 8]
push 0
call fcn.0044142f
push 2
push 0
push 0x466dcc
call fcn.00427ac0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0xa2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416414
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41643d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc]
push 1
lea eax, [esp + 0x9c]
push eax
push ecx
call fcn.004041b0
add esp, 0xc
test eax, eax
jne 0x4164bd
mov eax, dword [esp + 0x34]
test eax, eax
je 0x416498
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa2c], 0
add eax, 0xfffffff0
jmp 0x415fc6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x1c]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov eax, dword [esp + 0x14]
mov byte [esp + 0xa2c], 0
add eax, 0xfffffff0
jmp 0x415fc6
lea eax, [esp + 0x1e0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4164c7
sub eax, edx
mov dword [esp + 0x3c], eax
je 0x41652d
test byte [esp + 0x18], 8
je 0x41652d
lea eax, [esp + 0x1e0]
push eax
push 0
call fcn.00409ca0
add esp, 8
test eax, eax
jne 0x41652d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x416511
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4165bd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x1c]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4165bd
lea ecx, [esp + 0x5c]
xor eax, eax
push ecx
mov dword [esp + 0x60], eax
push ebx
mov byte [esp + 0x68], al
call fcn.00403350
lea edx, [esp + 0xe0]
mov dword [esp + 0x30], eax
push edx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xe4]
push ebx
rep stosd dword es:[edi], eax
call fcn.00403830
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
jne 0x4165f9
test edi, edi
je 0x416598
mov eax, dword [esp + 0x4c]
cmp eax, 6
je 0x4165e9
cmp eax, 0xa
jne 0x416598
lea ecx, [esp + 0xd8]
push ecx
push ebx
call fcn.0040bae0
add esp, 8
mov edx, dword [esp + 0x1c]
push edx
call sub.WINSPOOL.DRV_DeletePrinter
mov ebx, eax
mov eax, dword [esp + 0x1c]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
jne 0x416645
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x14]
call fcn.00401400
lea ecx, [esp + 0x10]
call fcn.00401400
mov eax, 1
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xd8]
push eax
push ebx
call fcn.0040ada0
jmp 0x416595
push ebx
call sub.WINSPOOL.DRV_DeletePrinterConnectionA
test eax, eax
jne 0x416645
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
lea ecx, [esp + 0x14]
jne 0x4165c1
call fcn.00401400
lea ecx, [esp + 0x10]
call fcn.00401400
mov eax, 4
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
mov ebx, dword [esp + 0x4c]
je 0x41666b
cmp ebx, 6
je 0x416657
cmp ebx, 0xa
jne 0x41666b
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xd8]
push edx
push eax
call fcn.00411820
add esp, 8
cmp ebx, 2
je 0x416675
cmp ebx, 3
jne 0x4166ca
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x8c]
push ecx
call edi
test eax, eax
je 0x4166ca
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x7c]
push edx
call ebx
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x8c]
push ecx
call edi
test eax, eax
jne 0x4166a2
mov eax, dword [0x466c80]
test eax, eax
je 0x4166ff
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
push edx
call fcn.0044140e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8c]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040b440
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
mov byte [esp + 0xa2c], 2
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xa2c], 3
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0xa2c], 4
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa30], 5
call fcn.00402470
push 5
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa34], 6
call fcn.00405c40
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa30], 7
call fcn.00401e30
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4167c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x6c]
call fcn.00402470
mov byte [esp + 0xa2c], 8
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x6c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
push eax
mov byte [esp + 0xa38], 9
call fcn.004014e0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040d2d0
mov eax, dword [esp + 0x54]
add esp, 8
cmp eax, 2
je 0x4169dc
cmp eax, 3
je 0x4169dc
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00402470
mov esi, dword [ebp + 0xc]
push 2
push 0x44c1e4
mov bl, 0xc
push esi
mov byte [esp + 0xa38], bl
call fcn.0042fa90
add esp, 0xc
test eax, eax
jne 0x41693c
mov edx, dword [esp + 0x48]
mov eax, dword [edx - 0xc]
dec eax
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
call fcn.00405c40
mov esi, dword [esp + 0x40]
push eax
add esi, 0xdc
lea ecx, [esp + 0x2c]
push esi
push ecx
mov byte [esp + 0xa38], 0xd
call fcn.0040c1f0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa30], 0xe
call fcn.00401e30
lea ecx, [esp + 0x28]
call fcn.00401400
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa2c], bl
call fcn.00401400
push esi
lea ecx, [esp + 0x1c]
call fcn.00401e30
mov edi, dword [esp + 0x2c]
push edi
push SysReAllocString
call fcn.0040a010
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push edi
push SysReAllocString
call esi
push 0x5c
lea ecx, [esp + 0x30]
call fcn.00401330
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x34]
call fcn.00403670
mov ebx, dword [esp + 0x28]
push ebx
push SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x41692e
push ebx
push SysReAllocString
call esi
lea ecx, [esp + 0x28]
call fcn.00401400
jmp 0x4169c2
push esi
lea ecx, [esp + 0x2c]
call fcn.00402470
mov esi, dword [esp + 0x40]
push eax
lea eax, [esi + 0xd8]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xa38], 0xf
call fcn.0040c1f0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa30], 0x10
call fcn.00401e30
lea ecx, [esp + 0x3c]
call fcn.00401400
lea ecx, [esp + 0x28]
mov byte [esp + 0xa2c], bl
call fcn.00401400
add esi, 0xdc
push esi
lea ecx, [esp + 0x1c]
call fcn.00401e30
mov edi, dword [esp + 0x2c]
push edi
push SysReAllocString
call fcn.0040a010
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
push edi
push SysReAllocString
call esi
lea ecx, [esp + 0x48]
mov byte [esp + 0xa2c], 9
call fcn.00401400
mov ebx, dword [esp + 0x40]
jmp 0x416bd0
cmp dword [esp + 0x28], 1
jne 0x4169f0
lea edx, [esp + 0x5c]
push edx
call fcn.004034f0
add esp, 4
mov eax, dword [esp + 0x44]
push str._FAX_
push eax
call fcn.0042de57
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 8
test eax, eax
je 0x416a56
mov ecx, dword [esp + 0x44]
push str._FAX_
push ecx
call fcn.0042de57
mov ebx, dword [esp + 0x48]
add esp, 8
test eax, eax
je 0x416a41
mov eax, dword [ebx + 0xb4]
push eax
lea edx, [esp + 0x9c]
push edx
call fcn.0040fb10
add esp, 8
test eax, eax
jge 0x416a5a
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040df60
add esp, 4
jmp 0x416ba7
mov ebx, dword [esp + 0x40]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x4c]
call fcn.00402470
push eax
lea eax, [ebx + 0xd8]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xa38], 0xa
call fcn.0040c1f0
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa30], 0xb
call fcn.00401e30
lea ecx, [esp + 0x3c]
call fcn.00401400
lea ecx, [esp + 0x48]
mov byte [esp + 0xa2c], 9
call fcn.00401400
lea edx, [ebx + 0xdc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401e30
lea eax, [ebx + 0xe8]
push eax
lea ecx, [esp + 0x54]
call fcn.00401e30
lea ecx, [ebx + 0xe4]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401e30
mov edi, dword [esp + 0x2c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a010
add esp, 8
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edx, dword [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
je 0x416b1c
call fcn.0040ef70
test eax, eax
jne 0x416b91
jmp 0x416b28
mov eax, dword [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x50]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x416b4b
mov edx, dword [esp + 0x50]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [esp + 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x416b6e
mov ecx, dword [esp + 0x58]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x416b91
push str.SOFTWARECANON_
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
push SysReAllocString
call fcn.0040a010
add esp, 8
push edi
push SysReAllocString
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416bd0
lea edx, [esp + 0x5c]
push edx
push str.EnumLPTENUM
call fcn.0040b820
lea eax, [esp + 0x64]
push eax
push str.EnumUSBPRINT
call fcn.0040b820
add esp, 0x10
mov ecx, dword [esp + 0x18]
push ecx
push SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x416c16
mov edx, dword [esp + 0x18]
push edx
push SysReAllocString
call esi
push str.SOFTWARECANON_
push SysReAllocString
call fcn.0040a110
add esp, 8
cmp eax, 1
jne 0x416c16
push str.SOFTWARECANON_
push SysReAllocString
call esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00409e40
add esp, 8
test eax, eax
jne 0x416cf7
mov eax, dword [0x466c80]
test eax, eax
je 0x416c56
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
push eax
call fcn.0044140e
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x70]
call fcn.0040bcc0
jmp 0x416c59
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040f860
add esp, 4
call fcn.00410780
call fcn.0040c850
cmp dword [esp + 0x4c], 3
jne 0x416c84
push str.Enum
call fcn.004092d0
add esp, 4
mov eax, dword [0x466c80]
test eax, eax
je 0x416c9f
lea ecx, [esi + 0x70]
push 0x37
call fcn.00403f60
lea ecx, [esi + 0x70]
call fcn.0040bcc0
mov edx, dword [esp + 0x24]
push edx
push esi
call fcn.00415070
mov eax, dword [0x466c80]
add esp, 8
test eax, eax
je 0x416cce
push 0x46
lea ecx, [esi + 0x70]
call fcn.00403f60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
push eax
call fcn.0044140e
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push 0
push edx
call fcn.004061b0
add esp, 8
test eax, eax
je 0x416ce9
call fcn.00407440
call fcn.00406800
test eax, eax
je 0x416cf7
call fcn.00408e60
mov eax, dword [esp + 0x34]
test eax, eax
je 0x416d06
mov eax, dword [esp + 0x30]
push eax
jmp 0x416d0b
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx + 0x20c]
test eax, eax
je 0x416d20
call fcn.00405940
call fcn.0040ef70
test eax, eax
jne 0x416d2e
call fcn.00407b50
cmp dword [esp + 0x6c], 1
jne 0x416d5d
lea edx, [esp + 0x5f0]
push edx
call fcn.0040aaa0
add esp, 4
cmp eax, 1
jne 0x416d5d
push 0
push eax
lea eax, [esp + 0x5f8]
push eax
call fcn.0040a4e0
add esp, 0xc
mov esi, dword [esp + 0x54]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x70], esp
mov ebx, esp
push esi
call fcn.004014e0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0040ccb0
add esp, 4
mov byte [esp + 0xa2c], 8
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416da0
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0xa2c], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416e80
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xa2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xa2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ecf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xa24]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret