Function at 0x450fb4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
xor ebx, ebx
xor edi, edi
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp + 8], 0
jne 0x450ff1
xor eax, eax
jmp 0x451322
cmp dword [ebp - 0x90], 1
jne 0x451100
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.WINSPOOL.DRV_OpenPrinterA
mov esi, eax
test esi, esi
je 0x451019
cmp dword [ebp - 8], 0
jne 0x451020
xor eax, eax
jmp 0x451322
push 0
call sub.KERNEL32.DLL_SetLastError
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x451060
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x451050
cmp dword [ebp - 4], 0
jne 0x451060
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x451322
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x451081
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x451322
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 4]
push ecx
push ebx
push 2
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x4510b1
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x451322
or dword [ebx + 0x34], 4
push 0
push ebx
push 2
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_SetPrinterA
mov esi, eax
test esi, esi
jne 0x4510df
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x451322
push 0
push 0x3e8
push 0
push str.windows
push 0
push 0x1a
push 0xffff
call sub.USER32.DLL_SendMessageTimeoutA
jmp 0x4512fa
cmp dword [ebp - 0x90], 2
jne 0x4512fa
cmp dword [ebp - 0x9c], 5
jb 0x451177
push str.winspool.drv
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x451130
xor eax, eax
jmp 0x451322
push str.SetDefaultPrinterA
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
jne 0x451152
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x451322
mov edx, dword [ebp + 8]
push edx
call eax
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeLibrary
test esi, esi
jne 0x4512e1
xor eax, eax
jmp 0x451322
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.WINSPOOL.DRV_OpenPrinterA
mov esi, eax
test esi, esi
je 0x451192
cmp dword [ebp - 8], 0
jne 0x451199
xor eax, eax
jmp 0x451322
push 0
call sub.KERNEL32.DLL_SetLastError
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x4511d9
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x4511c9
cmp dword [ebp - 4], 0
jne 0x4511d9
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x451322
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x4511fa
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x451322
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 4]
push ecx
push ebx
push 2
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
je 0x451220
cmp dword [ebx + 0x10], 0
je 0x451220
cmp dword [ebx + 0xc], 0
jne 0x451236
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x451322
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
mov edx, dword [ebx + 0xc]
push edx
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
add esi, 3
push esi
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov edi, eax
test edi, edi
jne 0x45127e
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x451322
mov edx, dword [ebp + 8]
push edx
push edi
call sub.KERNEL32.DLL_lstrcpyA
push 0x6429b8
push edi
call sub.KERNEL32.DLL_lstrcatA
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call sub.KERNEL32.DLL_lstrcatA
push 0x6429b8
push edi
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebx + 0xc]
push eax
push edi
call sub.KERNEL32.DLL_lstrcatA
push edi
push str.device
push str.windows
call sub.KERNEL32.DLL_WriteProfileStringA
mov esi, eax
test esi, esi
jne 0x4512e1
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
push edi
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x451322
push 0
push 0x3e8
push 0
push 0
push 0
push 0x1a
push 0xffff
call sub.USER32.DLL_SendMessageTimeoutA
cmp dword [ebp - 8], 0
je 0x451309
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x451313
push ebx
call sub.KERNEL32.DLL_GlobalFree
test edi, edi
je 0x45131d
push edi
call sub.KERNEL32.DLL_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret