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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e721
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x558384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x148], 0
mov word [esi + 0x14c], 0
mov byte [esi + 0x14e], 0
mov dword [esi], 0
push dword [esi + 8]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x244], eax
call fcn.004b8926
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
push dword [esi + 0x24]
call fcn.004b8926
mov dword [esi + 0x24], 0
push dword [esi + 0x28]
call fcn.004b8926
mov dword [esi + 0x28], 0
push dword [esi + 0x2c]
call fcn.004b8926
mov dword [esi + 0x2c], 0
push dword [esi + 0x30]
call fcn.004b8926
mov dword [esi + 0x30], 0
push dword [esi + 0x34]
call fcn.004b8926
mov dword [esi + 0x34], 0
push dword [esi + 0x38]
call fcn.004b8926
mov dword [esi + 0x38], 0
add esp, 0x1c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49cccf
push eax
call fcn.004b8926
add esp, 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x49ccf3
push eax
call fcn.004b8926
add esp, 4
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
push dword [esi + 0xf0]
call fcn.004b8926
mov dword [esi + 0xf0], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x124], 0
push dword [esi + 0x130]
call fcn.004b8926
mov dword [esi + 0x130], 0
push dword [esi + 0x134]
call fcn.004b8926
mov dword [esi + 0x134], 0
add esp, 0xc
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov eax, dword [edi + 0x40]
mov dword [esi + 0x100], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x104], eax
mov cl, byte [edi + 0x5e]
mov byte [esi + 0xf8], cl
mov al, byte [edi + 0x5f]
mov byte [esi + 0xf9], al
test cl, cl
jne 0x49d16f
cmp dword [edi + 0x60], 0
mov eax, dword [edi + 0x70]
mov edx, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
mov ebx, dword [edi + 0x6c]
mov dword [ebp - 0x220], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], eax
jne 0x49d010
mov eax, edx
or eax, ecx
jne 0x49d010
mov eax, ebx
or eax, dword [ebp - 0x220]
jne 0x49d010
cmp dword [ebp - 0x224], eax
jne 0x49d010
mov ecx, dword [edi]
lea edx, [ebp - 0x234]
push edx
push 1
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x49d174
mov ecx, dword [edi]
lea edx, [ebp - 0x23c]
push edx
push 2
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x49d174
mov edx, dword [ebp - 0x23c]
mov ebx, 0x200
mov ecx, dword [ebp - 0x238]
mov eax, edx
sub eax, dword [ebp - 0x234]
mov dword [ebp - 0x214], ecx
sbb ecx, dword [ebp - 0x230]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], ecx
test ecx, ecx
ja 0x49cf31
jb 0x49cf26
cmp eax, ebx
jae 0x49cf31
mov ebx, eax
cmp ebx, 3
jb 0x49d16f
mov ecx, dword [edi]
sub edx, ebx
push 0
sbb dword [ebp - 0x214], 0
push 0
push dword [ebp - 0x214]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x49d174
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [edi]
call fcn.004a5370
add esp, 0xc
test eax, eax
jne 0x49d174
cmp byte [ebp + ebx - 0x211], al
jne 0x49d16f
lea eax, [ebx - 2]
nop
mov cl, byte [ebp + eax - 0x210]
cmp cl, 0x17
jne 0x49cf96
cmp byte [ebp + eax - 0x20f], 6
jmp 0x49cfa3
cmp cl, 1
jne 0x49cfa5
cmp byte [ebp + eax - 0x20f], 4
je 0x49cfb0
test eax, eax
je 0x49d16f
dec eax
jmp 0x49cf80
mov edx, dword [ebp - 0x21c]
xor ecx, ecx
sub ebx, eax
mov dword [ebp - 0x220], ecx
sub dword [ebp - 0x218], ebx
sbb edx, ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x21c], edx
add ecx, eax
mov edx, ebx
call fcn.004aaa50
mov edx, dword [edi]
push 0
push 0
push dword [ebp - 0x230]
mov ecx, dword [edx]
push dword [ebp - 0x234]
mov dword [ebp - 0x224], eax
push edx
call dword [ecx + 0x10]
test eax, eax
jne 0x49d174
mov edx, dword [ebp - 0x218]
mov byte [esi + 0x14c], 1
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x44]
add ecx, 0x20
mov dword [esi + 0x108], ecx
mov ecx, dword [ebp - 0x21c]
adc eax, 0
mov dword [esi + 0x10c], eax
mov dword [esi + 0x140], 0x20
mov dword [esi + 0x144], 0
mov byte [esi + 0x148], 0
test ecx, ecx
jl 0x49d16f
jg 0x49d05b
test edx, edx
jb 0x49d16f
cmp dword [ebp - 0x220], 0x40000000
ja 0x49d16f
jb 0x49d075
test ebx, ebx
jne 0x49d16f
mov eax, ebx
mov dword [edi + 0x78], 0x20
or eax, dword [ebp - 0x220]
mov dword [edi + 0x7c], 0
jne 0x49d0b5
or edx, ecx
jne 0x49d16f
mov byte [esi + 0x148], 1
mov eax, dword [edi + 0x78]
mov dword [esi + 0x138], eax
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x13c], eax
xor eax, eax
jmp 0x49d174
cmp byte [esi + 0x14c], 0
mov eax, 0x20
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x214], 0
jne 0x49d0ec
mov byte [esi + 0x148], 1
mov edx, dword [edi + 0x7c]
mov eax, dword [edi + 0x78]
mov dword [ebp - 0x214], edx
mov edx, dword [ebp - 0x218]
add eax, ebx
mov dword [edi + 0x50], edx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x220]
adc dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x22c]
mov dword [edi + 0x78], ecx
mov ecx, dword [ebp - 0x214]
mov dword [edi + 0x7c], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [edi + 0x54], ecx
mov dword [ebp - 0x214], ebx
add dword [ebp - 0x214], edx
mov edx, eax
adc edx, ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x20
mov eax, edx
mov dword [esi + 0x140], ecx
adc eax, 0
mov dword [esi + 0x144], eax
mov ecx, dword [edi + 0x48]
sub ecx, dword [esi + 0x108]
mov eax, dword [edi + 0x4c]
sbb eax, dword [esi + 0x10c]
cmp eax, edx
ja 0x49d192
jb 0x49d168
cmp ecx, dword [ebp - 0x214]
jae 0x49d192
mov byte [esi + 0x14b], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bd1b9
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi]
mov edx, dword [ebp - 0x21c]
push 0
push 1
mov eax, dword [ecx]
push edx
mov edx, dword [ebp - 0x218]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x49d174
cmp eax, dword [ebp - 0x220]
jne 0x49d3d6
push ebx
call fcn.004bd4f8
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], ebx
push ebx
push eax
push dword [edi]
mov dword [ebp - 4], 0
call fcn.004a5370
add esp, 0x10
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x49d204
push dword [ebp - 0x234]
call fcn.004b8926
mov eax, dword [ebp - 0x22c]
add esp, 4
jmp 0x49d174
mov ecx, dword [ebp - 0x234]
mov edx, ebx
call fcn.004aaa50
cmp eax, dword [ebp - 0x224]
jne 0x49d3e0
cmp byte [esi + 0x14c], 0
jne 0x49d22d
mov byte [esi + 0x149], 1
mov word [ebp - 0x224], 0
push 0
push ebx
mov ebx, dword [ebp - 0x234]
lea ecx, [ebp - 0x228]
push ebx
push edi
mov byte [ebp - 4], 1
call fcn.0049f200
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov ecx, dword [edi + 0x38]
mov byte [ebp - 4], 2
call fcn.0049ddf0
cmp eax, 1
jne 0x49d287
test edx, edx
je 0x49d375
cmp eax, 0x17
jne 0x49d3e0
test edx, edx
jne 0x49d3e0
push dword [ebp - 0x244]
lea eax, [ebp - 0x240]
mov ecx, edi
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push eax
lea eax, [esi + 0x118]
push eax
push dword [esi + 0x10c]
push dword [esi + 0x108]
call fcn.0049c540
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x49d305
lea ecx, [ebp - 0x240]
call fcn.0049baf0
lea ecx, [ebp - 0x228]
call fcn.0049bb30
push ebx
call fcn.004b8926
mov eax, dword [ebp - 0x22c]
add esp, 4
jmp 0x49d174
mov eax, dword [ebp - 0x23c]
test eax, eax
jne 0x49d335
lea ecx, [ebp - 0x240]
call fcn.0049baf0
lea ecx, [ebp - 0x228]
call fcn.0049bb30
push ebx
call fcn.004b8926
add esp, 4
xor eax, eax
jmp 0x49d174
cmp eax, 1
ja 0x49d3e5
lea ecx, [ebp - 0x228]
call fcn.0049bb30
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x228]
push 0
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax]
push edi
call fcn.0049f200
mov ecx, dword [edi + 0x38]
call fcn.0049ddf0
cmp eax, 1
jne 0x49d3e0
test edx, edx
jne 0x49d3e0
push dword [ebp - 0x244]
mov byte [esi + 0x148], 1
mov ecx, edi
push dword [ebp - 0x248]
mov eax, dword [edi + 0x78]
push dword [ebp - 0x24c]
mov dword [esi + 0x138], eax
push dword [ebp - 0x250]
mov eax, dword [edi + 0x7c]
push esi
mov dword [esi + 0x13c], eax
call fcn.0049d490
lea ecx, [ebp - 0x240]
mov esi, eax
call fcn.0049baf0
lea ecx, [ebp - 0x228]
call fcn.0049bb30
push ebx
call fcn.004b8926
add esp, 4
mov eax, esi
jmp 0x49d174
mov eax, 0x8007000e
jmp 0x49d174
call fcn.0049f350
call fcn.0049f350
int3