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

Disassembly:
mov eax, 0x90
call fcn.0051b8b0
mov eax, dword [0x5a49f0]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
mov ebx, dword [esp + 0x98]
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], 0
call fcn.004b4ef0
add esp, 4
cmp dword [ebx + 0x34], 0x2150
jne 0x4a12bb
mov esi, dword [ebx + 0x58]
xor ebp, ebp
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x98]
mov dword [esp + 0x38], edx
mov ecx, dword [esi + 0x344]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 0
test al, 1
je 0x4a0a98
mov esi, dword [edi + 0x1c]
test esi, esi
jne 0x4a0a64
mov edx, dword [edi + 0x20]
test edx, edx
je 0x4a0a84
mov ecx, dword [ecx + 0x20]
mov eax, 0x400
test cl, 8
mov esi, 0x200
cmovne eax, esi
and ecx, 2
push eax
push ecx
push ebx
call edx
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4a0a58
push 0x67a
push str.._ssl_s3_srvr.c
push 0x11a
jmp 0x4a1455
push esi
call fcn.004a8f00
add esp, 4
mov dword [edi + 0x1c], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x58]
mov dword [eax + 0x370], 1
jmp 0x4a0ea5
push 0x683
push str.._ssl_s3_srvr.c
push 0xac
jmp 0x4a1455
test al, 8
je 0x4a0b7d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x4a0aec
mov edx, dword [edi + 0x28]
test edx, edx
je 0x4a0ad8
mov ecx, dword [esi + 0x344]
mov eax, 0x400
mov esi, 0x200
mov ecx, dword [ecx + 0x20]
test cl, 8
cmovne eax, esi
and ecx, 2
push eax
push ecx
push ebx
call edx
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x4a0aec
push 0x697
push str.._ssl_s3_srvr.c
push 0xab
jmp 0x4a1455
mov eax, dword [ebx + 0x58]
cmp dword [eax + 0x348], ebp
je 0x4a0b17
push 0x69d
push str.._ssl_s3_srvr.c
push 0x44
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
push ecx
call fcn.004bc5b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a0b46
push 0x6a2
push str.._ssl_s3_srvr.c
push 5
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
mov eax, dword [ebx + 0x58]
push esi
mov dword [eax + 0x348], esi
call fcn.004bd780
add esp, 4
test eax, eax
jne 0x4a0b63
push 0x6a8
jmp 0x4a0b2b
mov eax, dword [esi + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x60], eax
jmp 0x4a0ea5
test al, al
jns 0x4a0e2d
cmp dword [esi + 0x34c], ebp
je 0x4a0b97
push 0x6b6
jmp 0x4a0afc
mov esi, dword [edi + 0x2c]
cmp dword [edi + 0x34], ebp
je 0x4a0bb9
push 0xfffffffffffffffe
push ebx
call fcn.0048d210
add esp, 8
test eax, eax
je 0x4a0be4
push eax
call fcn.004c0b70
add esp, 4
jmp 0x4a0be2
test esi, esi
jne 0x4a0bfc
mov edx, dword [edi + 0x30]
test edx, edx
je 0x4a0be8
mov ecx, dword [ecx + 0x20]
mov eax, 0x400
test cl, 8
mov esi, 0x200
cmovne eax, esi
and ecx, 2
push eax
push ecx
push ebx
call edx
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4a0bfc
push 0x6ca
push str.._ssl_s3_srvr.c
push 0x137
jmp 0x4a1455
mov eax, dword [ebx + 0x98]
cmp dword [eax + 0x34], ebp
jne 0x4a0c36
push esi
call fcn.004c0860
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a0c36
push 0x6d2
push str.._ssl_s3_srvr.c
push 0x2b
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
mov eax, dword [ebx + 0x58]
push esi
mov dword [eax + 0x34c], esi
call fcn.004cd990
add esp, 4
test eax, eax
je 0x4a0c65
push esi
call fcn.004b7f00
add esp, 4
test eax, eax
je 0x4a0c65
test dword [ebx + 0x100], 0x80000
je 0x4a0c92
push esi
call fcn.004c0900
add esp, 4
test eax, eax
jne 0x4a0c92
push 0x6dc
push str.._ssl_s3_srvr.c
push 0x2b
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
push esi
call fcn.004b8280
mov edi, eax
add esp, 4
test edi, edi
je 0x4a0e0d
push esi
call fcn.004cd990
add esp, 4
test eax, eax
je 0x4a0e0d
push esi
call fcn.004b7f00
add esp, 4
test eax, eax
je 0x4a0e0d
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x344]
test byte [eax + 0x20], 2
je 0x4a0d09
push edi
call fcn.004bf3a0
add esp, 4
cmp eax, 0xa3
jle 0x4a0d09
push 0x6eb
push str.._ssl_s3_srvr.c
push 0x136
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
push edi
call fcn.004bf390
push eax
call fcn.0048bbd0
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4a0d43
push 0x6f8
push str.._ssl_s3_srvr.c
push 0x13b
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
push 0
push 0
push 0
push 4
push esi
call fcn.004cd990
add esp, 4
push eax
push edi
call fcn.004c0530
push 0x706
push str.._ssl_s3_srvr.c
push eax
mov dword [esp + 0x50], eax
call fcn.004a29e0
add esp, 0x24
mov dword [esp + 0x20], eax
call fcn.004bb220
mov ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
test eax, eax
je 0x4a0ded
test ebp, ebp
je 0x4a0ded
push ebp
push dword [esp + 0x30]
push eax
push 4
push esi
call fcn.004cd990
add esp, 4
push eax
push edi
call fcn.004c0530
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4a0dd0
push 0x714
push str.._ssl_s3_srvr.c
push 0x2b
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a147d
push ebp
call fcn.004bb190
mov ebp, dword [esp + 0x2c]
xorps xmm0, xmm0
add esp, 4
add ebp, 4
movups xmmword [esp + 0x58], xmm0
jmp 0x4a0ea5
push 0x70a
push str.._ssl_s3_srvr.c
push 0x41
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a147d
push 0x6e4
push str.._ssl_s3_srvr.c
push 0x2b
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
test eax, 0x100
je 0x4a0e52
mov eax, dword [ebx + 0xe4]
mov ebp, dword [eax + 0x14c]
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x4a0e43
sub ebp, ecx
add ebp, 2
jmp 0x4a0ea5
test eax, 0x400
je 0x4a1446
mov eax, dword [ebx + 0x1a8]
test eax, eax
je 0x4a1426
mov ecx, dword [ebx + 0x1ac]
test ecx, ecx
je 0x4a1426
mov edx, dword [ebx + 0x1b0]
test edx, edx
je 0x4a1426
mov esi, dword [ebx + 0x1b4]
test esi, esi
je 0x4a1426
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
nop
mov eax, dword [esp + eax*4 + 0x58]
test eax, eax
je 0x4a0f03
push eax
call fcn.004a5170
add eax, 7
add esp, 4
cdq
and edx, 7
lea ecx, [edx + eax]
mov eax, dword [esp + 0x10]
sar ecx, 3
mov dword [esp + eax*4 + 0x68], ecx
cmp eax, 2
jne 0x4a0ef4
test ebx, 0x400
je 0x4a0ee6
inc ebp
jmp 0x4a0ef7
test bl, 8
je 0x4a0ef4
mov ecx, dword [esp + 0x68]
add ecx, 2
jmp 0x4a0ef7
add ebp, 2
inc eax
add ebp, ecx
mov dword [esp + 0x10], eax
cmp eax, 4
jl 0x4a0eb0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0x344]
test dword [eax + 0x10], 0x404
jne 0x4a0f66
test dword [eax + 0xc], 0x100
jne 0x4a0f66
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
call fcn.0047a0c0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4a0f47
lea esi, [eax + 0x32]
jmp 0x4a1469
push esi
call fcn.004a8a80
mov ecx, dword [ebx + 8]
add esp, 4
mov edx, eax
mov ecx, dword [ecx + 0x64]
test byte [ecx + 0x38], 2
je 0x4a0f61
add edx, 2
add edx, 2
jmp 0x4a0f6e
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x3c]
add eax, edx
add eax, ebp
push eax
push dword [esp + 0x3c]
call fcn.004b0ed0
add esp, 8
test eax, eax
jne 0x4a0fac
push 0x771
push str.._ssl_s3_srvr.c
push 7
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a1475
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x3c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x70]
mov eax, dword [eax + 0x64]
mov esi, dword [eax + 0x3c]
add esi, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
nop dword [eax]
lea ecx, [eax*4]
cmp dword [esp + ecx + 0x58], 0
je 0x4a1072
cmp eax, 2
jne 0x4a1034
test ebx, 0x400
je 0x4a0ffa
mov eax, dword [esp + 0x70]
mov ebp, eax
mov byte [esi], al
inc esi
jmp 0x4a104b
test bl, 8
je 0x4a1034
mov ecx, dword [esp + 0x68]
mov eax, ecx
sar eax, 8
mov byte [esi], al
mov eax, ecx
sub eax, ebp
mov byte [esi + 1], cl
add esi, 2
mov dword [esp + 0x38], eax
test eax, eax
jle 0x4a104b
mov ecx, eax
mov edi, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esi, edx
rep stosb byte es:[edi], al
jmp 0x4a104b
mov eax, dword [esp + ecx + 0x68]
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x10]
mov al, byte [esp + eax*4 + 0x68]
mov byte [esi + 1], al
add esi, 2
mov eax, dword [esp + 0x10]
push esi
push dword [esp + eax*4 + 0x5c]
call fcn.004a4ad0
mov eax, dword [esp + 0x18]
add esp, 8
add esi, dword [esp + eax*4 + 0x68]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 4
jl 0x4a0fd0
mov ebp, dword [esp + 0x1c]
test bl, bl
mov ebx, dword [esp + 0x3c]
jns 0x4a10b5
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov word [esi], 3
mov byte [esi + 2], al
mov eax, dword [esp + 0x28]
push eax
mov byte [esi + 3], al
add esi, 4
push edi
push esi
call fcn.0051dfc0
push edi
call fcn.004a2960
add esp, 0x10
mov dword [esp + 0x20], 0
add esi, dword [esp + 0x28]
test dword [esp + 0x18], 0x100
je 0x4a113e
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + 0x14c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a10d2
sub ecx, edx
shr ecx, 8
mov byte [esi], cl
mov eax, dword [ebx + 0xe4]
mov ecx, dword [eax + 0x14c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a10f0
sub ecx, edx
mov byte [esi + 1], cl
add esi, 2
mov eax, dword [ebx + 0xe4]
mov edx, dword [eax + 0x14c]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1110
sub ecx, edi
push ecx
push edx
push esi
call fcn.0052a8a0
mov eax, dword [ebx + 0xe4]
add esp, 0xc
mov ecx, dword [eax + 0x14c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1133
sub ecx, edx
add esi, ecx
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a12a9
cmp dword [edi], 6
jne 0x4a1316
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 2
jne 0x4a1316
lea eax, [esp + 0x78]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
mov edi, 2
lea eax, [esp + 0x40]
push 8
push eax
call fcn.004b8250
mov eax, dword [ebx + 0xe4]
add esp, 8
cmp edi, 2
jne 0x4a119a
mov eax, dword [eax + 0x8c]
jmp 0x4a11a0
mov eax, dword [eax + 0x90]
push 0
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4ad0
add esp, 0xc
test eax, eax
jle 0x4a12f4
mov eax, dword [ebx + 0x58]
add eax, 0xc0
push 0x20
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a12f4
mov eax, dword [ebx + 0x58]
add eax, 0xa0
push 0x20
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a12f4
push ebp
push dword [esp + 0x30]
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a12f4
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
call fcn.004b4a30
add esp, 0xc
test eax, eax
jle 0x4a12f4
mov ecx, dword [esp + 0x24]
dec edi
mov eax, dword [esp + 0x10]
add ecx, eax
add dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
test edi, edi
jg 0x4a1178
mov eax, dword [esp + 0x14]
push dword [eax + 0x14]
lea eax, [esp + 0x34]
push eax
lea eax, [esi + 2]
push eax
push ecx
lea eax, [esp + 0x88]
push eax
push 0x72
call fcn.004bb7e0
add esp, 0x18
test eax, eax
jg 0x4a1292
push 0x7d4
push str.._ssl_s3_srvr.c
push 4
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a1475
mov eax, dword [esp + 0x30]
add ebp, 2
shr eax, 8
mov byte [esi], al
mov al, byte [esp + 0x30]
mov byte [esi + 1], al
add ebp, dword [esp + 0x30]
mov eax, dword [ebx + 8]
push ebp
push 0xc
push ebx
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x40]
call eax
add esp, 0xc
lea eax, [esp + 0x40]
mov dword [ebx + 0x34], 0x2151
push eax
call fcn.004b4c90
mov eax, dword [ebx + 8]
push ebx
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x44]
call eax
add esp, 8
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051ad3f
add esp, 0x90
ret
push 0x7cb
push str.._ssl_s3_srvr.c
push 6
push 0x9b
push 0x14
call fcn.004aedd0
mov esi, 0x50
jmp 0x4a1466
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4a1415
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 2
je 0x4a1358
push ecx
push edi
push esi
call fcn.0048afe0
add esp, 0xc
test eax, eax
jne 0x4a1351
push 0x7e2
push str.._ssl_s3_srvr.c
lea esi, [eax + 0x50]
push 0x44
jmp 0x4a145a
mov ecx, dword [esp + 0x34]
add esi, 2
push 0
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.004b4ad0
add esp, 0xc
test eax, eax
jle 0x4a140b
mov eax, dword [ebx + 0x58]
add eax, 0xc0
push 0x20
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a140b
mov eax, dword [ebx + 0x58]
add eax, 0xa0
push 0x20
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a140b
push ebp
push dword [esp + 0x30]
lea eax, [esp + 0x48]
push eax
call fcn.004b4c80
add esp, 0xc
test eax, eax
jle 0x4a140b
push edi
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 2]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004bda80
add esp, 0x10
test eax, eax
jle 0x4a140b
mov eax, dword [esp + 0x10]
sar eax, 8
mov byte [esi], al
mov al, byte [esp + 0x10]
mov byte [esi + 1], al
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
add ecx, ebp
mov eax, dword [eax + 0x64]
lea ebp, [ecx + 2]
test byte [eax + 0x38], 2
cmove ebp, ecx
add ebp, 2
jmp 0x4a12a9
push 0x7f2
jmp 0x4a12f9
push 0x7fe
push str.._ssl_s3_srvr.c
push 0xfb
jmp 0x4a1455
push 0x73b
push str.._ssl_s3_srvr.c
push 0x166
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
jmp 0x4a148e
push 0x747
push str.._ssl_s3_srvr.c
push 0xfa
mov esi, 0x28
push 0x9b
push 0x14
call fcn.004aedd0
add esp, 0x14
push esi
push 2
push ebx
call fcn.00487ca0
add esp, 0xc
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a148e
push eax
call fcn.004a2960
add esp, 4
push dword [esp + 0x14]
call fcn.004bb190
lea eax, [esp + 0x44]
push eax
call fcn.004b4c90
add esp, 8
mov dword [ebx + 0x34], 5
or eax, 0xffffffff
jmp 0x4a12db