Function at 0x5105cc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
test dl, dl
je 0x51060a
add esp, 0xfffffff0
call fcn.00403c98
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x51093a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403904
mov byte [ebx + 0x1b0], 0
mov byte [ebx + 0x1b2], 0
mov byte [ebx + 0x1b1], 0
xor eax, eax
mov dword [ebx + 0x1ac], eax
mov dword [ebx + 0x1a8], 1
mov dl, 1
mov eax, dword [0x5074f8]
call fcn.0050fb00
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov esi, eax
mov dword [ebx + 0x54], esi
mov eax, esi
mov dl, 1
call fcn.0041db5c
mov eax, dword [ebx + 0x54]
mov byte [eax + 0x1d], 0
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov dword [ebx + 0x1b4], eax
push 0x51096c
lea edx, [ebp - 0xa4]
mov eax, 0x56fbf0
call fcn.0049c170
push dword [ebp - 0xa4]
push 0x51097c
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00404ab8
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebx + 0x1b4]
call fcn.00503668
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov dword [ebx + 0x1b8], eax
push 0x51096c
lea edx, [ebp - 0xac]
mov eax, 0x56fc50
call fcn.0049c170
push dword [ebp - 0xac]
push 0x51097c
lea eax, [ebp - 0xa8]
mov edx, 3
call fcn.00404ab8
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebx + 0x1b8]
call fcn.00503668
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov dword [ebx + 0x1bc], eax
mov eax, dword [ebx + 0x1b4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x51079a
inc esi
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xb4]
mov eax, dword [ebx + 0x1b4]
mov edx, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.00408b30
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebx + 0x1bc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec esi
jne 0x51075e
mov dl, 1
mov eax, dword [0x5074f8]
call fcn.0050fb00
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x9c]
mov edx, 0x94
call fcn.00407910
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x510818
cmp dword [ebp - 0x98], 6
sete al
mov byte [ebx + 0x1b0], al
cmp dword [ebp - 0x98], 5
jne 0x5107f8
mov eax, dword [ebp - 0x94]
dec eax
sub eax, 2
jb 0x5107fc
xor eax, eax
jmp 0x5107fe
mov al, 1
mov byte [ebx + 0x1b2], al
cmp byte [ebx + 0x1b0], 0
je 0x510818
call fcn.0050c4d8
mov byte [ebx + 0x1b1], al
mov byte [ebx + 0x44], 1
mov byte [ebx + 0x45], 0
lea eax, [ebx + 0x44]
push eax
lea eax, [ebx + 0x45]
push eax
xor ecx, ecx
mov dl, 1
mov eax, ebx
call fcn.00509784
mov eax, ebx
call fcn.005111c4
call fcn.0050dcac
xor esi, esi
lea edi, [esi + esi*2]
xor eax, eax
mov dword [ebx + edi*4 + 0xc], eax
lea eax, [ebx + edi*4 + 8]
call fcn.00404724
mov eax, esi
cmp eax, 4
ja case.default.0x51085a
jmp dword [eax*4 + 0x510861]
lea eax, [ebx + edi*4 + 4]
mov edx, 0x510990
call fcn.00404778
jmp case.default.0x51085a
lea eax, [ebx + edi*4 + 4]
mov edx, 0x5109a4
call fcn.00404778
jmp case.default.0x51085a
lea eax, [ebx + edi*4 + 4]
mov edx, 0x5109b8
call fcn.00404778
jmp case.default.0x51085a
lea eax, [ebx + edi*4 + 4]
mov edx, 0x5109cc
call fcn.00404778
jmp case.default.0x51085a
lea eax, [ebx + edi*4 + 4]
call fcn.00404724
inc esi
cmp esi, 5
jne 0x510841
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5078ec]
call fcn.0045e864
mov esi, eax
mov dword [ebx + 0x58], esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebx + 0x58]
mov dword [eax + 0xc], ebx
push ebx
xor ecx, ecx
mov dl, 1
mov eax, dword [0x50744c]
call fcn.0050e168
mov dword [ebx + 0x4c], eax
mov ecx, ebx
mov edx, 2
xor eax, eax
call fcn.0050fc84
test al, al
je 0x51091c
push 0xf3d4e
call dword [0x571d9c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510941
lea eax, [ebp - 0xb4]
mov edx, 6
call fcn.00404748
ret