Function at 0x44c61b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp + 8], 0
jne 0x44c658
xor eax, eax
jmp 0x44c96a
cmp dword [ebp - 0x90], 1
jne 0x44c75d
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp + 8]
call sub.WINSPOOL.DRV_OpenPrinterA
mov esi, eax
test esi, esi
je 0x44c67f
cmp dword [ebp - 8], 0
jne 0x44c686
xor eax, eax
jmp 0x44c96a
push 0
call sub.KERNEL32.DLL_SetLastError
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push dword [ebp - 8]
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x44c6c4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x44c6b5
cmp dword [ebp - 4], 0
jne 0x44c6c4
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44c96a
push dword [ebp - 4]
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44c6e3
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44c96a
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 8]
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x44c710
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44c96a
or dword [ebx + 0x34], 4
push 0
push ebx
push 2
push dword [ebp - 8]
call sub.WINSPOOL.DRV_SetPrinterA
mov esi, eax
test esi, esi
jne 0x44c73c
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44c96a
push 0
push 0x3e8
push 0
push str.windows
push 0
push 0x1a
push 0xffff
call sub.USER32.DLL_SendMessageTimeoutA
jmp 0x44c943
cmp dword [ebp - 0x90], 2
jne 0x44c943
cmp dword [ebp - 0x9c], 5
jb 0x44c7d0
push str.winspool.drv
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44c78d
xor eax, eax
jmp 0x44c96a
push str.SetDefaultPrinterA
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
jne 0x44c7ad
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x44c96a
push dword [ebp + 8]
call eax
mov esi, eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_FreeLibrary
test esi, esi
jne 0x44c92a
xor eax, eax
jmp 0x44c96a
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp + 8]
call sub.WINSPOOL.DRV_OpenPrinterA
mov esi, eax
test esi, esi
je 0x44c7ea
cmp dword [ebp - 8], 0
jne 0x44c7f1
xor eax, eax
jmp 0x44c96a
push 0
call sub.KERNEL32.DLL_SetLastError
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push dword [ebp - 8]
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
jne 0x44c82f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x44c820
cmp dword [ebp - 4], 0
jne 0x44c82f
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44c96a
push dword [ebp - 4]
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44c84e
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44c96a
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 8]
call sub.WINSPOOL.DRV_GetPrinterA
mov esi, eax
test esi, esi
je 0x44c872
cmp dword [ebx + 0x10], 0
je 0x44c872
cmp dword [ebx + 0xc], 0
jne 0x44c887
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44c96a
push dword [ebp + 8]
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
push dword [ebx + 0x10]
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
push dword [ebx + 0xc]
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 0x44c8cb
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44c96a
push dword [ebp + 8]
push edi
call sub.KERNEL32.DLL_lstrcpyA
push 0x65b09c
push edi
call sub.KERNEL32.DLL_lstrcatA
push dword [ebx + 0x10]
push edi
call sub.KERNEL32.DLL_lstrcatA
push 0x65b09c
push edi
call sub.KERNEL32.DLL_lstrcatA
push dword [ebx + 0xc]
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 0x44c92a
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
push edi
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44c96a
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 0x44c951
push dword [ebp - 8]
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x44c95b
push ebx
call sub.KERNEL32.DLL_GlobalFree
test edi, edi
je 0x44c965
push edi
call sub.KERNEL32.DLL_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret