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

Disassembly:
push 0xffffffffffffffff
push 0x518966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebp
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x591e88
push 0x49d420
rep stosd dword es:[edi], eax
nop
call 0x608e84
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x260]
mov edx, dword [esp + 0x25c]
push eax
mov eax, dword [esp + 0x25c]
push ecx
push edx
push eax
call fcn.0049bbe0
fstp qword [esp + 0x270]
add esp, 0x14
lea ecx, [esp + 0x30]
call fcn.0050b234
fld qword [esp + 0x25c]
fmul qword [0x520870]
sub esp, 8
lea ecx, [esp + 0x38]
xor ebp, ebp
mov dword [esp + 0x254], ebp
fstp qword [esp]
push 0x547958
push ecx
call fcn.0050b258
push ebp
lea edx, [esp + 0x44]
push 1
push edx
call fcn.00412d00
add esp, 0x1c
test al, al
jne 0x4a08ff
lea ecx, [esp + 0x30]
mov dword [esp + 0x24c], 0xffffffff
call fcn.0050b22e
fld qword [esp + 0x25c]
pop edi
pop ebp
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
add esp, 0x248
ret
mov eax, 0x522d18
push ebx
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov ecx, 0x529510
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], ebp
mov dword [esp + 0x90], 0x5294c8
mov dword [esp + 0x94], ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebp
push 0x40000000
lea eax, [esp + 0xa8]
push ebp
lea ecx, [esp + 0xc0]
push eax
lea edx, [esp + 0x9c]
push ecx
push edx
mov ecx, 0x591df8
mov byte [esp + 0x268], 6
call fcn.004bf850
mov eax, dword [esp + 0x98]
xor ebx, ebx
cmp eax, ebp
jle 0x4a0a43
mov eax, dword [esp + 0x94]
push 0xffffffffffffffff
mov esi, dword [eax + ebx*4]
mov eax, dword [esp + 0x30]
add esi, 0x10
mov edi, eax
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004de680
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edx + edi*4]
mov edx, eax
dec eax
test edx, edx
je 0x4a0a37
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x4a0a2a
mov eax, dword [esp + 0x98]
inc ebx
cmp ebx, eax
jl 0x4a09f1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc0]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.004de680
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xbc]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0xc0]
cmp edx, ebp
je 0x4a0a84
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4a0a77
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xac]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x2c]
call fcn.004de680
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xa8]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0xac]
cmp edx, ebp
je 0x4a0ac5
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4a0ab8
lea eax, [esp + 0x64]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0048f080
mov eax, dword [esp + 0x34]
add esp, 8
xor esi, esi
cmp eax, ebp
jle 0x4a0afa
mov edx, dword [esp + 0x28]
mov eax, dword [edx + esi*4]
push eax
call fcn.004a3740
mov eax, dword [esp + 0x30]
add esp, 4
inc esi
cmp esi, eax
jl 0x4a0ae1
mov eax, 0x529538
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + 0x270]
mov ebx, dword [esp + 0x278]
mov dword [esp + 0xd4], edx
lea eax, [eax + eax*4]
push ebx
lea edx, [esp + 0x28]
mov byte [esp + 0x258], 8
lea eax, [eax + eax*4]
mov dword [esp + 0xe8], 0x9999999a
mov dword [esp + 0xec], 0x3fb99999
mov dword [esp + 0x110], 0xcccccccd
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x278]
shl ecx, 3
mov dword [esp + 0xd0], ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0xdc], eax
mov eax, 3
push ecx
push edx
mov dword [esp + 0x110], eax
mov dword [esp + 0x11c], 0x3ff0cccc
mov dword [esp + 0xe8], 4
mov dword [esp + 0xec], 2
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x3fe00000
mov dword [esp + 0x100], 0x9999999a
mov dword [esp + 0x104], 0x40099999
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x108], 0x66666666
mov dword [esp + 0x10c], 0x3fe66666
call fcn.0048efa0
fmul qword [0x522c70]
mov eax, dword [esp + 0x268]
push ecx
fadd qword [0x520868]
fmul qword [esp + 0x274]
fstp qword [esp]
push eax
call fcn.0049d4d0
lea ecx, [esp + 0x64]
lea edx, [esp + 0x38]
push ecx
push edx
fstp st(0)
call fcn.0048f080
mov esi, dword [esp + 0x60]
add esp, 0x1c
lea ecx, [esp + 0x3c]
lea eax, [esi + 1]
push 0xffffffffffffffff
push eax
call fcn.004a2950
lea edi, [esi + esi*2]
mov esi, dword [esp + 0x40]
shl edi, 7
add edi, esi
mov ecx, 0x60
lea esi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xcc]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004a2ac0
lea eax, [esp + 0xcc]
mov edx, dword [esp + 0x14]
mov dword [0x591df0], eax
mov eax, dword [esp + 0x18]
lea edi, [esp + 0xcc]
lea ecx, [eax + eax*2]
shl ecx, 7
lea esi, [ecx + edx - 0x180]
mov ecx, 0x60
rep movsd dword es:[edi], dword [esi]
mov esi, 3
mov dword [esp + 0x78], esi
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x268]
mov edx, dword [esp + 0x264]
lea eax, [esp + 0xcc]
push ebx
fmul qword [0x522c70]
push eax
mov eax, dword [esp + 0x264]
push ecx
push edx
fadd qword [0x523268]
push eax
fstp qword [esp + 0x108]
call fcn.0049d4d0
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x24]
push ecx
push edx
fstp st(0)
call fcn.004a05f0
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004a0440
add esp, 0x24
test al, al
je 0x4a0d50
lea edx, [esp + 0x50]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0048f080
add esp, 8
lea ecx, [esp + 0x64]
push ecx
call fcn.0048f260
add esp, 4
inc esi
cmp esi, 6
mov dword [esp + 0x78], esi
jl 0x4a0cd4
mov eax, dword [esp + 0x18]
mov ecx, 0x60
lea edi, [esp + 0xcc]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
shl edx, 7
lea esi, [edx + eax - 0x180]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x114], 3
mov edx, dword [esp + 0x268]
mov eax, dword [esp + 0x264]
lea ecx, [esp + 0xcc]
push ebx
push ecx
mov ecx, dword [esp + 0x264]
push edx
push eax
push ecx
call fcn.0049d4d0
lea edx, [esp + 0xe0]
lea eax, [esp + 0x24]
push edx
push eax
fstp st(0)
call fcn.004a05f0
lea ecx, [esp + 0xe8]
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.004a0440
add esp, 0x24
test al, al
je 0x4a0dfe
lea eax, [esp + 0x50]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0048f080
add esp, 8
lea edx, [esp + 0x64]
push edx
call fcn.0048f260
mov eax, dword [esp + 0x118]
add esp, 4
inc eax
cmp eax, 6
mov dword [esp + 0x114], eax
jl 0x4a0d99
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0xcc]
lea eax, [eax + eax*2]
shl eax, 7
lea esi, [eax + ecx - 0x180]
mov ecx, 0x60
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x118], 0xd
mov eax, dword [esp + 0x268]
mov ecx, dword [esp + 0x264]
lea edx, [esp + 0xcc]
push ebx
push edx
mov edx, dword [esp + 0x264]
push eax
push ecx
push edx
call fcn.0049d4d0
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x24]
push eax
push ecx
fstp st(0)
call fcn.004a05f0
lea edx, [esp + 0xe8]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004a0440
add esp, 0x24
test al, al
je 0x4a0eb6
lea ecx, [esp + 0x50]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0048f080
add esp, 8
lea eax, [esp + 0x64]
push eax
call fcn.0048f260
mov eax, dword [esp + 0x11c]
add esp, 4
add eax, 2
cmp eax, 0x10
mov dword [esp + 0x118], eax
jle 0x4a0e51
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0xcc]
lea ecx, [eax + eax*2]
shl ecx, 7
lea esi, [ecx + edx - 0x180]
mov ecx, 0x60
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xdc], 4
mov ecx, dword [esp + 0x268]
mov edx, dword [esp + 0x264]
lea eax, [esp + 0xcc]
push ebx
push eax
mov eax, dword [esp + 0x264]
push ecx
push edx
push eax
call fcn.0049d4d0
lea ecx, [esp + 0xe0]
lea edx, [esp + 0x24]
push ecx
push edx
fstp st(0)
call fcn.004a05f0
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.004a0440
add esp, 0x24
test al, al
je 0x4a0f70
lea edx, [esp + 0x50]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0048f080
add esp, 8
lea ecx, [esp + 0x64]
push ecx
call fcn.0048f260
mov eax, dword [esp + 0xe0]
add esp, 4
inc eax
cmp eax, 6
mov dword [esp + 0xdc], eax
jl 0x4a0f0b
push 0x3002
push 0x547974
lea ecx, [esp + 0x88]
mov dword [0x5920e0], 3
call fcn.0050b6f6
lea ecx, [esp + 0x80]
mov byte [esp + 0x254], 9
call fcn.0050b6b4
cmp eax, ebp
jne 0x4a0fd1
xor ebx, ebx
jmp 0x4a101b
add eax, 0xfffffe80
push ebp
push eax
lea ecx, [esp + 0x88]
call fcn.0050b69c
lea edx, [esp + 0xcc]
push 0x180
push edx
lea ecx, [esp + 0x88]
call fcn.0050b6ae
mov eax, dword [esp + 0x80]
push 2
push ebp
lea ecx, [esp + 0x88]
call dword [eax + 0x30]
mov ecx, dword [esp + 0x244]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x18]
xor edx, edx
cmp ecx, ebp
jle 0x4a1056
xor eax, eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x27c]
inc edx
mov dword [ecx + eax + 0x178], ebx
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax + 0x50]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
add eax, 0x180
cmp edx, ecx
jl 0x4a1027
mov eax, dword [esp + 0x44]
xor edx, edx
cmp eax, ebp
jle 0x4a1095
xor eax, eax
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x27c]
inc edx
mov dword [ecx + eax + 0x178], ebx
mov ecx, dword [esp + 0x40]
lea edi, [ecx + eax + 0x50]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x44]
add eax, 0x180
cmp edx, ecx
jl 0x4a1062
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*2]
shl edx, 7
push edx
push eax
lea ecx, [esp + 0x88]
call fcn.0050b6ba
mov ecx, 0x60
xor eax, eax
lea edi, [esp + 0xcc]
push 0x180
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x248], ebx
push ecx
lea ecx, [esp + 0x88]
call fcn.0050b6ba
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x80]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x40]
shl edx, 7
push edx
push eax
call fcn.0050b6ba
lea ecx, [esp + 0x80]
call fcn.0050b696
mov esi, dword [0x60d380]
push 0xbb8
push 0xb54
call esi
push 0xbb8
push 0x898
call esi
push ebp
push 0x547970
push 0x547970
call fcn.00439a50
lea ecx, [esp + 0x5c]
mov dword [0x5920e0], 4
push ecx
call fcn.0048f260
lea edx, [esp + 0x34]
push 1
push edx
call fcn.004f3f10
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x24c]
mov dword [esp + 0x94], ecx
add esp, 0x18
lea ecx, [esp + 0x80]
mov dword [esp + 0x78], eax
mov byte [esp + 0x254], 8
call fcn.0050b6f0
mov esi, 0x529538
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x40]
mov byte [esp + 0x254], 0xa
cmp eax, ebp
je 0x4a11a5
push eax
call fcn.0050b204
add esp, 4
mov ebx, 0x520384
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x254], 0xb
cmp eax, ebp
je 0x4a11cb
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x90], 0x5294c8
mov eax, dword [esp + 0x94]
mov byte [esp + 0x254], 0xc
cmp eax, ebp
je 0x4a11f6
push eax
call fcn.0050b204
add esp, 4
mov esi, 0x522d18
mov dword [esp + 0x90], ebx
mov dword [esp + 0xb8], esi
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x254], 0xd
cmp eax, ebp
je 0x4a1225
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xa4], esi
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x254], 0xe
cmp eax, ebp
je 0x4a124f
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x50], 0x529510
mov eax, dword [esp + 0x54]
mov byte [esp + 0x254], 0xf
cmp eax, ebp
je 0x4a1295
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
je 0x4a128c
lea esi, [eax + 8]
lea edi, [ecx]
mov ecx, esi
call fcn.00507a00
add esi, 0x58
dec edi
jne 0x4a127b
mov eax, dword [esp + 0x54]
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x64], 0x529510
mov eax, dword [esp + 0x68]
mov byte [esp + 0x254], 0x10
cmp eax, ebp
je 0x4a12d8
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
je 0x4a12cf
lea esi, [eax + 8]
lea edi, [ecx]
mov ecx, esi
call fcn.00507a00
add esi, 0x58
dec edi
jne 0x4a12be
mov eax, dword [esp + 0x68]
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], 0x522d18
mov eax, dword [esp + 0x28]
mov byte [esp + 0x254], 0x11
cmp eax, ebp
je 0x4a12fd
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x254], 0xffffffff
call fcn.0050b22e
mov ecx, dword [esp + 0x24c]
pop esi
fld qword [esp + 0x74]
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x248
ret