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

Disassembly:
push 0xffffffffffffffff
push 0x4b1bb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x134], edi
call fcn.0050d46e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x134], 1
call fcn.0050d46e
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call fcn.0050d46e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call fcn.0050d46e
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call fcn.004c5a38
lea ecx, [esp + 0x44]
mov byte [esp + 0x134], 5
call fcn.0050d46e
lea ecx, [esp + 0x48]
mov byte [esp + 0x134], 6
call fcn.0050d46e
push edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x138], 7
call fcn.004b3b78
push edi
lea ecx, [esp + 0x10c]
mov byte [esp + 0x138], 8
call fcn.004b3b78
push edi
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 9
call fcn.004b3b78
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 0xa
call fcn.004af1d8
mov edx, dword [0x4de8b0]
push edi
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [edx + 0x110]
mov byte [esp + 0x144], 0xb
call fcn.00479dc8
push 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0b08
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x13c], 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0xb
call fcn.004c5ab8
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x13c], 0xd
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0xb
call fcn.004c5ab8
mov eax, dword [ebp + 0x54]
mov esi, 1
cmp dword [eax + 0x58], esi
jne 0x4ffa99
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov eax, dword [ebp + 0x54]
cmp dword [eax + 0x58], esi
jne 0x4ffae0
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec0
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004c5a98
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 0xe
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xb
call fcn.0050d468
mov edx, dword [0x4de8b0]
push esi
push esi
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push esi
push esi
push esi
lea ecx, [esp + 0x28]
call fcn.00470bf8
push eax
push edi
lea ecx, [esp + 0x30]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4d8880
call fcn.0050d618
mov eax, dword [ebp + 0x54]
push ecx
mov ecx, esp
mov dword [esp + 0x144], esp
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
push edx
push 0xb
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x160], 0xf
call fcn.004f53d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 0xb
push ecx
mov ecx, ebp
call fcn.004fa798
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0x10
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xb
call fcn.0050d468
mov edx, dword [0x4de8b0]
push esi
push edi
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0050d48c
push edi
lea ecx, [esp + 0x1c]
call fcn.0050d492
mov cl, byte [esp + 0x2f]
mov esi, eax
mov byte [esp + 0x34], cl
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x38]
push ebx
call dword [fcn.004b4614]
test al, al
je 0x4ffc30
mov edi, dword [esp + 0x38]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x118]
push 1
lea edx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x140], 0x11
call fcn.004af268
and eax, 0xff
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x38]
cmp eax, esi
mov dword [esp + 0x10], edi
mov byte [esp + 0x134], 0xb
je 0x4ffc8a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4ffc81
cmp al, 0xff
je 0x4ffc81
dec al
mov byte [ecx], al
jmp 0x4ffc8a
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0050d48c
cmp edi, esi
je 0x4ffd39
push 0x4d0c58
lea ecx, [esp + 0x11c]
call fcn.004b5078
push eax
lea ecx, [esp + 0x10c]
call fcn.004b4218
lea ecx, [esp + 0x108]
call fcn.004b4318
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4ffd47
push 0x4d13a0
lea ecx, [esp + 0x11c]
call fcn.004b5078
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x138], 0x12
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0xb
call fcn.0050d468
mov eax, dword [esp + 0x44]
push 0x4d85a8
push eax
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
jne 0x4ffd47
push 0x4d13c0
jmp 0x4ffd3e
push 0x4d13b4
lea ecx, [esp + 0x48]
call fcn.0050d47a
mov ecx, dword [0x4de8b0]
mov edi, dword [esp + 0x10]
add ecx, 0x110
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004fb4a8
push 0x4d85a8
lea ecx, [esp + 0x1c]
call fcn.0050d47a
cmp edi, esi
je 0x4ffe3f
lea ecx, [esp + 0x108]
call fcn.004b4e58
mov ebx, eax
xor ecx, ecx
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x4ffdac
mov edx, dword [ebp + 0x1c]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x4ffdac
mov eax, dword [eax + ecx*4]
cmp dword [eax], esi
je 0x4ffda9
mov dword [eax + 0x24], esi
inc ecx
jmp 0x4ffd8c
test ebx, ebx
jle 0x4ffe3d
push esi
lea ecx, [esp + 0x10c]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x64]
call fcn.004b4218
lea ecx, [esp + 0x60]
call fcn.004b4318
cmp eax, 7
jne 0x4ffe34
push 0x4d0b08
lea ecx, [esp + 0x64]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, 0xa
jne 0x4ffe34
push 0x4d0bd0
lea ecx, [esp + 0x64]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov ecx, ebp
push eax
call fcn.004fe708
mov edi, eax
test edi, edi
je 0x4ffe34
push 0x4d0bec
lea ecx, [esp + 0x64]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [edi + 0x24], eax
inc esi
cmp esi, ebx
jl 0x4ffdb4
xor esi, esi
mov edi, dword [esp + 0x13c]
cmp edi, esi
je 0x4ffe7f
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0050d5e8
lea edx, [esp + 0x48]
lea ecx, [edi + 4]
push edx
call fcn.0050d5e8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0xf8]
mov byte [esp + 0x134], 0x13
cmp eax, esi
je 0x4ffeaf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4ffea6
cmp al, 0xff
je 0x4ffea6
dec al
mov byte [ecx], al
jmp 0x4ffeaf
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xf8], esi
cmp eax, esi
mov dword [esp + 0xfc], esi
mov dword [esp + 0x100], esi
je 0x4ffeec
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4ffee3
cmp al, 0xff
je 0x4ffee3
dec al
mov byte [ecx], al
jmp 0x4ffeec
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xd4], esi
cmp eax, esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
je 0x500019
mov ecx, dword [esp + 0xac]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xb0], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xcc]
dec eax
mov dword [esp + 0xcc], eax
je 0x4fff55
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
cmp ecx, eax
jne 0x50000c
mov eax, dword [esp + 0xb0]
mov ecx, eax
add eax, 4
mov dword [esp + 0xb0], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xd0]
add esp, 4
cmp eax, esi
jne 0x4fffe1
lea ecx, [esp + 0x34]
call fcn.004952b8
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
push edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], edi
call fcn.0050d474
add esp, 4
jmp 0x50000c
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xa8], edx
cmp dword [esp + 0xcc], esi
jne 0x4fff10
cmp dword [esp + 0x9c], esi
je 0x5000f4
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x9c]
add ecx, 4
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x9c], eax
je 0x500050
mov eax, ecx
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jne 0x5000e7
mov ecx, dword [esp + 0x80]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x80], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, esi
jne 0x5000c5
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x94]
xor edx, edx
push ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
call fcn.0050d474
add esp, 4
xor esi, esi
jmp 0x5000e7
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x78], edx
cmp dword [esp + 0x9c], esi
jne 0x500026
lea ecx, [esp + 0x60]
mov byte [esp + 0x134], 9
call fcn.004b4098
lea ecx, [esp + 0x108]
mov byte [esp + 0x134], 8
call fcn.004b4098
lea ecx, [esp + 0x118]
mov byte [esp + 0x134], 7
call fcn.004b4098
lea ecx, [esp + 0x48]
mov byte [esp + 0x134], 0x14
call fcn.0050d468
lea ecx, [esp + 0x44]
mov byte [esp + 0x134], 5
call fcn.0050d468
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call fcn.004c5a78
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 3
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call fcn.0050d468
lea ecx, [esp + 0x5c]
mov byte [esp + 0x134], 1
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x134], 0
call fcn.0050d468
lea ecx, [esp + 0x28]
mov dword [esp + 0x134], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret 4