Function at 0x40bdce
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x4140c0]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push 0x1f
pop ecx
xor ebx, ebx
mov byte [ebp - 0x254], bl
lea edi, [ebp - 0x253]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x2d4], bl
lea edi, [ebp - 0x2d3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x1d4], bl
lea edi, [ebp - 0x1d3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x704]
push eax
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x704], ebx
call fcn.0040d2f0
push 0x41
mov esi, eax
pop ecx
xor eax, eax
mov byte [ebp - 0x154], bl
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x154]
push 0x402868
push eax
call fcn.0040d7e8
lea eax, [ebp - 0x154]
push eax
call fcn.004048a0
add esp, 0x10
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040af3a
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x154]
push 0x402860
push eax
call fcn.0040d7e8
lea eax, [ebp - 0x154]
push eax
call fcn.004048a0
add esp, 0x10
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040af3a
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x154]
push 0x402858
push eax
call fcn.0040d7e8
lea eax, [ebp - 0x154]
push eax
call fcn.004048a0
add esp, 0x10
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040af3a
cmp esi, 9
ja case.0x40b90f.597
movzx eax, byte [esi + 0x40bdc4]
jmp dword [eax*4 + 0x40bdb0]
mov eax, dword [0x414e94]
cmp eax, ebx
jne 0x40b956
push 0x661
push 0x10
push 0xa
push 0x2b
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x78c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x78c]
jmp 0x40bdaa
cmp eax, 1
jne case.0x40b90f.601
push 0x661
push 0x10
push 0xa
push 0x2c
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x84c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x84c]
jmp 0x40bdaa
cmp dword [0x414e94], 1
jne case.0x40b90f.601
push 0x661
push 0x10
push 0xa
push 0x2c
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x88c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x88c]
jmp 0x40bdaa
cmp dword [0x414e94], 1
jne 0x40ba1a
push 0x661
push 0x10
push 0xa
push 0x2c
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x7ec]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x7ec]
jmp 0x40bdaa
call fcn.0040b048
test eax, eax
je 0x40ba5a
push 0x661
push 0x10
push 0xa
push 4
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x86c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x86c]
jmp 0x40bdaa
lea eax, [ebp - 0x1d4]
push 0x20
push eax
call fcn.0040da80
cmp eax, ebx
pop ecx
pop ecx
je 0x40bbef
inc eax
push eax
call fcn.0040de25
fcom qword [0x402850]
pop ecx
fnstsw ax
test ah, 0x41
je 0x40bc26
fcomp qword [0x402850]
fnstsw ax
test ah, 5
jp 0x40bacf
push 0x661
push 0x10
push 0xa
push 0x14
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x76c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x76c]
jmp 0x40bdaa
lea eax, [ebp - 0x6dc]
push eax
push 0x20019
push ebx
push 0x40217c
push 0x80000002
mov dword [ebp - 0x6dc], ebx
mov dword [ebp - 0x70c], 4
mov dword [ebp - 0x6e0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bbb8
lea eax, [ebp - 0x70c]
push eax
lea eax, [ebp - 0x6e0]
push eax
push ebx
push ebx
push 0x4021b8
push dword [ebp - 0x6dc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x6dc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40bb74
push 0x661
push 0x10
push 0xa
push 0x14
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x7cc]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x7cc]
jmp 0x40bdaa
cmp dword [ebp - 0x6e0], 1
je case.0x40b90f.601
push 0x661
push 0x10
push 0xa
push 0x14
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x80c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x80c]
jmp 0x40bdaa
push 0x661
push 0x10
push 0xa
push 0x14
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x74c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x74c]
jmp 0x40bdaa
push 0x661
push 0x10
push 0xa
push 0x14
lea ecx, [ebp - 0x700]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x700]
lea edi, [ebp - 0x72c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x72c]
jmp 0x40bdaa
fstp st(0)
xor eax, eax
mov byte [ebp - 0x6d4], bl
mov ecx, 0xff
lea edi, [ebp - 0x6d3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
mov esi, 0x402828
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x23
lea eax, [ebp - 0x4c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040af3a
mov esi, 0x4021f4
push esi
push 0x402818
call fcn.0040b2c0
lea eax, [ebp - 0x6d8]
push eax
push 1
push ebx
push 0x4021c4
push 0x80000002
mov dword [ebp - 0x6d8], ebx
mov dword [ebp - 0x708], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd2a
lea eax, [ebp - 0x708]
push eax
lea eax, [ebp - 0x6d4]
push eax
push ebx
push ebx
push 0x4021ec
push dword [ebp - 0x6d8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x6d8]
je 0x40bcd0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bd2a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6d4]
push eax
lea eax, [ebp - 0x154]
push 0x4027f4
push eax
call fcn.0040d7e8
lea eax, [ebp - 0x154]
push eax
call fcn.004048a0
add esp, 0x10
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.0040af3a
push esi
lea eax, [ebp - 0x6d4]
push eax
call fcn.0040d691
test eax, eax
jge 0x40bd4e
push 0x401421
push 0x4027d0
call fcn.0040b2c0
push 0x661
push 0x10
push 0xa
push 0x13
lea ecx, [ebp - 0x72c]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x72c]
jmp 0x40bbd7
push 8
pop ecx
mov esi, 0x4027ac
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x23
lea eax, [ebp - 0x28]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040af3a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.00404d66
leave
ret
push 0x661
push 0x10
push 0xa
push 8
lea ecx, [ebp - 0x7ac]
call fcn.0040a0ba
push 8
pop ecx
lea esi, [ebp - 0x7ac]
lea edi, [ebp - 0x82c]
rep movsd dword es:[edi], dword [esi]
push 0x4122b4
lea eax, [ebp - 0x82c]
push eax
call fcn.00404e83
push ss
mov ecx, -1181351872
inc eax
add dl, bl
mov ecx, 0xbc280040
inc eax
add byte [eax - 0x43], bh
inc eax
add byte [eax], al
add al, 1
add dword [edx], eax
add eax, dword [ecx]
add dword [ebx], eax
add edx, dword [ebp - 117]
push ebp
mov ebp, esp
sub esp, 0xd8
cmp byte [ebp + 8], 0
mov eax, dword [0x4140c0]
mov dword [ebp - 4], eax
jne 0x40be1a
call fcn.0040a1bf
lea ecx, [ebp - 0xb8]
mov dword [ebp + 8], eax
call fcn.0040a0a9
lea eax, [ebp + 8]
push eax
push 0
push 0x34
push 7
lea ecx, [ebp - 0xb8]
call fcn.0040a194
lea ecx, [ebp - 0xb8]
call fcn.0040a355
jmp 0x40be1d
push 6
pop eax
cmp eax, 6
push esi
je 0x40be5b
push 0x642
push 0x30
push 0xa
push 0xe
lea ecx, [ebp - 0xb8]
call fcn.0040a0ba
push 8
pop ecx
push 0x4122b4
lea eax, [ebp - 0xd8]
lea esi, [ebp - 0xb8]
lea edi, [ebp - 0xd8]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00404e83
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x401421
push 0x4028c8
call fcn.0040b2c0
cmp dword [ebp - 0x88], 2
mov esi, 0x4022b0
je 0x40be94
mov esi, 0x402288
push esi
push 0x4028bc
call fcn.0040b2c0
push esi
call fcn.0040a9f7
mov esi, eax
push esi
push 0x402890
call fcn.0040b30a
push esi
push 0x402870
call fcn.0040b30a
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.00404d66
leave
ret 4