Function at 0x53b986
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1308
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5920a4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x5920a4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
and dword [esp + 0x14], 0
mov eax, dword [ebx + 0x1b4]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x24]
add eax, 0x2b0
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0050b0b8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x1e4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
call fcn.00515f6f
mov edi, eax
lea esi, [esp + 0x2c]
call fcn.0049b1f0
test al, al
je 0x53bba2
call fcn.0049f8a0
mov eax, dword [eax]
cmp byte [eax + 0x529], 0
je 0x53bb94
cmp dword [esp + 0x1c], 5
jge 0x53bb7f
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0x14]
mov eax, dword [ecx]
push 1
call dword [eax + 0x80]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10c]
call fcn.0049f8a0
push dword [esp + 0x1c]
mov eax, dword [eax]
push ebx
mov dword [edi - 0x44], eax
call fcn.00517364
mov dword [edi + 0x14], eax
call fcn.0049f8a0
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
cmp dword [eax + 0x84], 0
push 0xb8
je 0x53bae5
call fcn.004aac98
pop ecx
mov dword [esp + 0x24], eax
and dword [esp + 0xa0], 0
test eax, eax
je 0x53bacb
call fcn.0049f8a0
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov eax, dword [eax + 0x84]
push dword [esp + 0x24]
mov edi, eax
call fcn.00454580
mov edi, dword [esp + 0x18]
jmp 0x53bacd
xor eax, eax
or dword [esp + 0xa0], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
call dword [edx + 0x108]
jmp 0x53bb72
call fcn.004aac98
pop ecx
mov dword [esp + 0x24], eax
xor esi, esi
inc esi
test eax, eax
mov dword [esp + 0xa0], esi
je 0x53bb3d
push 0x55651c
lea ecx, [esp + 0x38]
call fcn.0044ca60
mov byte [esp + 0xa0], 2
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0xac]
or dword [esp + 0x14], esi
lea ecx, [esp + 0x34]
push ecx
call fcn.0046cf40
push dword [esp + 0x24]
mov edi, eax
call fcn.00454580
mov edi, dword [esp + 0x18]
jmp 0x53bb3f
xor eax, eax
mov dword [esp + 0xa0], 3
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
call dword [edx + 0x108]
or dword [esp + 0xa0], 0xffffffff
test byte [esp + 0x14], 1
je 0x53bb72
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x34]
call fcn.00417480
inc dword [esp + 0x1c]
add edi, 4
mov dword [esp + 0x18], edi
jmp 0x53bb94
mov eax, dword [0x5ab9e4]
mov ecx, dword [eax]
push 0x557480
push eax
call dword [ecx + 0xd0]
pop ecx
pop ecx
lea esi, [esp + 0x2c]
call fcn.00494e00
jmp 0x53ba04
mov eax, dword [esp + 0x1c]
push 5
pop edi
cmp eax, edi
jge 0x53bbdb
lea esi, [ebx + eax*4 + 0x1e4]
sub edi, eax
mov ecx, dword [esi - 0x14]
mov eax, dword [ecx]
push 0
call dword [eax + 0x80]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10c]
and dword [esi - 0x44], 0
and dword [esi + 0x14], 0
add esi, 4
dec edi
jne 0x53bbb6
push ebx
call fcn.005172c2
push ebx
call fcn.0051df45
xor esi, esi
cmp dword [ebx + 0x1cc], esi
mov dword [ebx + 0x268], eax
jle 0x53bc29
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
cmp dword [eax + 0xc], esi
jne 0x53bc20
mov byte [esp + 0x18], 1
xor al, al
mov ecx, dword [ebx + 0x210]
mov edx, dword [ecx]
push eax
call dword [edx + 0x80]
push dword [esp + 0x18]
jmp 0x53bc39
mov byte [esp + 0x18], 0
mov al, 1
jmp 0x53bc0b
mov ecx, dword [ebx + 0x210]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push esi
mov ecx, dword [ebx + 0x214]
mov eax, dword [ecx]
call dword [eax + 0x80]
lea eax, [ebx + 0x1d0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 5
mov edi, 0x55050a
push edi
lea ecx, [esp + 0x38]
call fcn.0044ca60
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov dword [esp + 0xa8], 4
push dword [eax]
call fcn.00409520
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00417480
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
add dword [esp + 0x18], 4
dec dword [esp + 0x14]
jne 0x53bc5e
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [ebx + 0x1cc], esi
setg al
add eax, ecx
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
lea eax, [esp + 0x74]
fmul qword [0x566be0]
fstp dword [esp + 0x18]
call fcn.00462bc0
cmp dword [esp + 0x1c], esi
mov dword [esp + 0xa0], 5
mov dword [esp + 0x14], esi
jle 0x53bd6a
fld dword [esp + 0x18]
fmul qword [0x566760]
fstp qword [esp + 0x2c]
push dword [esp + 0x14]
lea esi, [esp + 0x78]
push 0x5574ec
call fcn.0044c980
pop ecx
pop ecx
mov eax, esi
push eax
mov eax, ebx
call fcn.0046ea50
fild dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
fmul qword [0x566be0]
fsub qword [esp + 0x2c]
fadd qword [0x566bd8]
fstp dword [esp + 0x24]
je 0x53bd5a
mov esi, dword [eax]
mov ecx, eax
call dword [esi + 0xc]
fld dword [eax + 4]
push ecx
push ecx
mov ecx, dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call dword [esi + 0x18]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jl 0x53bcfe
xor esi, esi
cmp dword [ebx + 0x1cc], esi
jle 0x53bdf9
push 0x5574f8
lea ecx, [esp + 0x38]
call fcn.0044ca60
lea eax, [esp + 0x34]
push eax
mov eax, ebx
mov byte [esp + 0xa4], 6
call fcn.0046ea50
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], eax
mov byte [esp + 0xa0], 5
call fcn.00417480
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
fmul qword [0x566be0]
fld dword [esp + 0x18]
fmul qword [0x566760]
fsubp st(1)
fadd qword [0x566bd8]
fstp dword [esp + 0x24]
je 0x53bdf9
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
call dword [eax + 0xc]
fld dword [eax + 4]
mov eax, dword [esp + 0x20]
push ecx
push ecx
mov ecx, dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [esp + 0x2c]
fstp dword [esp]
call dword [eax + 0x18]
push edi
lea ecx, [esp + 0x38]
call fcn.0044ca60
lea eax, [esp + 0x34]
push eax
push esi
mov byte [esp + 0xa8], 7
push dword [ebx + 0x20c]
call fcn.00409520
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.00417480
mov ecx, dword [ebx + 0x20c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push edi
lea ecx, [esp + 0x38]
call fcn.0044ca60
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xa4], 8
push dword [ebx + 0x268]
push dword [ebx + 0x258]
call fcn.00409520
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.00417480
mov ecx, dword [ebx + 0x25c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x230]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x238]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
push 5
xor edx, edx
lea eax, [ebx + 0x1f8]
pop ecx
cmp dword [eax - 0x58], esi
je 0x53beb4
add edx, dword [eax]
add eax, 4
dec ecx
jne 0x53bead
mov eax, dword [ebx + 0x1c8]
add eax, dword [ebx + 0x268]
mov ecx, dword [ebx + 0x1c0]
add edx, eax
mov eax, dword [ebx + 0x264]
add eax, ecx
push 1
push dword [ebx + 0x220]
add eax, edx
lea edi, [ebx + 0x1c4]
mov dword [edi], eax
call fcn.00423570
push dword [edi]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [0x5ac624]
call fcn.004a20c0
mov byte [esp + 0xa0], 9
push dword [ebx + 0x224]
mov ecx, eax
call fcn.0044c0f0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 5
call fcn.00417480
mov ecx, dword [ebx + 0x21c]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx + 0x224]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebx + 0x22c]
cmp dword [eax + 0xc], 1
mov eax, dword [ecx]
jne 0x53bf7a
push 1
call dword [eax + 0x80]
mov eax, dword [0x5ac624]
mov eax, dword [eax + 0x3c]
push dword [eax + 0x2c]
mov edi, dword [ebx + 0x228]
call fcn.0048d430
xor esi, esi
jmp 0x53bf81
push esi
call dword [eax + 0x80]
lea edi, [ebx + 0x240]
mov ecx, dword [edi]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [edi]
push 2
call fcn.00408aa0
add ebx, 0x244
mov ecx, dword [ebx]
mov eax, dword [ecx]
push esi
call dword [eax + 0x80]
mov ecx, dword [ebx]
push 2
call fcn.00408aa0
lea ecx, [esp + 0x74]
call fcn.00417480
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004aa882
mov esp, ebp
pop ebp
ret 4