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

Disassembly:
push 0xffffffffffffffff
push 0x5dcaa6
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 0x60ebb0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 2
call fcn.00558100
push 6
push 0x60ec1c
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 0x51dcdf
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 [0x60ec18]
mov cl, byte [0x60ec1a]
xor edx, edx
mov word [esp + 0x80], ax
mov dword [esp + 0x83], edx
mov byte [esp + 0x40], 0x12
movsx eax, di
mov dword [esp + 0x87], edx
mov byte [esp + 0x41], 0x13
mov byte [esp + 0x42], 0x15
mov byte [esp + 0x43], 0x18
mov byte [esp + 0x44], 0x20
mov byte [esp + 0x45], 0x20
mov byte [esp + 0x46], 0x20
mov bl, byte [esp + eax + 0x40]
mov dword [esp + 0x8b], edx
cmp bl, 0x12
mov dword [esp + 0x8f], edx
mov byte [esp + 0x14], 1
mov byte [esp + 0x15], 2
mov byte [esp + 0x16], 3
mov byte [esp + 0x82], cl
mov byte [esp + 0x93], dl
mov dword [esp + 0x38], eax
mov byte [esp + 0x34], bl
jne 0x51de68
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 0x60ec10
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51de68
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51de55
jmp 0x51e747
cmp bl, 0x13
jne 0x51df1a
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 0x60ec08
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51df1a
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51df07
jmp 0x51e747
cmp bl, 0x15
jne 0x51dfcc
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 0x60ec00
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51dfcc
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51dfb9
jmp 0x51e747
cmp bl, 0x18
jne 0x51e07e
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 0x60ebf8
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51e07e
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51e06b
jmp 0x51e747
cmp bl, 0x20
jne 0x51e132
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 0x60ebf0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0xac], 4
call fcn.00543af0
cmp ax, 4
jne 0x51e132
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51e11d
jmp 0x51e747
xor esi, esi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
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 0x60ebe8
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 0x60ebe0
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 0x60ebd8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
lea edi, [esp + 0x90]
xor eax, eax
mov dword [esp + 0x4c], esp
mov byte [ebp], cl
or ecx, 0xffffffff
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 0x51e20c
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 0x51e62e
cmp ax, si
jne 0x51e43d
cmp byte [0x619c14], 1
je 0x51e359
mov ebx, dword [esp + 0x34]
cmp bl, 0x20
jne 0x51e2c6
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 0x51e316
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 0x51e686
mov ecx, dword [esp + 0x58]
sub ecx, eax
test ecx, 0xfffffffc
je 0x51e686
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 0x60ebd0
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 0x60ebc8
call fcn.00558100
lea edx, [esp + 0x64]
push edx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
cmp eax, esi
jne 0x51e3d0
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 0x51e42c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x51e423
cmp al, 0xff
je 0x51e423
dec al
mov byte [ecx], al
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
jmp 0x51e130
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
jmp 0x51e130
cmp ax, 1
jne 0x51e132
cmp byte [0x619c14], 1
je 0x51e54a
mov ebx, dword [esp + 0x34]
cmp bl, 0x20
jne 0x51e4b7
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 0x51e507
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 0x51e6ad
mov ecx, dword [esp + 0x58]
sub ecx, eax
test ecx, 0xfffffffc
je 0x51e6ad
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 0x60ebd0
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 0x60ebc0
call fcn.00558100
lea edx, [esp + 0x74]
push edx
call fcn.00560f40
mov eax, dword [eax + 4]
add esp, 8
cmp eax, esi
jne 0x51e5c1
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 0x51e61d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x51e614
cmp al, 0xff
je 0x51e614
dec al
mov byte [ecx], al
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
jmp 0x51e130
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
jmp 0x51e130
mov al, byte [0x619c14]
test al, al
jne 0x51e6f0
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 0x51e6f0
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 0x51e6d2
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 0x60ebb8
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 0x51e74b
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x51e739
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