Function at 0x44b238
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd60
xor eax, eax
lea ecx, [ebp - 0xa4]
push ebx
push esi
push edi
mov dword [ebp - 4], pe_nt_image_headers32
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xa4], 0x94
push ecx
lea esi, [ebp - 4]
call sub.KERNEL32.dll_GetVersionExA
mov eax, dword [ebp - 0x94]
cmp eax, 1
jne 0x44b345
push 0
call sub.KERNEL32.dll_SetLastError
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push edx
push ecx
push 0
push 0
push 2
push 0
push 1
call sub.WINSPOOL.DRV_EnumPrintersA
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44b2ae
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44b2b5
xor eax, eax
jmp 0x44b474
mov edx, dword [ebp - 0xc]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44b2cd
xor eax, eax
jmp 0x44b474
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xc]
push edx
push ecx
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 2
push 0
push 1
call sub.WINSPOOL.DRV_EnumPrintersA
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x44b2fc
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b474
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.dll_lstrlenA
mov ecx, dword [esi]
cmp eax, ecx
jb 0x44b324
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.dll_lstrlenA
inc eax
mov dword [esi], eax
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b474
mov edx, dword [ebx + 4]
push edx
lea ecx, [ebp - 0x2a0]
push ecx
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.dll_lstrlenA
inc eax
mov dword [esi], eax
jmp 0x44b43d
mov edx, dword [ebp - 0x94]
cmp edx, 2
jne 0x44b43d
mov ecx, dword [ebp - 0xa0]
cmp ecx, 5
jb 0x44b3b7
push 0x5d1fe0
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x44b376
xor eax, eax
jmp 0x44b474
push 0x5d1fed
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x44b392
push edi
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x44b474
push esi
lea edx, [ebp - 0x2a0]
push edx
call eax
mov dword [ebp - 8], eax
push edi
call sub.KERNEL32.dll_FreeLibrary
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x44b43d
xor eax, eax
jmp 0x44b474
push 0xfa
lea edx, [ebp - 0x1a0]
push edx
push 0x5d200f
push 0x5d2008
push 0x5d2000
call sub.KERNEL32.dll_GetProfileStringA
test eax, eax
ja 0x44b3e2
xor eax, eax
jmp 0x44b474
push 0x5d2013
lea edx, [ebp - 0x1a0]
push edx
call fcn.004cd744
add esp, 8
lea ecx, [ebp - 0x1a0]
push ecx
call sub.KERNEL32.dll_lstrlenA
mov edx, dword [esi]
cmp eax, edx
jb 0x44b41b
lea eax, [ebp - 0x1a0]
push eax
call sub.KERNEL32.dll_lstrlenA
inc eax
mov dword [esi], eax
xor eax, eax
jmp 0x44b474
lea edx, [ebp - 0x1a0]
push edx
lea ecx, [ebp - 0x2a0]
push ecx
call sub.KERNEL32.dll_lstrcpyA
lea eax, [ebp - 0x1a0]
push eax
call sub.KERNEL32.dll_lstrlenA
inc eax
mov dword [esi], eax
test ebx, ebx
je 0x44b447
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
lea edi, [ebp - 0x2a0]
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret