Function at 0x44a1cc
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 0x44a209
xor eax, eax
jmp 0x44a53a
cmp dword [ebp - 0x90], 1
jne 0x44a318
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 0x44a231
cmp dword [ebp - 8], 0
jne 0x44a238
xor eax, eax
jmp 0x44a53a
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 0x44a278
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x44a268
cmp dword [ebp - 4], 0
jne 0x44a278
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44a53a
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44a299
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44a53a
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 0x44a2c9
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44a53a
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 0x44a2f7
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44a53a
push 0
push 0x3e8
push 0
push 0x593c0a
push 0
push 0x1a
push 0xffff
call sub.USER32.DLL_SendMessageTimeoutA
jmp 0x44a512
cmp dword [ebp - 0x90], 2
jne 0x44a512
cmp dword [ebp - 0x9c], 5
jb 0x44a38f
push str.winspool.drv
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44a348
xor eax, eax
jmp 0x44a53a
push str.SetDefaultPrinterA
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
jne 0x44a36a
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x44a53a
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 0x44a4f9
xor eax, eax
jmp 0x44a53a
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 0x44a3aa
cmp dword [ebp - 8], 0
jne 0x44a3b1
xor eax, eax
jmp 0x44a53a
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 0x44a3f1
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x44a3e1
cmp dword [ebp - 4], 0
jne 0x44a3f1
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44a53a
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44a412
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44a53a
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 0x44a438
cmp dword [ebx + 0x10], 0
je 0x44a438
cmp dword [ebx + 0xc], 0
jne 0x44a44e
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44a53a
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 0x44a496
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
jmp 0x44a53a
mov edx, dword [ebp + 8]
push edx
push edi
call sub.KERNEL32.DLL_lstrcpyA
push 0x593c2c
push edi
call sub.KERNEL32.DLL_lstrcatA
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call sub.KERNEL32.DLL_lstrcatA
push 0x593c2c
push edi
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebx + 0xc]
push eax
push edi
call sub.KERNEL32.DLL_lstrcatA
push edi
push 0x593c12
push 0x593c0a
call sub.KERNEL32.DLL_WriteProfileStringA
mov esi, eax
test esi, esi
jne 0x44a4f9
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 0x44a53a
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 0x44a521
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x44a52b
push ebx
call sub.KERNEL32.DLL_GlobalFree
test edi, edi
je 0x44a535
push edi
call sub.KERNEL32.DLL_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret