Function at 0x44e5f0
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 0x44e62e
xor eax, eax
jmp 0x44e968
mov edx, dword [ebp - 0x90]
cmp edx, 1
jne 0x44e741
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 0x44e659
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44e660
xor eax, eax
jmp 0x44e968
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 0x44e6a1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44e691
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44e6a1
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44e968
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44e6c2
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44e968
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 0x44e6f2
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44e968
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 0x44e720
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44e968
push 0
push 0x3e8
push 0
push 0x5ecd23
push 0
push 0x1a
push 0xffff
call sub.USER32.dll_SendMessageTimeoutA
jmp 0x44e93f
mov edx, dword [ebp - 0x90]
cmp edx, 2
jne 0x44e93f
mov ecx, dword [ebp - 0x9c]
cmp ecx, 5
jb 0x44e7b8
push 0x5ecd2b
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44e776
xor eax, eax
jmp 0x44e968
push 0x5ecd38
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x44e798
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x44e968
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 0x44e926
xor eax, eax
jmp 0x44e968
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 0x44e7d4
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44e7db
xor eax, eax
jmp 0x44e968
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 0x44e81c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44e80c
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44e81c
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44e968
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44e83d
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44e968
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 0x44e865
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x44e865
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x44e87b
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44e968
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 0x44e8c3
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44e968
mov edx, dword [ebp + 8]
push edx
push edi
call sub.KERNEL32.dll_lstrcpyA
push 0x5ecd4b
push edi
call sub.KERNEL32.dll_lstrcatA
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_lstrcatA
push 0x5ecd4d
push edi
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [ebx + 0xc]
push eax
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
push 0x5ecd57
push 0x5ecd4f
call sub.KERNEL32.dll_WriteProfileStringA
mov esi, eax
test esi, esi
jne 0x44e926
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 0x44e968
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 0x44e94f
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x44e959
push ebx
call sub.KERNEL32.dll_GlobalFree
test edi, edi
je 0x44e963
push edi
call sub.KERNEL32.dll_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret