Function at 0x53f010
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x635524
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x6f7654]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6f7654]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebp
cmp dword [ebp + 0xc], edi
jbe 0x53f06e
call fcn.005eb286
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x53f07e
call fcn.005eb286
mov eax, dword [ebp]
push edi
push ebx
push esi
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.004114f0
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov ebx, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.0058c1a0
mov edx, dword [ebx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x20]
push eax
xor edi, edi
push esi
mov ecx, ebx
mov dword [esp + 0x10c], edi
call edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub eax, ecx
sar eax, 2
xor ebp, ebp
cmp eax, edi
jbe 0x53f503
lea ebx, [edi + 0x10]
mov dword [esp + 0x38], 1
mov byte [esp + 0x17], 0
cmp ebp, eax
jb 0x53f0ff
call fcn.005eb286
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
cmp dword [eax + 0x24], 3
jne 0x53f141
sub esi, ecx
sar esi, 2
cmp ebp, esi
jb 0x53f11a
call fcn.005eb286
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + ebp*4]
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, eax
call edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov byte [esp + 0x17], 1
cmp dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
jle 0x53f4f3
nop
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], edi
mov byte [esp + 0xc4], 0
mov eax, esi
sub eax, ecx
sar eax, 2
mov byte [esp + 0x104], 1
cmp ebp, eax
jb 0x53f18a
call fcn.005eb286
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x20]
cmp dword [eax*4 + 0x68af68], 0xa
jne 0x53f2a2
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 2
call fcn.0058cfd0
mov ecx, dword [esp + 0x10c]
inc ecx
cmp byte [esp + 0x17], 0
mov byte [esp + 0x104], 3
mov dword [esp + 0x64], ecx
je 0x53f1ea
mov esi, dword [esp + 0x18]
jmp 0x53f1ed
or esi, 0xffffffff
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
sar edx, 2
cmp ebp, edx
jb 0x53f201
call fcn.005eb286
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + ebp*4]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x20]
push esi
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.0058ea40
push 2
push 0x68be4c
lea ecx, [esp + 0xc8]
call fcn.004058c0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xcc]
call fcn.004057f0
mov edx, dword [esp + 0x10c]
push 0x20
lea eax, [edx + edx]
push eax
lea ecx, [esp + 0xc8]
call fcn.00409090
push 1
push 0x68be48
lea ecx, [esp + 0xc8]
call fcn.004058c0
lea ecx, [esp + 0x64]
mov byte [esp + 0x104], 2
call fcn.0058cd60
cmp dword [esp + 0xbc], ebx
jb 0x53f2e0
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.005ea386
add esp, 4
jmp 0x53f2e0
cmp byte [esp + 0x17], 0
je 0x53f2af
mov edi, dword [esp + 0x18]
jmp 0x53f2b2
or edi, 0xffffffff
sub esi, ecx
sar esi, 2
cmp ebp, esi
jb 0x53f2c4
call fcn.005eb286
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc0]
push edx
push edi
push eax
push ecx
call fcn.0058eb20
add esp, 0x10
xor edi, edi
mov esi, 0xf
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], edi
mov byte [esp + 0xe0], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
sar edx, 2
mov byte [esp + 0x104], 4
cmp ebp, edx
jb 0x53f323
call fcn.005eb286
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + ebp*4]
sub ecx, eax
sar ecx, 2
cmp byte [edx + 0x28], 0
je 0x53f3da
cmp ebp, ecx
jb 0x53f342
call fcn.005eb286
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x4c]
push 0x68be44
push ecx
call fcn.0040ae80
push 0x68be40
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x11c], 5
call fcn.0040af10
add esp, 0x18
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x110], 6
call fcn.00402e40
cmp dword [esp + 0xbc], ebx
jb 0x53f3a7
mov eax, dword [esp + 0xa8]
push eax
call fcn.005ea386
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
mov byte [esp + 0x104], 4
cmp dword [esp + 0x60], ebx
jb 0x53f3fc
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005ea386
add esp, 4
jmp 0x53f3fc
cmp ebp, ecx
jb 0x53f3e7
call fcn.005eb286
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe8]
call fcn.00402e40
push 0x68be3c
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0040af10
lea ecx, [esp + 0xcc]
push ecx
push eax
lea edx, [esp + 0xb8]
push edx
mov byte [esp + 0x11c], 7
call fcn.004a62b0
add esp, 0x18
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x108], 8
call fcn.0040d0d0
cmp dword [esp + 0xbc], ebx
jb 0x53f45f
mov eax, dword [esp + 0xa8]
push eax
call fcn.005ea386
add esp, 4
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x60], ebx
jb 0x53f488
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005ea386
add esp, 4
cmp dword [esp + 0xf4], ebx
jb 0x53f4a1
mov edx, dword [esp + 0xe0]
push edx
call fcn.005ea386
add esp, 4
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], edi
mov byte [esp + 0xe0], 0
mov byte [esp + 0x104], 0
cmp dword [esp + 0xd8], ebx
jb 0x53f4d8
mov eax, dword [esp + 0xc4]
push eax
call fcn.005ea386
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jl 0x53f150
mov eax, esi
sub eax, ecx
inc ebp
sar eax, 2
cmp ebp, eax
jb 0x53f0e1
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
setne bl
cmp ecx, edi
je 0x53f530
push ecx
call fcn.005ea386
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.005ea386
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.005ea848
add esp, 0xf4
ret