Function at 0x5d19d0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x320]
sub esp, 0x320
push 0xffffffffffffffff
push 0x664270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x31c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], 0
mov dword [ebp], 0x94
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5d1a5e
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x5d1a59
mov eax, dword [ebp + 4]
cmp eax, 4
jne 0x5d1a65
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.security.dll]
mov word [ebp + eax + 0x94], cx
add eax, 2
test cx, cx
jne 0x5d1a40
jmp 0x5d1ac8
cmp eax, 1
je 0x5d1a6a
xor eax, eax
jmp 0x5d1c3d
cmp eax, 5
jae 0x5d1aa5
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.005d0280
test al, al
je 0x5d1a5e
push str.CheckRegSecurityProvider___OK._r_n
mov ecx, dword [ebx + 0x474]
call fcn.00568c40
mov dword [ebp - 4], 0xffffffff
jmp 0x5d1aa5
cmp dword [ebp + 4], 6
jae 0x5d1aaf
mov byte [ebp - 0x11], 1
xor eax, eax
movzx ecx, word [eax + str.secur32.dll]
mov word [ebp + eax + 0x94], cx
add eax, 2
test cx, cx
jne 0x5d1ab1
cmp dword [ebx + 0x1b4], 0
jne 0x5d1ae6
lea ecx, [ebp + 0x94]
push ecx
call fcn.00447580
add esp, 4
mov dword [ebx + 0x1b4], eax
mov eax, dword [ebx + 0x1b4]
test eax, eax
jne 0x5d1b3f
lea ecx, [ebp - 0x18]
call fcn.00402500
mov dword [ebp - 4], 2
lea edx, [ebp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_x_loading__s._n
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.005c88b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402570
xor eax, eax
jmp 0x5d1c3d
push str.InitSecurityInterfaceA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x5d1b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_x_reading_InitSecurityInterface_entry_point._n
lea edx, [ebp + 0x29c]
push edx
call fcn.006201db
add esp, 0xc
lea eax, [ebp + 0x29c]
push eax
mov ecx, ebx
call fcn.005c88b0
xor eax, eax
jmp 0x5d1c3d
call eax
test eax, eax
jne 0x5d1bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_x_reading_security_interface._n
lea ecx, [ebp + 0x29c]
push ecx
call fcn.006201db
add esp, 0xc
lea edx, [ebp + 0x29c]
push edx
mov ecx, ebx
call fcn.005c88b0
xor eax, eax
jmp 0x5d1c3d
lea edi, [ebx + 0x3fc]
mov ecx, 0x1e
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov dword [ebp - 4], 3
mov eax, dword [ebx + 0x448]
push eax
mov ecx, dword [ebx + 0x464]
push ecx
mov edx, dword [ebx + 0x444]
push edx
mov eax, dword [ebx + 0x460]
push eax
push str.EM__0x_x__0x_x__r_nDM__0x_x__0x_x._r_n
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402f70
add esp, 0x18
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, ebx
call fcn.005c88b0
cmp byte [ebp - 0x11], 0
je 0x5d1c29
mov eax, dword [ebx + 0x444]
mov dword [ebx + 0x460], eax
mov ecx, dword [ebx + 0x448]
mov dword [ebx + 0x464], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402570
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 + 0x31c]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x320
mov esp, ebp
pop ebp
ret