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

Disassembly:
push 0xffffffffffffffff
push 0x100f48d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov al, byte [0x1011eda0]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test al, 1
mov dword [esp + 0x30], ebp
jne 0x10079710
mov dl, al
mov ecx, 0x1011edc0
or dl, 1
mov byte [0x1011eda0], dl
call fcn.100777d0
push 0x100523a0
call fcn.100dcac2
add esp, 4
mov dword [esp + 0x24], 0x1011edc0
mov eax, 0x1011edc0
xor esi, esi
test eax, eax
mov dword [esp + 0x138], esi
je 0x100797e6
mov ecx, dword [esp + 0x140]
call fcn.1006b190
mov edx, dword [0x10116634]
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x34], eax
and ebx, 0x3f
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, 0x1011b278
inc edx
mov dword [0x10116634], edx
call fcn.100107b0
mov ecx, 9
mov esi, eax
mov edi, ebx
mov eax, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
fld dword [eax + 0x2c]
fchs
push ecx
fstp dword [esp]
fld dword [eax + 0x28]
push ecx
fchs
fstp dword [esp]
fld dword [eax + 0x24]
push ecx
lea ecx, [esp + 0x68]
fchs
fstp dword [esp]
call fcn.1000d380
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x54]
mov eax, dword [eax + 8]
push edx
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.100108d0
mov edx, dword [eax]
lea ecx, [ebx + 0x24]
push ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x148]
add ecx, 0x30
push ecx
mov ecx, 0x1011edc0
call fcn.10077a50
xor esi, esi
fld dword [0x1011ee84]
fcomp dword [0x100f73b8]
mov dword [esp + 0x138], 0xffffffff
fnstsw ax
test ah, 0x41
jne 0x10079ead
mov ecx, dword [esp + 0x140]
call fcn.1006b190
mov ecx, dword [ebp + 8]
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
jl 0x100799e6
mov dword [esp + 0x14], 0x1011c870
fild dword [esp + 0x2c]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x28], eax
fidiv dword [esp + 0x10]
fld dword [0x1011ee5c]
fsub dword [0x1011ee50]
fld dword [0x1011ee60]
fsub dword [0x1011ee54]
fstp dword [esp + 0x98]
fld dword [0x1011ee64]
fsub dword [0x1011ee58]
fstp dword [esp + 0x9c]
fmul st(1)
fld dword [esp + 0x98]
fmul st(2)
fstp dword [esp + 0x8c]
fld dword [esp + 0x9c]
fmul st(2)
fstp dword [esp + 0x90]
fadd dword [0x1011ee50]
fstp dword [esp + 0x44]
fld dword [esp + 0x8c]
fadd dword [0x1011ee54]
fstp dword [esp + 0x48]
fld dword [esp + 0x90]
fadd dword [0x1011ee58]
fstp dword [esp + 0x4c]
fld dword [0x1011ee68]
fsub dword [0x1011ee74]
fld dword [0x1011ee6c]
fsub dword [0x1011ee78]
fstp dword [esp + 0xa4]
fld dword [0x1011ee70]
fsub dword [0x1011ee7c]
fstp dword [esp + 0xa8]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0xa4]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0xa8]
fld dword [esp + 0x50]
fadd dword [0x1011ee74]
fstp dword [esp + 0x38]
fld dword [esp + 0x54]
fadd dword [0x1011ee78]
fstp dword [esp + 0x3c]
fld dword [0x1011ee7c]
fadd st(1)
fstp dword [esp + 0x40]
fstp st(0)
jl 0x100799c4
fld dword [esp + 0x38]
fsub dword [esp + 0x44]
fld dword [esp + 0x3c]
fsub dword [esp + 0x48]
fld dword [esp + 0x40]
fsub dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x28]
mov edx, ecx
inc eax
add ecx, 0xc
mov dword [esp + 0x28], eax
fidiv dword [esp + 0x10]
fld st(3)
fmul st(1)
fstp dword [esp + 0x5c]
fld st(2)
fmul st(1)
fstp dword [esp + 0x60]
fld st(1)
fmulp st(1)
fld dword [esp + 0x5c]
fadd dword [esp + 0x44]
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fadd dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
mov dword [edx], ebx
fstp dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
fadd dword [esp + 0x4c]
mov dword [edx + 4], ebx
fstp dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov dword [edx + 8], ebx
mov edx, dword [ebp + 8]
cmp eax, edx
mov dword [esp + 0x10], edx
jle 0x10079959
fstp st(0)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 0xcc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edi, ecx
mov dword [esp + 0x10], ecx
jle 0x10079831
mov dword [esp + 0x1c], 0x3f800000
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 4]
push 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], 0
call fcn.100554c0
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
jle 0x10079e88
mov dword [esp + 0x14], esi
xor edx, edx
cmp eax, esi
mov dword [esp + 0x34], edx
jle 0x10079e65
jmp 0x10079a5d
xor esi, esi
lea eax, [esp + 0xcc]
mov ecx, 4
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov dword [eax], esi
add eax, 0xc
dec ecx
jne 0x10079a69
lea eax, [esp + 0xfc]
mov ecx, 5
mov dword [eax - 8], esi
mov dword [eax - 4], esi
mov dword [eax], esi
add eax, 0xc
dec ecx
jne 0x10079a83
mov eax, dword [esp + 0x14]
xor ebp, ebp
add eax, edx
lea ebx, [esp + 0xf4]
lea edi, [esp + 0xc8]
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [eax + 0x1011c870]
mov edx, dword [eax + 0x1011c870]
mov dword [esp + 0xc4], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xc8], edx
lea edx, [eax + 0x1011c93c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0xcc], ecx
mov ecx, dword [edx]
mov dword [esp + 0xd0], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0xd4], ecx
lea ecx, [eax + 0x1011c948]
mov edx, dword [edx + 8]
mov dword [esp + 0xd8], edx
mov edx, dword [ecx]
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xe0], edx
lea edx, [eax + 0x1011c87c]
mov ecx, dword [ecx + 8]
mov eax, dword [edx]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xec], ecx
xor ecx, ecx
mov edx, dword [edx + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xf0], edx
fld dword [edi]
fcomp dword [0x100f73b8]
lea eax, [ecx - 1]
and eax, 3
lea eax, [eax + eax*2]
fld dword [esp + eax*4 + 0xc8]
lea esi, [esp + eax*4 + 0xc4]
fnstsw ax
fcomp dword [0x100f73b8]
test ah, 0x41
fnstsw ax
jne 0x10079be9
test ah, 0x41
je 0x10079d38
fld dword [esi + 4]
fsub dword [edi]
mov edx, ebx
inc ebp
add ebx, 0xc
fdivr dword [esi + 4]
fld dword [edi - 4]
fsub dword [esi]
fld dword [edi]
fsub dword [esi + 4]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [esi + 8]
fstp dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x64]
fld dword [esp + 0x50]
fadd dword [esi]
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fadd dword [esi + 4]
mov eax, dword [esp + 0x18]
mov dword [edx], eax
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fadd dword [esi + 8]
mov dword [edx + 4], eax
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [edx + 8], eax
jmp 0x10079d38
test ah, 0x41
jne 0x10079c80
fld dword [esi + 4]
fsub dword [edi]
push ecx
fdivr dword [esi + 4]
fld dword [edi - 4]
fsub dword [esi]
fld dword [edi]
fsub dword [esi + 4]
fld dword [edi + 4]
fsub dword [esi + 8]
fmul st(3)
fstp dword [esp]
push ecx
fmul st(2)
fstp dword [esp]
push ecx
lea ecx, [esp + 0xac]
fmul st(1)
fstp dword [esp]
fstp st(0)
call fcn.1000d380
mov ecx, dword [eax]
push ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
fld dword [esp + 0x44]
fadd dword [esi + 8]
fstp dword [esp]
fld dword [esp + 0x40]
fadd dword [esi + 4]
push ecx
fstp dword [esp]
fld dword [esp + 0x40]
fadd dword [esi]
push ecx
lea ecx, [esp + 0x94]
fstp dword [esp]
call fcn.1000d380
mov edx, dword [eax]
mov ecx, ebx
inc ebp
add ebx, 0xc
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
fld dword [edi + 4]
fsub dword [0x1011ee88]
push ecx
fstp dword [esp]
fld dword [edi]
fsub dword [0x1011ee84]
push ecx
fstp dword [esp]
fld dword [edi - 4]
fsub dword [0x1011ee80]
push ecx
lea ecx, [esp + 0xa0]
fstp dword [esp]
call fcn.1000d380
mov edx, eax
mov esi, dword [0x1011ee80]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0xac], esi
mov esi, dword [0x1011ee84]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb0], esi
mov esi, dword [0x1011ee88]
lea eax, [esp + 0xac]
mov dword [esp + 0xbc], ecx
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xc4], edx
call fcn.10079ed0
push ecx
lea ecx, [esp + 0x48]
fstp dword [esp]
push ecx
lea ecx, [esp + 0xb4]
call fcn.10064340
mov ecx, dword [eax]
mov edx, ebx
inc ebp
add ebx, 0xc
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], eax
inc ecx
add edi, 0xc
cmp ecx, 4
mov dword [esp + 0x24], ecx
jl 0x10079b43
cmp ebp, 3
jl 0x10079e49
cmp ebp, 5
jg 0x10079e49
test ebp, ebp
jle 0x10079e09
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [edx + edx*4]
lea edx, [edx + ecx*2]
lea ecx, [esp + 0xf4]
shl edx, 2
mov eax, dword [ecx]
mov esi, ecx
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esi]
add ecx, 0xc
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
add eax, edx
add edx, 0x2c
mov edi, eax
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [edi + 4], ebx
mov dword [edi + 8], esi
mov edi, dword [esp + 0x78]
lea esi, [eax + 0xc]
add eax, 0x1c
mov dword [esi], edi
mov edi, dword [esp + 0x7c]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x80]
mov dword [eax - 4], 0xffffffff
mov dword [esi + 8], edi
mov esi, dword [esp + 0x68]
mov dword [eax], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x74]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x10079d7b
mov ebx, dword [esp + 0x10]
cmp ebp, 2
jle 0x10079e43
mov edi, 1
lea eax, [ebx + 1]
sub edi, ebx
mov edx, dword [esp + 0x28]
lea esi, [eax + 1]
push esi
mov ecx, edx
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x40]
inc edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], edx
call fcn.10076200
mov eax, esi
lea edx, [edi + eax]
cmp edx, ebp
jl 0x10079e1c
add ebx, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
inc edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
cmp edx, ecx
jl 0x10079a5b
mov ebp, eax
xor esi, esi
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
inc ecx
add edi, 0x11
cmp ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edi
jl 0x10079a4b
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
call fcn.10055550
cmp edi, 3
jl 0x10079ead
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [esp + 0x144]
push esi
push edi
push esi
push edx
call fcn.10081dc0
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 8