Function at 0x44b768
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 0x44b875
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 0x44b7de
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x44b7e5
xor eax, eax
jmp 0x44b9a4
mov edx, dword [ebp - 0xc]
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x44b7fd
xor eax, eax
jmp 0x44b9a4
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 0x44b82c
push ebx
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x44b9a4
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.dll_lstrlenA
mov ecx, dword [esi]
cmp eax, ecx
jb 0x44b854
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 0x44b9a4
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 0x44b96d
mov edx, dword [ebp - 0x94]
cmp edx, 2
jne 0x44b96d
mov ecx, dword [ebp - 0xa0]
cmp ecx, 5
jb 0x44b8e7
push 0x5d3602
call sub.KERNEL32.dll_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x44b8a6
xor eax, eax
jmp 0x44b9a4
push 0x5d360f
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x44b8c2
push edi
call sub.KERNEL32.dll_FreeLibrary
xor eax, eax
jmp 0x44b9a4
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 0x44b96d
xor eax, eax
jmp 0x44b9a4
push 0xfa
lea edx, [ebp - 0x1a0]
push edx
push 0x5d3631
push 0x5d362a
push 0x5d3622
call sub.KERNEL32.dll_GetProfileStringA
test eax, eax
ja 0x44b912
xor eax, eax
jmp 0x44b9a4
push 0x5d3635
lea edx, [ebp - 0x1a0]
push edx
call fcn.004ce34c
add esp, 8
lea ecx, [ebp - 0x1a0]
push ecx
call sub.KERNEL32.dll_lstrlenA
mov edx, dword [esi]
cmp eax, edx
jb 0x44b94b
lea eax, [ebp - 0x1a0]
push eax
call sub.KERNEL32.dll_lstrlenA
inc eax
mov dword [esi], eax
xor eax, eax
jmp 0x44b9a4
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 0x44b977
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