Function at 0x44b9ac
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 0x44b9ea
xor eax, eax
jmp 0x44bd24
mov edx, dword [ebp - 0x90]
cmp edx, 1
jne 0x44bafd
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 0x44ba15
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44ba1c
xor eax, eax
jmp 0x44bd24
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 0x44ba5d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44ba4d
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44ba5d
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44bd24
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44ba7e
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44bd24
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 0x44baae
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44bd24
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 0x44badc
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44bd24
push 0
push 0x3e8
push 0
push 0x5d3637
push 0
push 0x1a
push 0xffff
call sub.USER32.dll_SendMessageTimeoutA
jmp 0x44bcfb
mov edx, dword [ebp - 0x90]
cmp edx, 2
jne 0x44bcfb
mov ecx, dword [ebp - 0x9c]
cmp ecx, 5
jb 0x44bb74
push 0x5d363f
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44bb32
xor eax, eax
jmp 0x44bd24
push 0x5d364c
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x44bb54
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x44bd24
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 0x44bce2
xor eax, eax
jmp 0x44bd24
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 0x44bb90
mov eax, dword [ebp - 8]
test eax, eax
jne 0x44bb97
xor eax, eax
jmp 0x44bd24
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 0x44bbd8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44bbc8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44bbd8
mov edx, dword [ebp - 8]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44bd24
mov edx, dword [ebp - 4]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44bbf9
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
xor eax, eax
jmp 0x44bd24
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 0x44bc21
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x44bc21
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x44bc37
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44bd24
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 0x44bc7f
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44bd24
mov edx, dword [ebp + 8]
push edx
push edi
call sub.KERNEL32.dll_lstrcpyA
push 0x5d365f
push edi
call sub.KERNEL32.dll_lstrcatA
mov ecx, dword [ebx + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_lstrcatA
push 0x5d3661
push edi
call sub.KERNEL32.dll_lstrcatA
mov eax, dword [ebx + 0xc]
push eax
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
push 0x5d366b
push 0x5d3663
call sub.KERNEL32.dll_WriteProfileStringA
mov esi, eax
test esi, esi
jne 0x44bce2
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 0x44bd24
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 0x44bd0b
mov ecx, dword [ebp - 8]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
test ebx, ebx
je 0x44bd15
push ebx
call sub.KERNEL32.dll_GlobalFree
test edi, edi
je 0x44bd1f
push edi
call sub.KERNEL32.dll_GlobalFree
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret