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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c176
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x639354]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x248], 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 - 0x244], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x240], eax
call fcn.0055c53b
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.0055c53b
mov dword [esi + 0x24], 0
push dword [esi + 0x28]
call fcn.0055c53b
mov dword [esi + 0x28], 0
push dword [esi + 0x2c]
call fcn.0055c53b
mov dword [esi + 0x2c], 0
push dword [esi + 0x30]
call fcn.0055c53b
mov dword [esi + 0x30], 0
push dword [esi + 0x34]
call fcn.0055c53b
mov dword [esi + 0x34], 0
push dword [esi + 0x38]
call fcn.0055c53b
mov dword [esi + 0x38], 0
add esp, 0x1c
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4198af
push eax
call fcn.0055c53b
add esp, 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x4198d3
push eax
call fcn.0055c53b
add esp, 4
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
push dword [esi + 0xf0]
call fcn.0055c53b
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.0055c53b
mov dword [esi + 0x130], 0
push dword [esi + 0x134]
call fcn.0055c53b
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 [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], ecx
mov cl, byte [ebx + 0x5e]
mov byte [esi + 0xf8], cl
mov al, byte [ebx + 0x5f]
mov byte [esi + 0xf9], al
test cl, cl
jne 0x419d4f
cmp dword [ebx + 0x60], 0
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
mov edi, dword [ebx + 0x6c]
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], eax
jne 0x419bf0
mov eax, edx
or eax, ecx
jne 0x419bf0
mov eax, edi
or eax, dword [ebp - 0x224]
jne 0x419bf0
cmp dword [ebp - 0x228], eax
jne 0x419bf0
mov ecx, dword [ebx]
lea edx, [ebp - 0x254]
push edx
push 1
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x419d54
mov ecx, dword [ebx]
lea edx, [ebp - 0x238]
push edx
push 2
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x419d54
mov edx, dword [ebp - 0x238]
mov edi, 0x200
mov ecx, dword [ebp - 0x234]
mov eax, edx
sub eax, dword [ebp - 0x254]
mov dword [ebp - 0x214], ecx
sbb ecx, dword [ebp - 0x250]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
test ecx, ecx
ja 0x419b11
jb 0x419b06
cmp eax, edi
jae 0x419b11
mov edi, eax
cmp edi, 3
jb 0x419d4f
mov ecx, dword [ebx]
sub edx, edi
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 0x419d54
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebx]
call fcn.004324b0
add esp, 0xc
test eax, eax
jne 0x419d54
cmp byte [ebp + edi - 0x211], al
jne 0x419d4f
lea eax, [edi - 2]
nop
mov cl, byte [ebp + eax - 0x210]
cmp cl, 0x17
jne 0x419b76
cmp byte [ebp + eax - 0x20f], 6
jmp 0x419b83
cmp cl, 1
jne 0x419b85
cmp byte [ebp + eax - 0x20f], 4
je 0x419b90
test eax, eax
je 0x419d4f
dec eax
jmp 0x419b60
mov edx, dword [ebp - 0x220]
xor ecx, ecx
sub edi, eax
mov dword [ebp - 0x224], ecx
sub dword [ebp - 0x21c], edi
sbb edx, ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x220], edx
add ecx, eax
mov edx, edi
call fcn.00402670
mov edx, dword [ebx]
push 0
push 0
push dword [ebp - 0x250]
mov ecx, dword [edx]
push dword [ebp - 0x254]
mov dword [ebp - 0x228], eax
push edx
call dword [ecx + 0x10]
test eax, eax
jne 0x419d54
mov edx, dword [ebp - 0x21c]
mov byte [esi + 0x14c], 1
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x44]
add ecx, 0x20
mov dword [esi + 0x108], ecx
mov ecx, dword [ebp - 0x220]
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 0x419d4f
jg 0x419c3b
test edx, edx
jb 0x419d4f
cmp dword [ebp - 0x224], 0x40000000
ja 0x419d4f
jb 0x419c55
test edi, edi
jne 0x419d4f
mov eax, edi
mov dword [ebx + 0x78], 0x20
or eax, dword [ebp - 0x224]
mov dword [ebx + 0x7c], 0
jne 0x419c95
or edx, ecx
jne 0x419d4f
mov byte [esi + 0x148], 1
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov dword [esi + 0x138], eax
xor eax, eax
mov dword [esi + 0x13c], ecx
jmp 0x419d54
cmp byte [esi + 0x14c], 0
mov eax, 0x20
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], 0
jne 0x419ccc
mov byte [esi + 0x148], 1
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x214], edx
mov edx, dword [ebp - 0x21c]
add eax, edi
mov dword [ebx + 0x50], edx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x224]
adc dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x230]
mov dword [ebx + 0x78], ecx
mov ecx, dword [ebp - 0x214]
mov dword [ebx + 0x7c], ecx
mov ecx, dword [ebp - 0x220]
mov dword [ebx + 0x54], ecx
mov dword [ebp - 0x214], edi
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 [ebx + 0x48]
sub ecx, dword [esi + 0x108]
mov eax, dword [ebx + 0x4c]
sbb eax, dword [esi + 0x10c]
cmp eax, edx
ja 0x419d72
jb 0x419d48
cmp ecx, dword [ebp - 0x214]
jae 0x419d72
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.0055c3a9
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x220]
push 0
push 1
mov eax, dword [ecx]
push edx
mov edx, dword [ebp - 0x21c]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x419d54
cmp eax, dword [ebp - 0x224]
jne 0x41a044
push edi
call fcn.0055c532
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], edi
push edi
push eax
push dword [ebx]
mov dword [ebp - 4], 0
call fcn.004324b0
add esp, 0x10
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x419f13
mov ecx, dword [ebp - 0x218]
mov edx, edi
call fcn.00402670
cmp eax, dword [ebp - 0x228]
jne 0x41a04e
cmp byte [esi + 0x14c], 0
jne 0x419df8
mov byte [esi + 0x149], 1
mov word [ebp - 0x228], 0
mov edx, dword [ebx + 4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x22c], ebx
cmp edx, 4
je 0x41a053
lea eax, [edx + 1]
mov word [ebp - 0x228], 1
lea eax, [edx + eax*2]
mov dword [ebp - 0x23c], 0
lea ecx, [ebx + eax*4]
lea eax, [edx + 1]
mov dword [ebx + 0x38], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], edi
xor edi, edi
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov ecx, dword [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.0041ac40
cmp eax, 1
jne 0x419e75
test edx, edx
je 0x419fac
cmp eax, 0x17
jne 0x41a04e
test edx, edx
jne 0x41a04e
push dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
mov ecx, ebx
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push eax
lea eax, [esi + 0x118]
push eax
push dword [esi + 0x10c]
push dword [esi + 0x108]
call fcn.00419120
mov dword [ebp - 0x230], eax
test eax, eax
je 0x419f2c
mov esi, dword [ebp - 0x238]
mov ebx, dword [ebp - 0x23c]
test esi, esi
je 0x419eff
lea esp, [esp]
mov edi, dword [ebx + esi*4 - 4]
dec esi
test edi, edi
je 0x419efb
push dword [edi]
call fcn.0055c53b
push 8
push edi
call fcn.0055c524
add esp, 0xc
test esi, esi
jne 0x419ee0
push ebx
call fcn.0055c53b
add esp, 4
lea ecx, [ebp - 0x22c]
call fcn.00418700
push dword [ebp - 0x218]
call fcn.0055c53b
mov eax, dword [ebp - 0x230]
add esp, 4
jmp 0x419d54
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x419f64
push dword [ebp - 0x23c]
call fcn.0055c53b
add esp, 4
lea ecx, [ebp - 0x22c]
call fcn.00418700
push dword [ebp - 0x218]
call fcn.0055c53b
add esp, 4
xor eax, eax
jmp 0x419d54
cmp edi, 1
ja 0x41a04e
lea ecx, [ebp - 0x22c]
call fcn.00418700
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x22c]
push 0
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.0041c080
mov ecx, dword [ebx + 0x38]
call fcn.0041ac40
cmp eax, 1
jne 0x41a04e
test edx, edx
jne 0x41a04e
push dword [ebp - 0x240]
mov byte [esi + 0x148], 1
mov ecx, ebx
push dword [ebp - 0x244]
mov eax, dword [ebx + 0x78]
push dword [ebp - 0x248]
mov edx, dword [ebx + 0x7c]
push dword [ebp - 0x24c]
mov dword [esi + 0x138], eax
push esi
mov dword [esi + 0x13c], edx
call fcn.0041a110
mov ebx, eax
test edi, edi
je 0x41a016
mov eax, dword [ebp - 0x23c]
mov esi, dword [eax + edi*4 - 4]
dec edi
test esi, esi
je 0x41a012
push dword [esi]
call fcn.0055c53b
push 8
push esi
call fcn.0055c524
mov eax, dword [ebp - 0x23c]
add esp, 0xc
test edi, edi
jne 0x419ff1
push dword [ebp - 0x23c]
call fcn.0055c53b
add esp, 4
lea ecx, [ebp - 0x22c]
call fcn.00418700
push dword [ebp - 0x218]
call fcn.0055c53b
add esp, 4
mov eax, ebx
jmp 0x419d54
mov eax, 0x8007000e
jmp 0x419d54
call fcn.0041c250
call fcn.0041c250
int3