Function at 0x416b00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46839e
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x534], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x54c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x55c]
mov ebx, dword [esp + 0x564]
mov ebp, ecx
mov ecx, dword [esp + 0x560]
mov dword [esp + 0x18], ecx
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea edi, [ecx + 2]
cmp eax, ecx
je 0x416b87
cmp word [eax], cx
je 0x416b87
lea edi, [ecx + 8]
mov esi, eax
cmp byte [esp + 0x568], cl
je 0x416c38
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push 2
push esi
push edi
call sub.WINSPOOL.DRV_EnumPrintersW
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x416c38
push eax
call fcn.00453c61
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x416c34
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push 2
push esi
push edi
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
je 0x416c2b
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x416c27
mov edi, dword [esp + 0x14]
add edi, 4
cmp byte [ebp + 0xe64], 0
jne 0x416c1d
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00453ad3
add esp, 8
test eax, eax
jne 0x416c1d
mov eax, dword [edi]
push eax
push esi
mov ecx, ebp
call fcn.0040bc00
inc ebx
add edi, 0x54
cmp ebx, dword [esp + 0x24]
jl 0x416bf4
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00453c56
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x416c48
cmp word [ebx], 0
je 0x416c48
mov dword [esp + 0x14], ebx
jmp 0x416c7f
mov ecx, dword [ebp + 4]
test esi, esi
je 0x416c66
push esi
call fcn.0044e730
cmp eax, 0x100
jg 0x416c77
mov dword [esp + 0x14], str.Windows_NT_x86
jmp 0x416c7f
mov dword [esp + 0x14], str.Windows_NT_x86
call fcn.0044b710
test eax, eax
je 0x416c7f
mov dword [esp + 0x14], str.Windows_x64
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x34a]
push edx
mov word [esp + 0x34c], cx
call fcn.00453450
add esp, 0xc
cmp byte [esp + 0x56c], 0
je 0x416cbe
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x340]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.0040de70
cmp byte [ebp + 0xe64], 0
jne 0x416ecb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 3
push 1
push edx
push eax
push esi
call sub.WINSPOOL.DRV_DeletePrinterDriverExW
test eax, eax
jne 0x416f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.004454c0
add esp, 8
cmp edi, 0x705
je 0x416f1f
cmp edi, 0xbb9
je 0x416ef9
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp byte [esp + 0x568], bl
je 0x416eb2
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov ecx, ebp
call fcn.0040bf90
test al, al
jne 0x416eb2
push 0x34
call fcn.004534f0
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x554], ebx
cmp eax, ebx
je 0x416d5f
mov ecx, eax
call fcn.0044f630
mov ebx, eax
push 0x103
xor edi, edi
lea edx, [esp + 0x39]
push edi
push edx
mov dword [esp + 0x560], 0xffffffff
mov byte [esp + 0x40], 0
call fcn.00453450
add esp, 0xc
test esi, esi
je 0x416d9b
mov ecx, dword [ebp + 4]
push edi
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00449450
lea edi, [esp + 0x34]
push str.spooler
push edi
mov ecx, ebx
call fcn.0044f7c0
cmp eax, 4
jne 0x416dbc
push 1
push str.spooler
push edi
mov ecx, ebx
call fcn.0044f700
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push str.spooler
push edi
mov ecx, ebx
call fcn.0044f670
push 0x3e8
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
mov dword [esp + 0x28], 1
call sub.WINSPOOL.DRV_DeletePrinterDriverW
test eax, eax
jne 0x416e15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.004454c0
add esp, 8
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x416e29
mov ecx, ebx
call fcn.0044f880
push ebx
call fcn.004534ca
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x416f2e
test esi, esi
jne 0x416eae
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x142]
push ecx
mov word [esp + 0x144], ax
call fcn.00453450
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea edx, [esp + 0x148]
push str.SYSTEMCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_2_s
push edx
call edi
push 0
push 0
lea eax, [esp + 0x158]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00451c80
push esi
lea ecx, [esp + 0x164]
push str.SYSTEMCurrentControlSetControlPrintEnvironmentsWindows_NT_x86DriversVersion_3_s
push ecx
call edi
push 0
push 0
lea edx, [esp + 0x174]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00451c80
add esp, 0x44
mov ebp, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
cmp dword [ecx], 0x15
jge 0x416ecb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push edx
push eax
mov ecx, ebp
call fcn.00416380
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x534]
xor ecx, esp
call fcn.00453432
add esp, 0x544
ret 0x14
push str.KMPRNAPI::RemovePrinterDriver___driver_is_in_use._n
call fcn.004454c0
mov eax, dword [ebp]
add esp, 4
test eax, eax
je 0x416f32
push 2
push 0
push 0x8901
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x416f32
push str.KMPRNAPI::RemovePrinterDriver___driver_is_unknown._n
call fcn.004454c0
add esp, 4
jmp 0x416f32
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.KMPRNAPI::RemovePrinterDriver___Driver___s__removed.__nRet___d__n
call fcn.004454c0
add esp, 0xc
cmp byte [esp + 0x56c], 0
je 0x416eb2
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x340]
push edx
push eax
mov ecx, ebp
call fcn.0040c3a0
jmp 0x416eb2