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

Disassembly:
push 0xffffffffffffffff
push 0x5dc796
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x48], 0x5e5238
mov word [esp + 0x4c], 0xffff
mov word [esp + 0x4e], si
mov al, byte [esp + 0x13]
mov dword [esp + 0x9c], esi
mov byte [esp + 0x50], al
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.00558060
push 6
push 0x60e954
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 2
call fcn.00558100
push 6
push 0x60e9dc
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 3
call fcn.00558100
xor bl, bl
mov byte [esp + 0x9c], 4
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x30]
push ecx
push 5
lea ecx, [esp + 0x20]
call fcn.005584a0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00558070
mov ecx, dword [0x619a58]
call fcn.00546580
inc bl
cmp bl, 6
mov byte [esp + 0x30], bl
jbe 0x51925f
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x1c]
push edi
push 5
call fcn.005584a0
push edi
push 5
lea ecx, [esp + 0x20]
call fcn.005584a0
mov ax, word [0x60aa30]
xor ecx, ecx
mov word [esp + 0x80], ax
mov dword [esp + 0x82], ecx
movsx eax, di
mov dword [esp + 0x86], ecx
mov byte [esp + 0x40], 0x10
mov byte [esp + 0x41], 0x12
mov byte [esp + 0x42], 0x13
mov byte [esp + 0x43], 0x15
mov byte [esp + 0x44], 0x20
mov byte [esp + 0x45], 0x20
mov byte [esp + 0x46], 0x20
mov bl, byte [esp + eax + 0x40]
mov dword [esp + 0x8a], ecx
mov dword [esp + 0x8e], ecx
cmp bl, 0x10
mov byte [esp + 0x14], 1
mov byte [esp + 0x15], 2
mov byte [esp + 0x16], 3
mov word [esp + 0x92], cx
mov dword [esp + 0x38], eax
mov byte [esp + 0x34], bl
jne 0x5193dc
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 5
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e9d4
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x5193dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x5193c9
jmp 0x519cbb
cmp bl, 0x12
jne 0x51948e
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 6
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e9cc
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51948e
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51947b
jmp 0x519cbb
cmp bl, 0x13
jne 0x519540
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 7
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e9c4
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x519540
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51952d
jmp 0x519cbb
cmp bl, 0x15
jne 0x5195f2
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 8
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e9bc
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x5195f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x5195df
jmp 0x519cbb
cmp bl, 0x20
jne 0x5196a6
push esi
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 9
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60e9b4
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x5196a6
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x519691
jmp 0x519cbb
xor esi, esi
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00558070
mov ecx, dword [0x619a64]
call fcn.00548370
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60e9ac
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60e9a4
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60e99c
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
lea edi, [esp + 0x90]
or ecx, 0xffffffff
mov dword [esp + 0x4c], esp
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
call fcn.004018c0
test al, al
je 0x519780
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x90]
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 [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
xor esi, esi
mov byte [ebx], 0
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0xb4], 0xa
call fcn.00558070
mov ecx, dword [0x619a64]
mov byte [esp + 0xb0], 4
call fcn.00548570
mov ecx, dword [0x619a64]
call fcn.00548950
cmp ax, 2
je 0x519ba2
cmp ax, si
jne 0x5199b1
cmp byte [0x619c14], 1
je 0x5198cd
mov ebx, dword [esp + 0x34]
cmp bl, 0x20
jne 0x51983a
push 5
push 0x60e994
lea ecx, [esp + 0x2c]
call fcn.00558100
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x9c], 0xc
mov dl, byte [esp + ecx + 0x10]
lea ecx, [esp + 0x24]
push edx
push 4
call fcn.005584a0
lea eax, [esp + 0x50]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00558070
mov ecx, 0x626b00
call fcn.00517240
mov byte [esp + 0x9c], 4
lea ecx, [esp + 0x24]
jmp 0x51988a
push 4
push 0x60e98c
lea ecx, [esp + 0x30]
call fcn.00558100
push ebx
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], 0xd
call fcn.005584a0
lea eax, [esp + 0x50]
lea edx, [esp + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00558070
mov ecx, 0x626b00
call fcn.00517240
mov byte [esp + 0x9c], 4
lea ecx, [esp + 0x28]
call fcn.005581a0
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x519bfa
mov ecx, dword [esp + 0x58]
sub ecx, eax
test ecx, 0xfffffffc
je 0x519bfa
push esi
lea ecx, [esp + 0x54]
call fcn.00402a80
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00558070
lea ecx, [esp + 0x24]
call fcn.00558390
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 0xf
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x60e984
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
push 0x320
call fcn.00401520
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60e97c
call fcn.00558100
lea edx, [esp + 0x64]
push edx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
cmp eax, esi
jne 0x519944
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x5199a0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x519997
cmp al, 0xff
je 0x519997
dec al
mov byte [ecx], al
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
jmp 0x5196a4
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
jmp 0x5196a4
cmp ax, 1
jne 0x5196a6
cmp byte [0x619c14], 1
je 0x519abe
mov ebx, dword [esp + 0x34]
cmp bl, 0x20
jne 0x519a2b
push 5
push 0x60e974
lea ecx, [esp + 0x34]
call fcn.00558100
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x9c], 0x10
mov dl, byte [esp + ecx + 0x10]
lea ecx, [esp + 0x2c]
push edx
push 4
call fcn.005584a0
lea eax, [esp + 0x50]
lea edx, [esp + 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00558070
mov ecx, 0x626b00
call fcn.00517240
mov byte [esp + 0x9c], 4
lea ecx, [esp + 0x2c]
jmp 0x519a7b
push 4
push 0x60e96c
lea ecx, [esp + 0x38]
call fcn.00558100
push ebx
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 0x11
call fcn.005584a0
lea eax, [esp + 0x50]
lea edx, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00558070
mov ecx, 0x626b00
call fcn.00517240
mov byte [esp + 0x9c], 4
lea ecx, [esp + 0x30]
call fcn.005581a0
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x519c21
mov ecx, dword [esp + 0x58]
sub ecx, eax
test ecx, 0xfffffffc
je 0x519c21
push esi
lea ecx, [esp + 0x54]
call fcn.00402a80
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00558070
lea ecx, [esp + 0x24]
call fcn.00558390
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 0x13
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x60e984
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
push 0x320
call fcn.00401520
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60e964
call fcn.00558100
lea edx, [esp + 0x74]
push edx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
cmp eax, esi
jne 0x519b35
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x519b91
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x519b88
cmp al, 0xff
je 0x519b88
dec al
mov byte [ecx], al
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
jmp 0x5196a4
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
jmp 0x5196a4
mov al, byte [0x619c14]
test al, al
jne 0x519c64
push 2
push 0x60a9e4
lea ecx, [esp + 0x40]
call fcn.00558100
lea ecx, [esp + 0x50]
lea edx, [esp + 0x38]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0xa8], 0xb
call fcn.00558070
mov ecx, 0x626b00
call fcn.00517240
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 4
call fcn.005581a0
jmp 0x519c64
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 0xe
mov ecx, esp
mov dword [esp + 0x4c], esp
jmp 0x519c46
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0xac], 0x12
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x60e95c
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 3
call fcn.005581a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 2
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 1
call fcn.005581a0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
cmp esi, eax
mov byte [esp + 0x9c], 0
mov edi, eax
je 0x519cbf
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x519cad
mov esi, dword [esp + 0x54]
push esi
call fcn.005bc500
mov ecx, dword [esp + 0x98]
add esp, 4
xor ax, ax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4