Function at 0x10049e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dd1b2
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1026ebc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [esi], 0x4e20
xorps xmm0, xmm0
mov byte [esi + 4], 1
movzx eax, word [0x10255734]
movups xmmword [ebp - 0x48], xmm0
mov word [ebp - 0x48], ax
mov al, byte [0x10255736]
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x46], al
mov dword [ebp - 0x30], 0xa
movzx eax, word [0x10255730]
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov al, byte [0x10255732]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x14], 0x14
mov byte [ebp - 4], 2
push 0x2c
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.101d9536
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.10052ab0
push fcn.1004a0f0
push 2
push 0x1c
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
call fcn.101d9566
lea eax, [esi + 0x10]
mov dword [esi + 0x14], 0xc0
mov dword [eax], 0x80
xorps xmm0, xmm0
mov dword [esi + 0x18], 0x100
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov dword [ebp - 0x68], eax
mov byte [esi + 0x1c], 0
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 7
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edx, dword [ebp + 8]
lea esi, [ebp + 8]
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
add eax, ecx
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0x1c], 0x10
cmovae esi, edx
cmp esi, eax
je 0x1004a026
mov edi, dword [ebp - 0x6c]
sub edi, esi
nop dword [eax + eax]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x70]
jne 0x1004a010
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10052880
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x1004a0af
add edx, 0x10
lea ecx, [ebp + 8]
call fcn.100532a0
test al, al
js 0x1004a0af
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp + 0x20]
add edi, 0x1c
push esi
push edi
push dword [ebp - 0x68]
call fcn.101d9380
cmp eax, edi
je 0x1004a0d2
lea eax, [ebp + 8]
cmp edi, eax
je 0x1004a07f
cmp dword [ebp + 0x1c], 0x10
mov ecx, edi
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.100505a0
mov edi, dword [ebp - 0x64]
lea ecx, [ebp + 8]
shr esi, 3
mov dword [edi + 0x34], esi
call fcn.1004a0f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d9510
mov esp, ebp
pop ebp
ret 0x1c
push str._is_not_supported_
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10051130
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.1004eda0
push eax
jmp 0x1004a0d7
push str.Invalid_key_size_
lea ecx, [ebp - 0x80]
call fcn.10047940
push 0x10267368
lea eax, [ebp - 0x80]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3