Function at 0x462cd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1b8], 0x94
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
cmp dword [ebp - 0x1a8], 1
jne 0x462e20
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push 0
push 1
call sub.WINSPOOL.DRV_EnumPrintersA
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x462d63
cmp dword [ebp - 4], 0
jne 0x462d6a
xor eax, eax
jmp 0x462f3f
mov ecx, dword [ebp - 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x462d86
xor eax, eax
jmp 0x462f3f
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 2
push 0
push 1
call sub.WINSPOOL.DRV_EnumPrintersA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x462dbb
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x462f3f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jb 0x462df5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x462f3f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x462f2a
cmp dword [ebp - 0x1a8], 2
jne 0x462f2a
cmp dword [ebp - 0x1b4], 5
jb 0x462e58
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WINSPOOL.DRV_Ordinal_201
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x462e53
xor eax, eax
jmp 0x462f3f
jmp 0x462f2a
push 0xfa
lea edx, [ebp - 0x120]
push edx
push 0x4c8758
push 0x4c875c
push 0x4c8764
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
ja 0x462e84
xor eax, eax
jmp 0x462f3f
push 0x4c876c
lea eax, [ebp - 0x120]
push eax
call fcn.00464060
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
jb 0x462ec8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x462f3f
cmp dword [ebp - 0x10], 0
je 0x462edc
lea edx, [ebp - 0x120]
mov dword [ebp - 0x1bc], edx
jmp 0x462ee6
mov dword [ebp - 0x1bc], 0x4c874d
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x10], 0
je 0x462f15
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1c0], eax
jmp 0x462f1f
mov dword [ebp - 0x1c0], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c0]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
je 0x462f3a
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret