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

Disassembly:
mov eax, 0x5c
call fcn.0058f400
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], 0x3a
push esi
push edi
test ebp, ebp
je 0x516183
mov esi, dword [ebp]
test esi, esi
jne 0x516198
call fcn.004e96c0
mov esi, eax
test esi, esi
jne 0x516198
mov ecx, 0x184
jmp 0x5172a3
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x5161c0
mov dword [esp + 0x5c], ecx
jmp 0x5161c6
add eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004dccc0
add esp, 8
test eax, eax
jne 0x5161e6
mov ecx, 0x18a
jmp 0x5172a3
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x3c], 0
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x516222
mov ecx, 0x18e
jmp 0x5172a3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x51625f
push eax
call fcn.004d94b0
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x516284
mov ecx, 0x196
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
push dword [esp + 0x70]
add dword [esp + 0x5c], eax
call fcn.004dd6a0
mov edi, eax
add esp, 4
mov dword [esi], edi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5162c1
push eax
call fcn.004d94b0
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0
push eax
mov dword [esp + 0x2c], 0
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x5162fd
mov ecx, 0x1a1
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp edi, 2
jne 0x516343
cmp dword [esp + 0x20], 3
je 0x516327
mov dword [esp + 0x48], 0x89
mov ecx, 0x1a5
jmp 0x5172a3
mov ecx, dword [esp + 0x28]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
or edx, 0x200
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
jmp 0x516398
mov eax, edi
sar eax, 8
cmp eax, 3
je 0x51636e
cmp eax, 0xfe
je 0x51636e
cmp edi, 0x100
je 0x51636e
mov dword [esp + 0x48], 0xfe
mov ecx, 0x1b7
jmp 0x5172a3
cmp dword [esp + 0x20], 2
je 0x516387
mov dword [esp + 0x48], 0x89
mov ecx, 0x1b0
jmp 0x5172a3
mov eax, dword [esp + 0x28]
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
or edx, 0x30000
shl edx, 8
or edx, eax
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], edx
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x5163d9
mov ecx, 0x1be
jmp 0x5172a3
mov eax, dword [esp + 0x60]
mov ecx, 0x20
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
cmp eax, ecx
jle 0x51641d
push str.os.length____int_sizeof_ret__session_id_
push 0x1ca
push str.._ssl_ssl_asn1.c
call fcn.004f8f70
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push dword [esp + 0x2c]
lea eax, [esi + 0x48]
push eax
call fcn.005a7480
mov eax, dword [esp + 0x4c]
push dword [esp + 0x64]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004fa6d0
add esp, 0x18
test eax, eax
jne 0x516457
mov ecx, 0x1cd
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x30
jle 0x516475
mov dword [esi + 0x10], 0x30
jmp 0x516478
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
lea eax, [esi + 0x14]
push dword [esp + 0x2c]
push eax
call fcn.005a7480
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x58], ecx
je 0x516509
mov edx, dword [esp + 0x40]
mov bl, byte [edx]
movzx eax, bl
and al, 0xdf
cmp al, 0x80
jne 0x516509
mov al, bl
and al, 0x20
or al, 4
mov byte [edx], al
mov eax, dword [esp + 0x40]
push dword [esp + 0x58]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x5164e7
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], 0x1e7
mov byte [eax], bl
mov ecx, dword [esp + 0x68]
jmp 0x5172a7
mov ecx, dword [esp + 0x60]
mov eax, ecx
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov byte [ecx], bl
mov ecx, dword [esp + 0x20]
cmp ecx, 8
jle 0x516509
mov dword [esi + 4], 8
jmp 0x51650c
mov dword [esi + 4], ecx
push dword [esi + 4]
lea eax, [esi + 8]
push dword [esp + 0x2c]
push eax
call fcn.005a7480
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x516530
push eax
call fcn.004d94b0
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x516610
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa1
jne 0x516610
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x51658a
mov dword [esp + 0x48], 0x3b
mov ecx, 0x1f1
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5165a6
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5165aa
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x5165cb
mov ecx, 0x1f1
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516604
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516604
mov dword [esp + 0x48], 0x3f
mov ecx, 0x1f1
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x51663c
push dword [esp + 0x70]
call fcn.004dd6a0
mov dword [esi + 0xac], eax
push dword [esp + 0x3c]
call fcn.004d94b0
add esp, 8
mov dword [esp + 0x38], 0
jmp 0x51664c
push 0
call fcn.005bae1d
add esp, 4
mov dword [esi + 0xac], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x51672c
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa2
jne 0x51672c
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5166a6
mov dword [esp + 0x48], 0x3b
mov ecx, 0x1fb
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5166c2
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5166c6
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x5166e7
mov ecx, 0x1fb
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516720
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516720
mov dword [esp + 0x48], 0x3f
mov ecx, 0x1fb
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x516760
push dword [esp + 0x70]
call fcn.004dd6a0
mov dword [esi + 0xa8], eax
push dword [esp + 0x3c]
call fcn.004d94b0
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x51676a
mov dword [esi + 0xa8], 3
mov eax, dword [esi + 0x9c]
lea edi, [esi + 0x9c]
test eax, eax
je 0x516789
push eax
call fcn.004e23a0
add esp, 4
mov dword [edi], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
test ecx, ecx
je 0x516865
cmp byte [edx], 0xa3
jne 0x516865
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5167db
mov dword [esp + 0x48], 0x3b
mov ecx, 0x208
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5167f7
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5167fb
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004e23f0
add esp, 0xc
test eax, eax
jne 0x516818
mov ecx, 0x208
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516851
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516851
mov dword [esp + 0x48], 0x3f
mov ecx, 0x208
jmp 0x5172a3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x516999
cmp byte [edx], 0xa4
jne 0x516999
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5168bf
mov dword [esp + 0x48], 0x3b
mov ecx, 0x20c
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5168db
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5168df
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x516900
mov ecx, 0x20c
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516939
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516939
mov dword [esp + 0x48], 0x3f
mov ecx, 0x20c
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x28], 0
je 0x516999
mov eax, dword [esp + 0x20]
cmp eax, 0x20
jle 0x516967
mov dword [esp + 0x48], 0x10f
mov ecx, 0x211
jmp 0x5172a3
mov dword [esi + 0x68], eax
lea eax, [esi + 0x6c]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push eax
call fcn.005a7480
push dword [esp + 0x34]
call fcn.004d94b0
add esp, 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x5169a0
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x516a80
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa5
jne 0x516a80
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5169fa
mov dword [esp + 0x48], 0x3b
mov ecx, 0x21e
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516a16
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516a1a
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x516a3b
mov ecx, 0x21e
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516a74
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516a74
mov dword [esp + 0x48], 0x3f
mov ecx, 0x21e
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x516ab4
push dword [esp + 0x70]
call fcn.004dd6a0
mov dword [esi + 0xa0], eax
push dword [esp + 0x3c]
call fcn.004d94b0
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x516abe
mov dword [esi + 0xa0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x516bcc
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa6
jne 0x516bcc
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x516b20
mov dword [esp + 0x48], 0x3b
mov ecx, 0x22a
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516b3c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516b40
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x516b61
mov ecx, 0x22a
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516b9a
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516b9a
mov dword [esp + 0x48], 0x3f
mov ecx, 0x22a
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x516bcc
push dword [esp + 0x20]
push eax
call fcn.00508da0
mov dword [esi + 0xd0], eax
push dword [esp + 0x30]
call fcn.004d94b0
add esp, 0xc
jmp 0x516bd6
mov dword [esi + 0xd0], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x516ce4
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa7
jne 0x516ce4
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x516c38
mov dword [esp + 0x48], 0x3b
mov ecx, 0x237
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516c54
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516c58
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x516c79
mov ecx, 0x237
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516cb2
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516cb2
mov dword [esp + 0x48], 0x3f
mov ecx, 0x237
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x516ce4
push dword [esp + 0x20]
push eax
call fcn.00508da0
mov dword [esi + 0x8c], eax
push dword [esp + 0x30]
call fcn.004d94b0
add esp, 0xc
jmp 0x516cee
mov dword [esi + 0x8c], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x516e0c
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa8
jne 0x516e0c
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x516d50
mov dword [esp + 0x48], 0x3b
mov ecx, 0x242
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516d6c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516d70
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x516d91
mov ecx, 0x242
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516dca
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516dca
mov dword [esp + 0x48], 0x3f
mov ecx, 0x242
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x516e0c
push dword [esp + 0x20]
push eax
call fcn.00508da0
mov dword [esi + 0x90], eax
push dword [esp + 0x30]
call fcn.004d94b0
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x516e16
mov dword [esi + 0x90], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], 0
test eax, eax
je 0x516ef6
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xa9
jne 0x516ef6
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x516e70
mov dword [esp + 0x48], 0x3b
mov ecx, 0x24e
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516e8c
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516e90
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004fa6b0
add esp, 0xc
test eax, eax
jne 0x516eb1
mov ecx, 0x24e
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516eea
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x516eea
mov dword [esp + 0x48], 0x3f
mov ecx, 0x24e
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
cmp dword [esp + 0x38], 0
je 0x516f2a
push dword [esp + 0x70]
call fcn.004dd6a0
mov dword [esi + 0xec], eax
push dword [esp + 0x3c]
call fcn.004d94b0
add esp, 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
jmp 0x516f4f
cmp dword [esi + 0xe8], 0
je 0x516f45
cmp dword [esi + 0x44], 0
je 0x516f45
mov dword [esi + 0xec], 0xffffffff
jmp 0x516f4f
mov dword [esi + 0xec], 0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x517051
mov ecx, dword [esp + 0x40]
cmp byte [ecx], 0xaa
jne 0x517051
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x516fb1
mov dword [esp + 0x48], 0x3b
mov ecx, 0x25a
jmp 0x5172a3
cmp ebx, 0x21
jne 0x516fcd
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x516fd1
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x516ff2
mov ecx, 0x25a
jmp 0x5172a3
cmp ebx, 0x21
jne 0x51702b
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x51702b
mov dword [esp + 0x48], 0x3f
mov ecx, 0x25a
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x517051
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xe8], eax
jmp 0x51705b
mov dword [esi + 0xe4], 0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x517170
cmp byte [edx], 0xab
jne 0x517170
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5170bd
mov dword [esp + 0x48], 0x3b
mov ecx, 0x266
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5170d9
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5170dd
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x5170fe
mov ecx, 0x266
jmp 0x5172a3
cmp ebx, 0x21
jne 0x517137
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x517137
mov dword [esp + 0x48], 0x3f
mov ecx, 0x266
jmp 0x5172a3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
test eax, eax
je 0x517170
movzx eax, byte [eax]
mov dword [esi + 0xb0], eax
push dword [esp + 0x28]
call fcn.004d94b0
mov ecx, dword [esp + 0x5c]
add esp, 4
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x517283
cmp byte [edx], 0xac
jne 0x517283
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x64], edx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004dc9f0
mov ebx, eax
add esp, 0x14
test bl, bl
jns 0x5171ca
mov dword [esp + 0x48], 0x3b
mov ecx, 0x271
jmp 0x5172a3
cmp ebx, 0x21
jne 0x5171e6
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x40]
add eax, 0xfffffffe
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x5171ea
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004fa6d0
add esp, 0xc
test eax, eax
jne 0x51720b
mov ecx, 0x271
jmp 0x5172a3
cmp ebx, 0x21
jne 0x517241
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
add eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.004dc9c0
add esp, 8
test eax, eax
jne 0x517241
mov dword [esp + 0x48], 0x3f
mov ecx, 0x271
jmp 0x5172a3
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x40]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x517283
push dword [esp + 0x20]
push eax
call fcn.00508da0
mov dword [esi + 0xf0], eax
push dword [esp + 0x30]
call fcn.004d94b0
add esp, 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
jmp 0x51728d
mov dword [esi + 0xf0], 0
lea eax, [esp + 0x40]
push eax
call fcn.004dcdc0
add esp, 4
test eax, eax
jne 0x5172f3
mov ecx, 0x27b
mov dword [esp + 0x68], ecx
push ecx
push str.._ssl_ssl_asn1.c
push dword [esp + 0x50]
push 0x67
push 0xd
call fcn.004f2b90
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov eax, dword [esp + 0x74]
sub eax, ecx
push eax
push ecx
call fcn.004dcd50
add esp, 0x1c
test esi, esi
je 0x5172e9
test ebp, ebp
je 0x5172e0
cmp dword [ebp], esi
je 0x5172e9
push esi
call fcn.004e9470
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
test ebp, ebp
je 0x517304
mov dword [ebp], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret