Function at 0x5120e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x58
call fcn.004b7f70
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x54], eax
cmp dword [esp + 0x64], 1
mov ecx, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x64]
je 0x512145
call fcn.00544bd0
push str.tls13_enc
push 0x27
push str.ssl_record_ssl3_record_tls13.c
call fcn.00544cd0
push 0
push 0xc0103
push 0x50
push ebp
call fcn.004ee200
add esp, 0x1c
xor eax, eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
push esi
test ecx, ecx
je 0x512152
mov esi, dword [ebp + 0x744]
jmp 0x512158
mov esi, dword [ebp + 0x724]
xor eax, eax
mov dword [esp + 0x14], esi
test ecx, ecx
mov edx, 0x728
setne al
lea eax, [eax*8 + 0x1308]
add eax, ebp
test ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, 0x748
cmove eax, edx
add eax, ebp
mov dword [esp + 0x10], eax
test esi, esi
je 0x512603
cmp dword [ebx + 4], 0x15
je 0x512603
push esi
call fcn.005460c0
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
test edx, edx
jns 0x5121e6
call fcn.00544bd0
push str.tls13_enc
push 0x43
push str.ssl_record_ssl3_record_tls13.c
call fcn.00544cd0
push 0
push 0xc0103
push 0x50
push ebp
call fcn.004ee200
add esp, 0x1c
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
mov eax, dword [ebp + 0x68]
push edi
cmp eax, 4
je 0x512240
cmp eax, 3
je 0x512240
mov edi, dword [ebp + 0x28c]
test edi, edi
jne 0x51223b
call fcn.00544bd0
push str.tls13_enc
push 0x59
push str.ssl_record_ssl3_record_tls13.c
call fcn.00544cd0
push 0
push 0xc0103
push 0x50
push ebp
call fcn.004ee200
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
mov edi, dword [edi + 0x18]
jmp 0x512277
mov eax, dword [ebp + 0x7cc]
test eax, eax
je 0x512253
cmp dword [eax + 0x300], 0
ja 0x51226e
mov eax, dword [ebp + 0x7d0]
test eax, eax
je 0x5125f2
cmp dword [eax + 0x300], 0
jbe 0x5125f2
mov eax, dword [eax + 0x2d0]
mov edi, dword [eax + 0x18]
mov eax, edi
and eax, 0x3c000
mov dword [esp + 0x28], eax
je 0x5122c4
and edi, 0x30000
neg edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 0x10
cmp dword [esp + 0x78], 0
je 0x5122e4
push 0
push edi
push 0x11
push esi
call fcn.005478f0
add esp, 0x10
test eax, eax
jg 0x5122be
call fcn.00544bd0
push str.tls13_enc
push 0x66
jmp 0x51220a
mov edx, dword [esp + 0x1c]
jmp 0x5122dd
test edi, 0x3000
jne 0x5122d8
test edi, 0x80000
je 0x5125e1
mov edi, 0x10
cmp dword [esp + 0x78], 0
jne 0x5122f7
mov ecx, dword [ebx + 8]
lea eax, [edi + 1]
cmp ecx, eax
jb 0x512226
sub ecx, edi
mov dword [ebx + 8], ecx
cmp edx, 8
jge 0x51230d
call fcn.00544bd0
push str.tls13_enc
push 0x7f
jmp 0x51220a
lea esi, [edx - 8]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
call fcn.004b94a0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [esp + 0x14]
movzx eax, byte [ecx]
xor al, byte [esi + edx]
mov byte [esp + esi + 0x4c], al
movzx eax, byte [esi + edx + 1]
xor al, byte [ecx + 1]
mov byte [esp + esi + 0x4d], al
movzx eax, byte [esi + edx + 2]
xor al, byte [ecx + 2]
mov byte [esp + esi + 0x4e], al
movzx eax, byte [esi + edx + 3]
xor al, byte [ecx + 3]
mov byte [esp + esi + 0x4f], al
movzx eax, byte [esi + edx + 4]
xor al, byte [ecx + 4]
mov byte [esp + esi + 0x50], al
movzx eax, byte [esi + edx + 5]
xor al, byte [ecx + 5]
mov byte [esp + esi + 0x51], al
movzx eax, byte [esi + edx + 6]
xor al, byte [ecx + 6]
add ecx, 7
mov byte [esp + esi + 0x52], al
movzx eax, byte [esi + edx + 7]
xor al, byte [ecx]
mov byte [esp + esi + 0x53], al
mov eax, 8
nop
add byte [ecx], 1
jne 0x5123ae
dec ecx
sub eax, 1
jne 0x512390
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
push dword [esp + 0x78]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
push esi
call fcn.00548550
add esp, 0x18
test eax, eax
jle 0x5125cd
cmp dword [esp + 0x78], 0
jne 0x5123f4
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 8]
push eax
push edi
push 0x11
push esi
call fcn.005478f0
add esp, 0x10
test eax, eax
jle 0x5125cd
push 0
push 5
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0055c6b0
add esp, 0x10
test eax, eax
je 0x512583
mov eax, dword [ebx + 4]
cdq
push 1
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0055c7d0
add esp, 0x10
test eax, eax
je 0x512583
mov eax, dword [ebx]
cdq
push 2
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0055c7d0
add esp, 0x10
test eax, eax
je 0x512583
mov eax, dword [ebx + 8]
push 2
add eax, edi
push 0
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0055c7d0
add esp, 0x10
test eax, eax
je 0x512583
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0055c410
add esp, 8
test eax, eax
je 0x512583
cmp dword [esp + 0x24], 5
jne 0x512583
lea eax, [esp + 0x30]
push eax
call fcn.0055c360
add esp, 4
test eax, eax
je 0x512583
cmp dword [esp + 0x28], 0
je 0x5124c8
push dword [ebx + 8]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.00548580
add esp, 0x14
test eax, eax
jle 0x512226
push 5
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
call fcn.00548580
add esp, 0x14
test eax, eax
jle 0x512226
push dword [ebx + 8]
lea eax, [esp + 0x14]
push dword [ebx + 0x18]
push eax
push dword [ebx + 0x14]
push esi
call fcn.00548580
add esp, 0x14
test eax, eax
jle 0x512226
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x14]
push eax
push esi
call fcn.00548530
add esp, 0xc
test eax, eax
jle 0x512226
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x10]
mov edx, dword [ebx + 8]
cmp eax, edx
jne 0x512226
cmp dword [esp + 0x78], 0
je 0x51256b
mov eax, dword [ebx + 0x14]
add eax, edx
push eax
push edi
push 0x10
push esi
call fcn.005478f0
add esp, 0x10
test eax, eax
jg 0x512568
call fcn.00544bd0
push str.tls13_enc
push 0xba
jmp 0x51220a
add dword [ebx + 8], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
call fcn.00544bd0
push str.tls13_enc
push 0xa2
push str.ssl_record_ssl3_record_tls13.c
call fcn.00544cd0
push 0
push 0xc0103
push 0x50
push ebp
call fcn.004ee200
lea eax, [esp + 0x4c]
push eax
call fcn.0055c200
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret
call fcn.00544bd0
push str.tls13_enc
push 0x96
jmp 0x51220a
call fcn.00544bd0
push str.tls13_enc
push 0x6e
jmp 0x51220a
call fcn.00544bd0
push str.tls13_enc
push 0x4e
jmp 0x51220a
push dword [ebx + 8]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
call fcn.004b94a0
mov eax, dword [ebx + 0x14]
add esp, 0xc
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x18], eax
mov eax, 1
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x58
ret