Function at 0x414f60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x45f32e
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x534], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b038]
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 0x414fe7
cmp word [eax], cx
je 0x414fe7
lea edi, [ecx + 8]
mov esi, eax
cmp byte [esp + 0x568], cl
je 0x415098
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 0x415098
push eax
call fcn.0044b473
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x415094
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 0x41508b
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x415087
mov edi, dword [esp + 0x14]
add edi, 4
cmp byte [ebp + 0xe64], 0
jne 0x41507d
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0044b362
add esp, 8
test eax, eax
jne 0x41507d
mov eax, dword [edi]
push eax
push esi
mov ecx, ebp
call fcn.0040b1d0
inc ebx
add edi, 0x54
cmp ebx, dword [esp + 0x24]
jl 0x415054
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0044b468
add esp, 4
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4150a8
cmp word [ebx], 0
je 0x4150a8
mov dword [esp + 0x14], ebx
jmp 0x4150df
mov ecx, dword [ebp + 4]
test esi, esi
je 0x4150c6
push esi
call fcn.00447020
cmp eax, 0x100
jg 0x4150d7
mov dword [esp + 0x14], str.Windows_NT_x86
jmp 0x4150df
mov dword [esp + 0x14], str.Windows_NT_x86
call fcn.00444240
test eax, eax
je 0x4150df
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.0044ac90
add esp, 0xc
cmp byte [esp + 0x56c], 0
je 0x41511e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x340]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.0040d020
cmp byte [ebp + 0xe64], 0
jne 0x41531f
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 0x415360
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.0043e2c0
add esp, 8
cmp edi, 0x705
je 0x41534d
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp byte [esp + 0x568], bl
je 0x415306
mov ecx, dword [esp + 0x18]
push ecx
push esi
mov ecx, ebp
call fcn.0040b480
test al, al
jne 0x415306
push 0x34
call fcn.0044ad7f
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x554], ebx
cmp eax, ebx
je 0x4151b3
mov ecx, eax
call fcn.00447f10
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.0044ac90
add esp, 0xc
test esi, esi
je 0x4151ef
mov ecx, dword [ebp + 4]
push edi
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00441f80
lea edi, [esp + 0x34]
push str.spooler
push edi
mov ecx, ebx
call fcn.004480a0
cmp eax, 4
jne 0x415210
push 1
push str.spooler
push edi
mov ecx, ebx
call fcn.00447fe0
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push str.spooler
push edi
mov ecx, ebx
call fcn.00447f50
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 0x415269
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KMPRNAPI::RemovePrinterDriver_error__ld_n
call fcn.0043e2c0
add esp, 8
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x41527d
mov ecx, ebx
call fcn.00448160
push ebx
call fcn.0044ad0a
add esp, 4
cmp dword [esp + 0x1c], 0
jne 0x41535c
test esi, esi
jne 0x415302
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x142]
push ecx
mov word [esp + 0x144], ax
call fcn.0044ac90
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.0044a560
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.0044a560
add esp, 0x44
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 4]
cmp dword [eax], 0x15
jge 0x41531f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call fcn.004147f0
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.0044ac80
add esp, 0x544
ret 0x14
push str.KMPRNAPI::RemovePrinterDriver___driver_is_unknown._n
call fcn.0043e2c0
add esp, 4
jmp 0x415360
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push eax
push str.KMPRNAPI::RemovePrinterDriver___Driver___s__removed._n
call fcn.0043e2c0
add esp, 8
cmp byte [esp + 0x56c], 0
je 0x415306
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x340]
push ecx
push edx
mov ecx, ebp
call fcn.0040b7d0
jmp 0x415306