Function at 0x51dc84
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409cd8
xor eax, eax
push ebp
push 0x51e439
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x51dd1b
inc dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 8
jge 0x51dcdd
inc dword [ebp - 0x2c]
mov eax, dword [0x535a00]
mov dword [0x535864], eax
cmp dword [ebp - 0x2c], 8
jl 0x51dcca
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 5
jge 0x51dd05
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.00407638
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 5
jl 0x51dce8
mov eax, dword [0x5359e0]
imul dword [0x53587c]
mov dword [0x535974], eax
cmp dword [ebp - 0x28], 0
jl 0x51dcbc
mov eax, dword [0x535884]
mov dword [0x5359bc], eax
mov eax, dword [0x5359e0]
call fcn.004071f4
mov dword [0x5359e0], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0040a01c
imul eax, dword [0x5359d0], 0xf9
mov dword [0x535a48], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x535864]
mov dword [0x5358cc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.00518d74
mov eax, dword [ebp - 0x24]
sub eax, 0xe3
mov dword [ebp - 0x18], eax
mov eax, dword [0x5358a4]
mov dword [0x53592c], eax
mov eax, dword [0x53592c]
cmp eax, dword [0x5358cc]
jle 0x51dd93
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x535974]
call fcn.004071f4
mov dword [0x535974], eax
mov eax, dword [0x535974]
cmp eax, dword [0x5358cc]
jge 0x51ddbc
mov eax, dword [0x535a48]
sub eax, 0x24
mov dword [0x535a00], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5359d0]
call fcn.004f92d4
mov dword [0x535894], eax
xor eax, eax
push ebp
push 0x51e3a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5358ec]
add eax, dword [0x5358b4]
cmp eax, dword [0x5358b4]
jle 0x51de34
mov eax, dword [ebp - 0x24]
sub eax, 0x8d
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xe
jge 0x51de2a
inc dword [ebp - 0x10]
mov eax, dword [0x5359b4]
imul dword [0x5358e4]
mov dword [0x5359f8], eax
cmp dword [ebp - 0x10], 0xe
jl 0x51de11
mov eax, dword [0x5358a4]
mov dword [0x535a30], eax
mov eax, dword [0x535914]
mov edx, dword [0x535954]
call fcn.0040aba0
jne 0x51de59
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040abd8
mov eax, dword [0x53598c]
mov dword [0x5358ac], eax
mov eax, dword [0x53593c]
mov dword [0x5358b4], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004205e0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x51e458
call fcn.0040aa68
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
call fcn.004077c8
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xb
jge 0x51deb9
inc dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 0x51e468
call fcn.0040a01c
jmp 0x51deb9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x1c]
mov eax, 0x5359f8
call fcn.00503774
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x51def7
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add eax, 0xa4
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.0040762c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 3
jl 0x51ded8
mov eax, dword [0x53592c]
sub eax, dword [0x535a00]
mov edx, dword [0x535884]
sub edx, dword [0x535a00]
cmp eax, edx
jle 0x51df7a
mov eax, dword [0x5359e8]
add eax, 0xa0
mov dword [0x535984], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
cmp eax, 0x41
jge 0x51df7a
mov eax, 0xd
sub eax, dword [ebp - 0x20]
cmp eax, 0x99
jge 0x51df4d
mov eax, dword [0x5359d8]
sub eax, dword [0x5358bc]
mov dword [0x53585c], eax
jmp 0x51df7a
mov eax, dword [0x535884]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x53596c]
mov edx, dword [0x53598c]
mov eax, dword [0x535934]
call fcn.004f8e58
mov dword [0x535984], eax
imul eax, dword [0x5359bc], 0x97
mov dword [0x53596c], eax
mov eax, dword [0x53587c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [0x535944]
call fcn.00507164
mov dword [0x535944], eax
cmp dword [ebp - 0x30], 0
je 0x51e0d4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
sub eax, 0xc2
mov dword [ebp - 0x18], eax
mov eax, dword [0x5358cc]
mov dword [0x5358fc], eax
mov eax, dword [0x535884]
mov dword [0x53590c], eax
mov eax, dword [0x53590c]
cmp eax, dword [0x5358fc]
jle 0x51e086
mov eax, 2
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53597c]
add eax, dword [0x53587c]
mov edx, dword [0x5359ac]
add edx, dword [0x53597c]
cmp eax, edx
jge 0x51e050
mov eax, dword [0x5359b4]
add eax, dword [0x5359bc]
cmp eax, dword [0x5359bc]
jne 0x51e03e
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xb
jge 0x51e086
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xb
jl 0x51e033
jmp 0x51e086
mov eax, dword [0x53588c]
imul dword [0x53597c]
mov dword [0x5359bc], eax
jmp 0x51e086
mov eax, dword [0x5359d0]
mov dword [0x535a48], eax
mov eax, dword [0x53590c]
cmp eax, dword [0x535a48]
jge 0x51e07c
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040abd8
jmp 0x51e086
mov eax, dword [0x53586c]
mov dword [0x5358cc], eax
mov eax, dword [0x5358e4]
add eax, 0x42
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.0040762c
mov dword [0x5359e0], eax
mov eax, dword [0x5358dc]
sub eax, 0xa7
mov dword [0x535a48], eax
mov eax, dword [0x535914]
mov edx, 0x51e4b8
call fcn.0040aba0
jne 0x51e29f
mov eax, dword [0x5359d8]
add eax, 4
mov dword [0x5358c4], eax
jmp 0x51e29f
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 8
jge 0x51e140
inc dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [0x535874]
call fcn.004071f4
mov dword [0x535874], eax
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xe
jne 0x51e0e7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 0x535a48
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x53594c
mov edx, 0x5358d4
lea eax, [ebp - 0x14]
call fcn.004f9000
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
mov edx, 0x51e4e0
call fcn.0040a01c
mov eax, dword [0x53588c]
mov dword [0x53593c], eax
cmp dword [ebp - 0x28], 8
jl 0x51e0df
mov eax, dword [0x5359d8]
add eax, 0xfb
mov dword [0x5359c4], eax
mov eax, 0x5f
sub eax, dword [0x5359d0]
mov dword [0x535a30], eax
mov ecx, dword [0x535a48]
mov edx, dword [0x535944]
mov eax, dword [0x5358f4]
call fcn.00518d74
mov eax, dword [0x535964]
sub eax, dword [0x535a00]
mov dword [0x535894], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x5359ac]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x535944]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x5359e8]
mov eax, dword [ebp - 0x28]
call fcn.00507164
mov dword [0x5358fc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add eax, 0x8b
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov edx, 0x51e508
call fcn.0040aba0
jne 0x51e218
mov eax, dword [0x5359e0]
call fcn.004071f4
mov dword [0x5359e0], eax
mov eax, dword [0x5359e8]
mov dword [0x5359f8], eax
mov eax, dword [0x5359e0]
cmp eax, dword [0x5359f8]
jge 0x51e20f
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [0x53597c]
mov dword [0x53586c], eax
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 2
jne 0x51e1fa
jmp 0x51e218
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x53592c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x5358dc]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [0x5359b4]
mov eax, dword [ebp - 0x1c]
call fcn.00507164
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x20]
jne 0x51e272
mov eax, dword [0x5359b4]
add eax, 4
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.00407638
mov dword [0x5359d8], eax
mov eax, dword [0x5359ac]
imul dword [0x53598c]
mov dword [0x535a40], eax
jmp 0x51e281
mov eax, dword [0x53587c]
call fcn.004071f4
mov dword [0x53587c], eax
mov eax, dword [0x5359e8]
sub eax, 0xad
mov dword [0x5358d4], eax
imul eax, dword [0x535a40], 0xac
mov dword [0x535934], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 8
jge 0x51e337
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, 0x51e528
call fcn.0040aba0
jne 0x51e2e0
mov eax, dword [0x5359bc]
mov dword [0x53586c], eax
mov eax, 0xe0
sub eax, dword [ebp - 0x18]
cmp eax, 0x6a
jge 0x51e2e0
mov eax, dword [ebp - 0x28]
sub eax, 0x3d
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0040a01c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53594c]
sub eax, dword [0x5359c4]
cmp eax, 0xf
jge 0x51e313
mov eax, dword [0x535a48]
add eax, 5
mov dword [0x5359d0], eax
jmp 0x51e32d
mov eax, dword [0x53590c]
add eax, 0x9b
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.0040762c
mov dword [0x535864], eax
cmp dword [ebp - 0x2c], 8
jl 0x51e2ae
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x53593c]
push eax
mov eax, dword [0x535a38]
push eax
mov eax, dword [0x535984]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x5358ec]
mov eax, dword [0x53585c]
call fcn.00501af4
mov dword [0x53588c], eax
mov eax, dword [0x53586c]
add eax, 0x30
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
call fcn.0040762c
mov dword [0x535934], eax
mov eax, dword [0x5358f4]
add eax, dword [0x5358e4]
mov dword [0x535974], eax
imul eax, dword [0x53585c], 0xf9
mov dword [0x535a00], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51e40e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e440
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00409c54
lea eax, [ebp - 0xc]
call fcn.00409bf4
lea eax, [ebp - 4]
call fcn.00409bf4
ret