Function at 0x415f70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46289e
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x534], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f038]
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 0x415ff7
cmp word [eax], cx
je 0x415ff7
lea edi, [ecx + 8]
mov esi, eax
cmp byte [esp + 0x568], cl
je 0x4160a8
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 0x4160a8
push eax
call fcn.0044e993
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4160a4
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 0x41609b
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x416097
mov edi, dword [esp + 0x14]
add edi, 4
cmp byte [ebp + 0xe64], 0
jne 0x41608d
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0044e882
add esp, 8
test eax, eax
jne 0x41608d
mov eax, dword [edi]
push eax
push esi
mov ecx, ebp
call fcn.0040bb70
inc ebx
add edi, 0x54
cmp ebx, dword [esp + 0x24]
jl 0x416064
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0044e988
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4160b8
cmp word [ebx], 0
je 0x4160b8
mov dword [esp + 0x14], ebx
jmp 0x4160ef
mov ecx, dword [ebp + 4]
test esi, esi
je 0x4160d6
push esi
call fcn.0044a530
cmp eax, 0x100
jg 0x4160e7
mov dword [esp + 0x14], str.Windows_NT_x86
jmp 0x4160ef
mov dword [esp + 0x14], str.Windows_NT_x86
call fcn.00447510
test eax, eax
je 0x4160ef
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.0044e1b0
add esp, 0xc
cmp byte [esp + 0x56c], 0
je 0x41612e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x340]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.0040dc40
cmp byte [ebp + 0xe64], 0
jne 0x41632f
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 0x416370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.004412c0
add esp, 8
cmp edi, 0x705
je 0x41635d
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp byte [esp + 0x568], bl
je 0x416316
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov ecx, ebp
call fcn.0040be20
test al, al
jne 0x416316
push 0x34
call fcn.0044e29f
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x554], ebx
cmp eax, ebx
je 0x4161c3
mov ecx, eax
call fcn.0044b430
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.0044e1b0
add esp, 0xc
test esi, esi
je 0x4161ff
mov ecx, dword [ebp + 4]
push edi
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00445250
lea edi, [esp + 0x34]
push str.spooler
push edi
mov ecx, ebx
call fcn.0044b5c0
cmp eax, 4
jne 0x416220
push 1
push str.spooler
push edi
mov ecx, ebx
call fcn.0044b500
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push str.spooler
push edi
mov ecx, ebx
call fcn.0044b470
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 0x416279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.004412c0
add esp, 8
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x41628d
mov ecx, ebx
call fcn.0044b680
push ebx
call fcn.0044e22a
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x41636c
test esi, esi
jne 0x416312
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x142]
push ecx
mov word [esp + 0x144], ax
call fcn.0044e1b0
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.0044da80
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.0044da80
add esp, 0x44
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 4]
cmp dword [eax], 0x15
jge 0x41632f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call fcn.00415800
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.0044e1a0
add esp, 0x544
ret 0x14
push str.KMPRNAPI::RemovePrinterDriver___driver_is_unknown._n
call fcn.004412c0
add esp, 4
jmp 0x416370
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push eax
push str.KMPRNAPI::RemovePrinterDriver___Driver___s__removed._n
call fcn.004412c0
add esp, 8
cmp byte [esp + 0x56c], 0
je 0x416316
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x340]
push ecx
push edx
mov ecx, ebp
call fcn.0040c170
jmp 0x416316