Function at 0x406ce0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x432572
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd0]
mov ebx, ecx
push edi
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x50], al
call fcn.00403d30
mov edi, 0x443a8c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x443a8c
lea ecx, [esp + 0x54]
call fcn.004048f0
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd0], 0
call fcn.00403d30
push str.___r_n________r_n__
lea ecx, [esp + 0x70]
mov byte [esp + 0xd0], 1
call fcn.004010b0
push str.__.__
lea ecx, [esp + 0x88]
mov byte [esp + 0xd0], 2
call fcn.004010b0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 3
mov byte [esp + 0x30], dl
call fcn.00403d30
mov eax, dword [esp + 0xd8]
mov byte [esp + 0xcc], 4
lea ebp, [esi + eax]
cmp esi, ebp
mov dword [esp + 0x3c], ebp
jae 0x407087
lea ecx, [esp + 0x2c]
call fcn.00403b90
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
call fcn.00403720
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00403630
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, esi
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
inc esi
cmp al, 0xa
mov dword [esp + 0x14], esi
je 0x406e10
mov eax, esi
sub eax, edx
cmp eax, ecx
jge 0x406e0c
mov al, byte [esi]
inc esi
cmp al, 0xa
jne 0x406dfd
mov dword [esp + 0x14], esi
mov eax, esi
xor edi, edi
sub eax, edx
cmp eax, 1
jle 0x406e33
cmp byte [esi - 2], 0xd
jne 0x406e26
lea edi, [eax - 2]
jmp 0x406e33
mov cl, byte [esi - 1]
lea edi, [eax - 1]
cmp cl, 0xa
je 0x406e33
mov edi, eax
push edi
push edx
lea ecx, [esp + 0x34]
call fcn.00403570
test edi, edi
jl 0x407087
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406e53
mov eax, 0x43464c
push eax
lea ecx, [esp + 0x88]
call fcn.00401390
test eax, eax
je 0x406eae
lea ecx, [esp + 0x44]
push 1
push ecx
lea ecx, [esp + 0x8c]
call fcn.004013f0
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xcc], 5
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.004048f0
lea ecx, [esp + 0x44]
mov byte [esp + 0xcc], 4
call fcn.00426adb
jmp 0x40707f
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406ebb
mov eax, 0x43464c
push eax
lea ecx, [esp + 0x70]
call fcn.00401390
test eax, eax
je 0x40707f
mov edx, dword [0x434648]
lea eax, [esp + 0x4c]
push edx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00403970
mov edi, 0x43f16c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43f16c
lea ecx, [esp + 0x20]
call fcn.00403570
lea ecx, [esp + 0x48]
push 1
push ecx
lea ecx, [esp + 0x74]
call fcn.004013f0
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xcc], 6
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00403570
lea ecx, [esp + 0x48]
mov byte [esp + 0xcc], 4
call fcn.00426adb
lea ecx, [esp + 0x18]
call fcn.00403b90
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x406f59
xor edi, edi
jmp 0x406f60
mov edx, dword [esp + 0x20]
lea edi, [edx + eax]
lea ecx, [esp + 0x18]
call fcn.00403b90
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x406f84
movsx eax, byte [esi]
push eax
call fcn.00413a2d
add esp, 4
mov byte [esi], al
inc esi
cmp esi, edi
jne 0x406f71
lea ecx, [esp + 0x40]
push 2
push ecx
lea ecx, [esp + 0x74]
call fcn.004013f0
mov dl, byte [esp + 0x13]
mov esi, dword [eax]
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 7
mov byte [esp + 0x60], dl
call fcn.00403d30
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 8
call fcn.00404480
lea edx, [esp + 0x9c]
push eax
push edx
lea ecx, [ebx + 4]
mov byte [esp + 0xd4], 9
call fcn.00403d80
mov ebp, dword [eax]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 8
call fcn.00403900
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 7
call fcn.00403d30
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00403c10
test al, al
je 0x40704b
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00403b70
lea ecx, [esp + 0x40]
mov byte [esp + 0xcc], 4
call fcn.00426adb
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
add ecx, 0x24
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00408680
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
cmp esi, ebp
jb 0x406dc3
mov esi, dword [ebx + 0x10]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 3
call fcn.00403d30
lea ecx, [esp + 0x84]
mov byte [esp + 0xcc], 2
call fcn.00401350
lea ecx, [esp + 0x6c]
mov byte [esp + 0xcc], 1
call fcn.00401350
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 0
call fcn.00403d30
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4070f9
mov al, byte [ecx - 1]
test al, al
je 0x4070ef
cmp al, 0xff
je 0x4070ef
dec al
mov byte [ecx - 1], al
jmp 0x4070f9
dec ecx
push ecx
call fcn.00426fbb
add esp, 4
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 8