Function at 0x401850
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9524
call fcn.00404210
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x1130], bl
mov ecx, 0x20
lea edi, [esp + 0x1131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x20df
lea edi, [esp + 0x11b4]
rep stosd dword es:[edi], eax
mov byte [esp + 0x130], al
mov ecx, 0x3ff
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push 0x40e07c
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call fcn.00401ef0
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0xc], esi
je 0x401bf3
push 2
push ebx
push esi
call fcn.00403e10
add esp, 0xc
test eax, eax
push esi
jne 0x401b16
call fcn.00401560
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x40173a
push ebx
lea ecx, [edi - 4]
push ecx
push esi
call fcn.00403e10
add esp, 0xc
test eax, eax
push esi
jne 0x401b16
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.00403e00
add esp, 0x10
cmp eax, 1
jne 0x40173a
cmp dword [esp + 0x20], 0x70736b61
jne 0x40173a
push ebx
lea eax, [edi - 8]
push eax
push esi
call fcn.00403e10
add esp, 0xc
test eax, eax
push esi
jne 0x401b16
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.00403e00
add esp, 0x10
cmp eax, 1
jne 0x40173a
mov edx, dword [esp + 0x14]
imul edx, edx, 0x84
sub edi, edx
push ebx
sub edi, 8
push edi
push esi
call fcn.00403e10
add esp, 0xc
test eax, eax
push esi
jne 0x401b16
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x1138]
push 0x84
push ecx
call fcn.00403e00
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
je 0x40174f
push esi
call fcn.00403e40
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
dec ecx
test ecx, ecx
jl 0x401777
mov edx, ecx
imul edx, edx, 0x84
lea eax, [esp + edx + 0x11b0]
inc ecx
mov edx, dword [eax]
add edi, edx
adc ebx, 0
sub eax, 0x84
dec ecx
jne 0x401768
call fcn.00401f10
cmp ebx, edx
jl 0x40179b
jg 0x401786
cmp edi, eax
jbe 0x40179b
push esi
call fcn.00403e40
add esp, 4
mov eax, 0xd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, eax
imul ecx, ecx, 0x84
add ecx, 8
dec eax
test eax, eax
mov dword [esp + 0x24], eax
jl 0x4019ac
imul eax, eax, 0x84
lea eax, [esp + eax + 0x1130]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x80]
mov edi, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x18]
push 0
sub eax, ecx
push eax
push edi
mov dword [esp + 0x34], ecx
call fcn.00403e10
add esp, 0xc
test eax, eax
jne 0x401a23
test esi, esi
mov ecx, 0x40
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
je 0x40182f
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push eax
call esi
mov ebx, eax
add esp, 0x10
cmp ebx, 1
mov dword [esp + 0x1c], ebx
je 0x401989
test ebx, ebx
jne 0x401a38
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x40185f
mov ecx, dword [esp + 0x10]
push 0x40e080
push ecx
call fcn.00401ef0
mov edi, eax
add esp, 8
test edi, edi
je 0x401b11
jmp 0x401905
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401868
lea eax, [esp + 0x30]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401880
sub eax, edx
cmp byte [esp + eax + 0x30], 0x5c
je 0x4018bd
mov eax, 0x40e084
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401897
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4018a5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018c3
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4018d1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x30]
and ecx, 3
push 0x40e088
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00401ef0
mov edi, eax
add esp, 8
test edi, edi
je 0x401a0a
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x80]
test ebx, ebx
je 0x401963
cmp ebx, 0x1000
mov esi, ebx
jb 0x401922
mov esi, 0x1000
mov ecx, dword [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x138]
push esi
push edx
call fcn.00403e00
add esp, 0x10
cmp eax, 1
jne 0x401a51
push edi
push eax
lea eax, [esp + 0x138]
push esi
push eax
call fcn.00403e30
add esp, 0x10
cmp eax, 1
jne 0x401a58
sub ebx, esi
jne 0x401913
push edi
call fcn.00403e40
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x401989
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x38]
push edx
push eax
call dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
dec eax
sub edx, 0x84
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jge 0x4017c8
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
sub edx, ecx
test eax, eax
mov dword [esp + 0x18], edx
je 0x401bac
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4019e4
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0
push ecx
call eax
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x401a77
mov edx, dword [ebp + 0x14]
push 0x40e08c
push edx
call fcn.00401ef0
mov edi, eax
add esp, 8
test edi, edi
jne 0x401b2a
mov eax, dword [esp + 0xc]
push eax
call fcn.00403e40
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00403e40
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00403e40
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x401a5d
mov edx, dword [esp + 0xc]
push edx
call fcn.00403e40
push edi
call fcn.00403e40
add esp, 8
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401a80
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a91
sub eax, edx
cmp byte [esp + eax + 0x30], 0x5c
je 0x401ace
mov eax, 0x40e090
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401aa8
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401ab6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ad3
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401ae1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push 0x40e094
push ecx
call fcn.00401ef0
mov edi, eax
add esp, 8
test edi, edi
jne 0x401b2a
mov edx, dword [esp + 0xc]
push edx
call fcn.00403e40
add esp, 4
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
push 0
push 0
push eax
call fcn.00403e10
add esp, 0xc
test ebx, ebx
je 0x401b8b
cmp ebx, 0x1000
mov esi, ebx
jb 0x401b52
mov esi, 0x1000
mov ecx, dword [esp + 0xc]
push ecx
push 1
lea edx, [esp + 0x138]
push esi
push edx
call fcn.00403e00
add esp, 0x10
cmp eax, 1
push edi
jne 0x401bc2
push eax
lea eax, [esp + 0x138]
push esi
push eax
call fcn.00403e30
add esp, 0x10
cmp eax, 1
jne 0x401be0
sub ebx, esi
jne 0x401b43
push edi
call fcn.00403e40
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x401bac
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
push 2
push 0
push edx
call eax
add esp, 0x10
mov eax, dword [esp + 0xc]
push eax
call fcn.00403e40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403e40
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403e40
add esp, 8
mov eax, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00403e40
mov edx, dword [esp + 0x10]
push edx
call fcn.00403e40
add esp, 8
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret