Function at 0x41d260
Capabilities:
Check os version

Disassembly:
sub esp, 0x6b4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0044bde0
test eax, eax
je 0x41d30c
push 0
lea eax, [esp + 0xb8]
push str.CInf_::_SetupForDecoration_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1b4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1b4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x1b4]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
push ecx
mov dword [esp + 0x18], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41d4ea
cmp dword [esp + 0x18], 5
jb 0x41d4ea
lea edx, [esp + 0x4bc]
mov ecx, ebp
push edx
call fcn.0041d010
test eax, eax
jne 0x41d35f
mov byte [esp + 0x4bc], al
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xae]
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x4c8]
push eax
push ecx
lea edx, [esp + 0x5d4]
push str.NT_s._d._d._d._d
push edx
call fcn.00471c30
add esp, 0x1c
call fcn.0044bde0
test eax, eax
je 0x41d3db
lea eax, [esp + 0x5c0]
lea ecx, [esp + 0xb4]
push eax
push str.Possible_szDecoration___s_n
push ecx
call fcn.00471c30
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov ecx, dword [esp + 0x6c8]
xor ebp, ebp
push ebp
lea eax, [esp + 0x3bc]
push 0x104
push eax
push 2
push ecx
mov ebx, 3
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
je 0x41d4e6
lea edi, [esp + 0x3b8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2b4]
push ecx
call fcn.00472ac0
lea edx, [esp + 0x2b8]
lea eax, [esp + 0x5c4]
push edx
push eax
call fcn.004724d0
add esp, 0xc
test eax, eax
je 0x41d4b7
lea edi, [esp + 0x2b4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jae 0x41d4b7
lea edi, [esp + 0x3b8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x6cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov edx, dword [esp + 0x6c8]
push 0
lea ecx, [esp + 0x3bc]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call fcn.0040d9c0
mov ecx, eax
call fcn.0040e240
test eax, eax
jne 0x41d40e
mov ebx, dword [esp + 0x10]
call fcn.0044bde0
test eax, eax
je 0x41d590
mov eax, dword [esp + 0x6cc]
lea ecx, [esp + 0xb4]
push eax
push str.CInf_::_SetupForDecoration_:_pszDecoration___s_n
push ecx
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1b4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1b4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1b4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6b4
ret 8