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

Disassembly:
push 0xffffffffffffffff
push 0x562c12
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63d20c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x108], esi
mov eax, dword [esp + 0x13c]
mov dword [esi + 4], eax
mov ebp, dword [esp + 0x140]
mov eax, 0xd
xor ebx, ebx
push ebx
lea ecx, [esp + 0xec]
push ecx
mov dword [esi], vtable.StandardSecurityHandler.0
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x30], ebx
mov ecx, dword [ebp + 8]
push 0x5bf834
mov dword [esp + 0x140], ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x118], eax
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0xcc]
push edx
push 0x5c0110
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0xbc]
push eax
push str.Length
call fcn.0047c300
push ebx
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [ebp + 8]
push 0x5c0510
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0x2c]
push edx
push 0x5bfb34
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x9c]
push eax
push 0x5c050c
call fcn.0047c300
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 8]
push 0x5c7c5c
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0xdc]
push edx
push 0x5c01c4
call fcn.0047c300
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x20]
push ebx
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [eax + 0x30]
push 0x5c6968
call fcn.0047c300
mov eax, 1
cmp dword [esp + 0xe8], eax
jne 0x4ca7d7
cmp dword [esp + 0xc8], eax
jne 0x4ca7d7
cmp dword [esp + 0xd8], eax
jne 0x4ca7d7
mov ecx, 3
cmp dword [esp + 0xf8], ecx
jne 0x4ca7d7
cmp dword [esp + 0x28], ecx
jne 0x4ca7d7
mov edi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xf0]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
cmp edi, 2
je 0x4ca2fd
cmp dword [esp + 0xb8], eax
jne 0x4ca2fd
mov eax, dword [esp + 0xc0]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x30], eax
jmp 0x4ca304
mov dword [esi + 0x30], 5
mov dword [esi + 0x40], 1
cmp ecx, 4
je 0x4ca319
cmp ecx, 5
jne 0x4ca5b5
cmp edi, 4
je 0x4ca32c
cmp edi, 5
je 0x4ca32c
cmp edi, 6
jne 0x4ca5b5
mov ecx, dword [ebp + 8]
push ebx
lea edx, [esp + 0x7c]
push edx
push 0x5c7c58
call fcn.0047c300
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x5c]
push eax
push str.StmF
call fcn.0047c300
push ebx
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [ebp + 8]
push str.StrF
call fcn.0047c300
cmp dword [esp + 0x78], 7
jne 0x4ca567
mov eax, 4
cmp dword [esp + 0x58], eax
jne 0x4ca567
cmp dword [esp + 0x88], eax
jne 0x4ca567
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x90]
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ca3c0
cmp dl, bl
je 0x4ca3bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ca3c0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4ca3a0
xor eax, eax
jmp 0x4ca3c5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4ca567
mov ecx, str.Identity
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ca3f4
cmp dl, bl
je 0x4ca3f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ca3f4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4ca3d4
xor eax, eax
jmp 0x4ca3f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4ca420
lea ecx, [esp + 0x88]
call fcn.0047c660
lea ecx, [esp + 0x58]
call fcn.0047c660
lea ecx, [esp + 0x78]
call fcn.0047c660
jmp 0x4ca7e7
mov ecx, dword [esp + 0x80]
push ebx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.0047c300
cmp dword [eax], 7
jne 0x4ca55e
mov ecx, dword [esp + 0x40]
push ebx
lea eax, [esp + 0x6c]
push eax
push 0x5c7c44
call fcn.0047c300
push 0x5c7c40
lea ecx, [esp + 0x6c]
call fcn.0041ba50
test eax, eax
je 0x4ca49e
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x48]
push str.Length
call fcn.0047c300
cmp dword [eax], 1
jne 0x4ca482
mov edx, dword [esp + 0x20]
mov dword [esi + 0x30], edx
lea ecx, [esp + 0x18]
call fcn.0047c660
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], 3
jmp 0x4ca555
push str.AESV2
lea ecx, [esp + 0x6c]
call fcn.0041ba50
test eax, eax
je 0x4ca4db
mov ecx, dword [esp + 0x40]
push ebx
lea eax, [esp + 0x1c]
push eax
push str.Length
call fcn.0047c300
cmp dword [eax], 1
jne 0x4ca4d0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x30], ecx
lea ecx, [esp + 0x18]
call fcn.0047c660
jmp 0x4ca51c
push str.AESV3
lea ecx, [esp + 0x6c]
call fcn.0041ba50
test eax, eax
je 0x4ca555
mov ecx, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x1c]
push edx
push str.Length
call fcn.0047c300
cmp dword [eax], 1
jne 0x4ca50d
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
lea ecx, [esp + 0x18]
call fcn.0047c660
cmp dword [esi + 0x30], 0x10
jne 0x4ca533
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], 3
mov dword [esi + 0x3c], 1
jmp 0x4ca555
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], 5
cmp eax, 5
je 0x4ca54e
cmp eax, 6
je 0x4ca54e
mov dword [esi + 0x38], 6
mov dword [esi + 0x3c], 2
lea ecx, [esp + 0x68]
call fcn.0047c660
lea ecx, [esp + 0x38]
call fcn.0047c660
lea ecx, [esp + 0x88]
call fcn.0047c660
lea ecx, [esp + 0x58]
call fcn.0047c660
lea ecx, [esp + 0x78]
call fcn.0047c660
push ebx
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [ebp + 8]
push str.EncryptMetadata
call fcn.0047c300
cmp dword [eax], ebx
jne 0x4ca5a9
mov edx, dword [esp + 0x114]
mov dword [esi + 0x40], edx
lea ecx, [esp + 0x10c]
call fcn.0047c660
mov eax, dword [esi + 0x38]
cmp eax, 4
mov ecx, dword [esp + 0x100]
jg 0x4ca5e0
cmp dword [ecx], 0x20
jne 0x4ca5d2
mov eax, dword [esp + 0x30]
cmp dword [eax], 0x20
je 0x4ca61b
push str.Invalid_encryption_key_length
push 0xffffffffffffffff
push 1
jmp 0x4ca7df
cmp eax, 6
jg 0x4ca61b
mov eax, dword [ecx]
cmp eax, 0x30
jl 0x4ca5d2
mov edx, dword [esp + 0x30]
cmp dword [edx], 0x30
jl 0x4ca5d2
mov eax, 3
cmp dword [esp + 0x98], eax
jne 0x4ca5d2
mov edx, dword [esp + 0xa0]
cmp dword [edx], 0x20
jne 0x4ca5d2
cmp dword [esp + 0x48], eax
jne 0x4ca5d2
mov eax, dword [esp + 0x50]
jmp 0x4ca5cd
mov edx, dword [esp + 0xe0]
mov dword [esi + 8], edx
call fcn.0041b9d0
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x44], eax
call fcn.0041b9d0
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x34]
mov edi, 1
cmp eax, edi
jl 0x4ca74c
cmp eax, 2
jg 0x4ca74c
mov ecx, dword [esi + 0x38]
cmp ecx, 2
jl 0x4ca74c
cmp ecx, 3
jg 0x4ca74c
cmp dword [esp + 0xa8], 6
jne 0x4ca702
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x11c]
push eax
push ebx
call fcn.0047c000
cmp dword [eax], 3
jne 0x4ca6af
mov ecx, dword [esp + 0x124]
call fcn.0041b9d0
lea ecx, [esp + 0x11c]
mov dword [esi + 0x54], eax
call fcn.0047c660
jmp 0x4ca731
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x134], 1
cmp eax, ebx
je 0x4ca6e8
mov ecx, eax
call fcn.0047ab30
lea ecx, [esp + 0x11c]
mov byte [esp + 0x134], bl
mov dword [esi + 0x54], eax
call fcn.0047c660
jmp 0x4ca731
xor eax, eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x134], bl
mov dword [esi + 0x54], eax
call fcn.0047c660
jmp 0x4ca731
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x134], 2
cmp eax, ebx
je 0x4ca725
mov ecx, eax
call fcn.0047ab30
jmp 0x4ca727
xor eax, eax
mov byte [esp + 0x134], bl
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x30]
cmp eax, 0x10
jg 0x4ca73d
cmp eax, ebx
jg 0x4ca744
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x58], edi
jmp 0x4ca7e7
cmp eax, 5
jne 0x4ca7bf
mov ecx, dword [esi + 0x38]
cmp ecx, eax
je 0x4ca75d
cmp ecx, 6
jne 0x4ca7bf
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x134], 3
cmp eax, ebx
je 0x4ca780
mov ecx, eax
call fcn.0047ab30
jmp 0x4ca782
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov byte [esp + 0x134], bl
mov dword [esi + 0x54], eax
call fcn.0041b9d0
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x4c], eax
call fcn.0041b9d0
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x30]
cmp eax, 0x20
jg 0x4ca7b3
cmp eax, ebx
jg 0x4ca7ba
mov dword [esi + 0x30], 0x20
mov dword [esi + 0x58], edi
jmp 0x4ca7e7
mov ecx, dword [esi + 0x38]
push ecx
push eax
push str.Unsupported_version_revision__0:d_1:d__of_Standard_security_handler
push 0xffffffffffffffff
push 6
call fcn.00489570
add esp, 0x14
jmp 0x4ca7e7
push str.Invalid_encryption_parameters
push 0xffffffffffffffff
push eax
call fcn.00489570
add esp, 0xc
lea ecx, [esp + 0xa8]
call fcn.0047c660
lea ecx, [esp + 0xd8]
call fcn.0047c660
lea ecx, [esp + 0x48]
call fcn.0047c660
lea ecx, [esp + 0x98]
call fcn.0047c660
lea ecx, [esp + 0x28]
call fcn.0047c660
lea ecx, [esp + 0xf8]
call fcn.0047c660
lea ecx, [esp + 0xb8]
call fcn.0047c660
lea ecx, [esp + 0xc8]
call fcn.0047c660
lea ecx, [esp + 0xe8]
call fcn.0047c660
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8