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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x64]
mov dword [edi], 0
mov ecx, dword [ebp + 0x18]
mov eax, 3
cmp dword [ecx + 0x8c], 1
je 0x814730
lea eax, [esp + 0x78]
mov esi, dword [eax + 4]
test esi, esi
je 0x81459b
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov byte [esp + 1], 0
mov word [esp + 2], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 1]
lea ebx, [esp + 0x10]
push eax
push ebx
call sym.adb.exe_CBS_get_u8
add esp, 8
test eax, eax
je 0x814729
lea eax, [esp + 2]
push eax
push ebx
call sym.adb.exe_CBS_get_u16
add esp, 8
test eax, eax
je 0x814729
lea eax, [esp + 8]
push 8
push eax
push ebx
call sym.adb.exe_CBS_copy_bytes
add esp, 0xc
test eax, eax
je 0x814729
lea eax, [esp + 0x18]
push eax
push ebx
call sym.adb.exe_CBS_get_u16_length_prefixed
add esp, 8
test eax, eax
je 0x814729
lea eax, [esp + 0x18]
push eax
call sym.adb.exe_CBS_len
add esp, 4
cmp eax, 0x4141
jae 0x814729
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xd0]
cmp dword [ecx], 0
movzx ebx, word [esp + 2]
je 0x8145a5
call fcn.007d2b00
cmp bx, ax
je 0x8145b7
jmp 0x814729
mov eax, 2
jmp 0x814730
and ebx, 0xff00
cmp ebx, 0xfe00
jne 0x814729
cmp esi, 0xd
mov ecx, 0xd
cmovb ecx, esi
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], ecx
sub esp, 0x14
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp + 0xc], xmm0
mov dword [esp], ebp
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.00730be0
add esp, 0x14
movzx eax, word [esp + 8]
rol ax, 8
movzx eax, ax
mov ecx, dword [ebp + 0x1c]
movzx edx, word [ecx + 0x108]
cmp eax, edx
jne 0x81471a
add ecx, 0x110
lea edx, [esp + 8]
call fcn.008147a0
test al, al
jne 0x81471a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xd0]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 1]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
lea ebx, [esp + 0x18]
push ebx
call sym.adb.exe_CBS_data
add esp, 4
mov dword [esp + 4], eax
push ebx
call sym.adb.exe_CBS_len
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
sub esp, 0x20
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x10], xmm0
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov ebx, eax
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
call fcn.007d2d00
test al, al
je 0x814715
lea eax, [esp + 0x10]
push eax
call sym.adb.exe_CBS_len
add esp, 4
sub esi, eax
mov dword [edi], esi
cmp dword [ebx + 4], 0x4001
jb 0x814738
push 0xfe
push str.external_boringssl_src_ssl_dtls_record.cc
push 0x88
push 0
push 0x10
call sym.adb.exe_ERR_put_error
add esp, 0x14
mov eax, dword [esp + 0x74]
mov byte [eax], 0x16
mov eax, 4
jmp 0x814730
call sym.adb.exe_ERR_clear_error
lea eax, [esp + 0x10]
push eax
call sym.adb.exe_CBS_len
add esp, 4
sub esi, eax
mov dword [edi], esi
mov eax, 1
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x74]
mov ecx, 0x110
add ecx, dword [ebp + 0x1c]
lea edx, [esp + 8]
call fcn.00814800
movzx eax, byte [esp + 1]
cmp al, 0x15
jne 0x814783
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], ebp
call fcn.00813930
add esp, 0x10
jmp 0x814730
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp + 0x18]
mov byte [edx + 0xab], 0
mov byte [ecx], al
xor eax, eax
jmp 0x814730