Function at 0x44b47c
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
mov edx, dword [ebp + 8]
test edx, edx
jne 0x44b4ba
xor eax, eax
jmp 0x44b7f4
mov edx, dword [ebp - 0x90]
cmp edx, 1
jne 0x44b5cd
push 0
lea ecx, [ebp - 8]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
mov esi, eax
test esi, esi
je 0x44b4e5
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44b4ec
xor eax, eax
jmp 0x44b7f4
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 0x44b52d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44b51d
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44b52d
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44b7f4
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44b54e
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44b7f4
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 0x44b57e
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b7f4
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 0x44b5ac
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b7f4
push 0
push 0x3e8
push 0
push 0x5d2015
push 0
push 0x1a
push 0xffff
call sub.USER32.dll_SendMessageTimeoutA
jmp 0x44b7cb
mov edx, dword [ebp - 0x90]
cmp edx, 2
jne 0x44b7cb
mov ecx, dword [ebp - 0x9c]
cmp ecx, 5
jb 0x44b644
push 0x5d201d
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44b602
xor eax, eax
jmp 0x44b7f4
push 0x5d202a
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x44b624
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x44b7f4
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 0x44b7b2
xor eax, eax
jmp 0x44b7f4
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 0x44b660
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44b667
xor eax, eax
jmp 0x44b7f4
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 0x44b6a8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44b698
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44b6a8
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44b7f4
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44b6c9
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44b7f4
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 0x44b6f1
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x44b6f1
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x44b707
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b7f4
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 0x44b74f
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b7f4
mov edx, dword [ebp + 8]
push edx
push edi
call sub.KERNEL32.dll_lstrcpyA
push 0x5d203d
push edi
call sub.KERNEL32.dll_lstrcatA
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_lstrcatA
push 0x5d203f
push edi
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [ebx + 0xc]
push eax
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
push 0x5d2049
push 0x5d2041
call sub.KERNEL32.dll_WriteProfileStringA
mov esi, eax
test esi, esi
jne 0x44b7b2
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 0x44b7f4
push 0
push 0x3e8
push 0
push 0
push 0
push 0x1a
push 0xffff
call sub.USER32.dll_SendMessageTimeoutA
mov edx, dword [ebp - 8]
test edx, edx
je 0x44b7db
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x44b7e5
push ebx
call sub.KERNEL32.dll_GlobalFree
test edi, edi
je 0x44b7ef
push edi
call sub.KERNEL32.dll_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret