Function at 0x4f8a47
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x108
lea eax, [ebp - 0x18]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x28], edx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x585e00
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [edx + 0x54]
mov dword [ebp - 0xe4], eax
lea eax, [edx + 0x70]
mov dword [ebp - 0xc0], eax
lea eax, [edx + 0x5c]
mov dword [ebp - 0x10c], eax
lea eax, [edx + 4]
mov dword [ebp - 0xe0], eax
lea eax, [edx + 0x40]
mov dword [ebp - 0xe8], eax
movzx eax, byte [edx + 0x50]
test eax, eax
jne 0x4f9810
mov cl, byte [edx + 0x53]
mov al, byte [edx + 0x52]
mov bh, byte [edx + 0x51]
mov bl, byte [edx + 0x54]
or dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 0x4d], cl
lea ecx, [ebp - 0x80]
mov byte [ebp - 0xac], al
call fcn.004fa110
cmp byte [ebp - 0x80], 4
jne 0x4f8ade
mov eax, dword [ebp - 0x7c]
jmp 0x4f8aed
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
cmp cl, 4
jne 0x4f9847
mov edx, dword [ebp - 0x28]
test eax, eax
je 0x4f8b00
cmp byte [edx + 0x50], 0
jne 0x4f8b04
mov byte [edx + 0x51], 1
jmp 0x4f8b04
test bh, bh
je 0x4f8b32
mov eax, dword [edx + 0x6c]
push dword [edx + 0x68]
lea ecx, [ebp - 0x80]
push ecx
call dword [eax + 0x38]
add esp, 8
cmp byte [ebp - 0x80], 4
je 0x4f8b25
mov eax, dword [ebp - 0x80]
cmp al, 4
jne 0x4f9878
mov edx, dword [ebp - 0x28]
cmp byte [edx + 0x50], 0
jne 0x4f8b32
mov byte [edx + 0x51], 0
or bl, byte [ebp - 0x4d]
jne 0x4f91ce
cmp byte [edx + 0xa6], 0
je 0x4f8b4b
xor eax, eax
jmp 0x4f91bb
and dword [ebp - 0x90], 0
lea eax, [ebp - 0x90]
push eax
push 0x53
push dword [ebp - 0xc0]
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x4f8b8e
and dword [ebp - 0x80], 0
cmp byte [ebp - 0xac], 0
mov dword [ebp - 0x7c], eax
je 0x4f8b9b
lea eax, [ebp - 0x80]
push eax
call fcn.004583ed
pop eax
mov bl, 4
xor eax, eax
jmp 0x4f91af
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x80], 4
mov ebx, dword [ebp - 0x80]
cmp bl, 4
jne 0x4f8c91
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4f8caa
and dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], ecx
push ecx
call dword [sym.imp.crypt32.dll_CertDuplicateStore]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x100], eax
je 0x4f8cbe
mov eax, dword [ebp - 0xe0]
and dword [ebp - 0x80], 0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc8], eax
call fcn.004ceb0e
mov dword [ebp - 0x24], edx
test eax, eax
je 0x4f8cd8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xf4], eax
push dword [ebp - 0x24]
call fcn.004cead6
pop eax
cmp byte [ebp - 0x90], 4
jne 0x4f8c4b
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x8c]
and ecx, 0xffffff00
or ecx, 4
jmp 0x4f8c57
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x20]
cmp cl, 4
mov dword [ebp - 0x34], ecx
jne 0x4f8f05
mov dword [ebp - 0xf4], eax
push edx
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc8], eax
push dword [ebp - 0x24]
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
jmp 0x4f8be9
mov ecx, ebx
shrd ecx, eax, 0x10
shr eax, 0x10
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x9c], ecx
mov al, bh
jmp 0x4f91af
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 0x2c], ecx
je 0x4f8d0b
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x4f8d0b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc4], eax
call fcn.004ceac4
jmp 0x4f8d0b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc4], eax
call fcn.004cec02
cmp dword [ebp - 0x58], 0
je 0x4f8d0b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
call fcn.004ceac4
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0xd8], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x80], 0x10
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 3
mov dword [ebp - 0x90], str.1.3.6.1.5.5.7.3.1
mov dword [ebp - 0x8c], str.1.3.6.1.4.1.311.10.3.3
mov dword [ebp - 0x88], str.2.16.840.1.113730.4.1
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x4c], ecx
push eax
push 0
push 0xc0000001
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x2c]
push 0
push ecx
push 0
call dword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x4f8ee0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x4f8f5c
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x90]
lea edx, [ebp - 0x114]
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xb8], eax
call fcn.004ce8f8
cmp dword [ebp - 0x90], 0
je 0x4f8f59
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0x20]
and dword [ebp - 0xd4], 0
mov dword [ebp - 0xbc], ecx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x10], 7
call fcn.004cea28
mov dword [ebp - 0x2c], edx
cmp eax, 1
jne 0x4f8f66
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x78], eax
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 9
mov dword [ebp - 0xdc], eax
call fcn.004ceb0e
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
mov esi, edx
jne 0x4f8e80
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push dword [eax + 8]
push dword [eax + 4]
call fcn.004ceab4
pop ecx
pop edx
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xdc], eax
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp byte [ebp - 0x34], 0
je 0x4f8e2c
jmp 0x4f8e93
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, esi
mov dword [ebp - 0xdc], eax
call fcn.004cec02
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xec], eax
call fcn.004cec02
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 7
mov dword [ebp - 0xbc], eax
push dword [ebp - 0x2c]
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x20]
jne 0x4f8dfb
mov dword [ebp - 0x24], 0xf10
jmp 0x4f8f83
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
shl eax, 0x10
mov dword [ebp - 0x24], 0
xor ebx, ebx
shr ecx, 0x10
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x5c], ecx
jmp 0x4f919f
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x10], 2
push dword [ebp - 0x24]
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc4], eax
call fcn.004cec02
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
and dword [ebp - 0x10], 0
xor ecx, ecx
inc ecx
mov dword [ebp - 0x4c], eax
call fcn.004f8a1d
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x5c]
jmp 0x4f911e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, 0xf00
jmp 0x4f8faa
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], ecx
mov ecx, eax
call fcn.004cec02
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0xf00
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x10], 4
push eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
and dword [ebp - 0xcc], 0
and dword [ebp - 0xd0], 0
cmp dword [eax + 0x80], 0x80000000
mov dword [ebp - 0xd8], 0x10
mov dword [ebp - 0xd4], 2
je 0x4f8ff4
cmp byte [eax + 0xa5], 0
jne 0x4f8ff4
mov eax, dword [eax + 0x84]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xa8], 0xc
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x7c]
and dword [eax + 4], 0
and dword [eax], 0
and dword [eax + 0xc], 0
and dword [eax + 8], 0
mov dword [ebp - 0x80], 0x14
push 4
pop ecx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x58]
push ecx
call dword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x4f9068
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4f9092
and dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], eax
jmp 0x4f9099
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
shl eax, 0x10
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
shr ecx, 0x10
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x5c], ecx
jmp 0x4f9189
mov byte [ebp - 0xb4], 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4f9137
mov ecx, dword [ecx + 0x7c]
mov edi, dword [ebp - 0x58]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x74]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x90]
push eax
push edx
lea eax, [ebp - 0x98]
push eax
call dword [ecx + 0x14]
add esp, 0xc
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x10], 6
call fcn.00504bef
mov ebx, dword [ebp - 0x98]
cmp bl, 4
je 0x4f9155
mov ecx, dword [ebp - 0x94]
mov eax, ebx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [ebp - 0x9c], eax
mov al, bh
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], eax
jmp 0x4f919f
mov edx, dword [ebp - 0xb4]
cmp dl, 4
jne 0x4f9169
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x58]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
or dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x20]
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov edx, dword [ebp - 0x28]
mov al, 1
jmp 0x4f91bb
mov ecx, dword [ebp - 0xb0]
mov eax, edx
mov dword [ebp - 0x34], edx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [ebp - 0x9c], eax
mov al, dh
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x58]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov ebx, dword [ebp - 0x34]
or dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x20]
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp bl, 4
jne 0x4f98a7
test al, al
je 0x4f91ce
cmp byte [edx + 0x50], 0
jne 0x4f91ce
mov eax, dword [ebp - 0xe4]
mov byte [eax], 1
cmp byte [ebp - 0xac], 0
je 0x4f977e
cmp dword [edx + 0x9c], 0
je 0x4f9211
lea ecx, [ebp - 0x80]
call fcn.004fa1a7
cmp byte [ebp - 0x80], 4
jne 0x4f91f7
mov eax, dword [ebp - 0x7c]
jmp 0x4f9206
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
cmp cl, 4
jne 0x4f9847
mov edx, dword [ebp - 0x28]
test eax, eax
je 0x4f9852
mov esi, dword [edx + 0x20]
push 0x18
pop ecx
mov edi, edx
push 4
pop edx
call fcn.0042029e
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0xa
push 0x645a1c
push esi
call fcn.004fa277
pop ecx
pop esi
mov esi, dword [ebp - 0x34]
test eax, eax
cmove edx, eax
mov dword [esi], edx
push 2
pop ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], ecx
cmp dword [eax + 0x8c], 0x80000000
jne 0x4f9288
mov edx, dword [ebp - 0x3c]
xor edi, edi
jmp 0x4f931e
mov edx, dword [eax + 0x90]
mov eax, dword [eax + 0x94]
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], 2
mov dword [ebp - 0x10], 0xb
lea ecx, [ebp - 0x80]
push eax
call fcn.004cec1a
pop eax
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x78]
test eax, eax
je 0x4f9316
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0xa8]
push 2
pop edx
call fcn.004af485
mov ecx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
imul eax, ecx, 0xc
inc ecx
mov dword [esi + eax], edx
mov edx, dword [ebp - 0x3c]
mov dword [esi + eax + 4], 0x12
mov dword [esi + eax + 8], edx
mov dword [ebp - 0xa0], ecx
jmp 0x4f931e
xor edi, edi
push 2
pop ecx
mov esi, dword [ebp - 0x34]
and dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0xd0], esi
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x7c]
and dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 2
and dword [ebp - 0x78], 0
and dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x11
and dword [ebp - 0x90], 0
and dword [ebp - 0xb4], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], edi
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
and dword [eax + 0x1c], 0
and dword [eax + 0x18], 0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x88], eax
cmp byte [esi + 0xa6], 0
je 0x4f9409
mov eax, dword [esi + 0x98]
cmp byte [esi + 0xa7], 0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x94], eax
mov eax, 0
cmove eax, ecx
push 0
lea edx, [ebp - 0xb4]
push edx
lea edx, [ebp - 0x90]
push edx
push ecx
push 0
push 0x1011c
lea ecx, [ebp - 0xd8]
push ecx
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.secur32.dll_AcceptSecurityContext]
mov dword [ebp - 0xac], eax
jmp 0x4f948b
xor ecx, ecx
cmp byte [esi + 0xa4], 0
mov eax, 0
je 0x4f941f
mov eax, dword [esi + 0x84]
cmp dword [esi + 0x80], 0x80000000
mov edx, dword [esi + 0x98]
cmove eax, ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x44], ecx
push 0
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push 0x9819c
push eax
push dword [ebp - 0xc0]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.secur32.dll_InitializeSecurityContextW]
mov dword [ebp - 0xac], eax
xor ecx, ecx
inc ecx
cmp ecx, 3
je 0x4f94c0
imul eax, ecx, 0xc
mov eax, dword [ebp + eax - 0x78]
test eax, eax
je 0x4f948d
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], edx
push eax
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov ecx, dword [ebp - 0x20]
jmp 0x4f948d
mov esi, dword [ebp - 0xac]
cmp esi, 0x80090318
je 0x4f95e9
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
cmp esi, 0x90312
je 0x4f964d
test esi, esi
jne 0x4f989e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0xc
mov ecx, edi
mov dword [ebp - 0x40], eax
push 0x645a2c
call fcn.004fa297
pop ecx
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
cmp dword [eax + 4], 5
mov edx, dword [ecx + 0x20]
jne 0x4f9548
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push 0x645a3c
call fcn.004fa297
mov esi, dword [ebp - 0x48]
add esp, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
sub edx, dword [eax]
mov edi, dword [ebp - 0x78]
test edi, edi
sete byte [ebp - 0x2c]
je 0x4f955e
mov eax, dword [ebp - 0x80]
mov esi, edi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x48], esi
sete byte [ebp - 0x35]
mov byte [ebp - 0x36], 1
mov dword [ebp - 0x10], 0xe
call fcn.004fa2ae
mov edi, dword [ebp - 0x28]
xor edx, edx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov esi, eax
or esi, ecx
sete dl
cmp dword [ebp - 0x20], 0
mov dword [edi + 0x9c], edx
je 0x4f9715
mov esi, dword [ebp - 0x110]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xe8]
mov eax, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
mov dword [ebp - 0x10], 0xf
test esi, esi
cmove edx, eax
push esi
call fcn.004f8275
pop eax
xor eax, eax
mov dword [ebp - 0x10], 0xe
mov byte [ebp - 0x35], al
mov byte [ebp - 0x36], al
push dword [ebp - 0x48]
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
xor edx, edx
jmp 0x4f9717
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push 0x645a6c
call fcn.004fa297
pop ecx
mov edx, dword [ebp - 0x48]
cmp dword [eax + 4], 4
mov eax, 1
jne 0x4f963f
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push 0x645a7c
call fcn.004fa297
mov edx, dword [ebp - 0x48]
add esp, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x9c], eax
jmp 0x4f975a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0xc
mov ecx, edi
mov byte [eax + 0xa7], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
push 0x645a4c
call fcn.004fa297
pop ecx
mov ecx, dword [ebp - 0x28]
cmp dword [eax + 4], 5
mov edx, dword [ecx + 0x20]
jne 0x4f96ab
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push 0x645a5c
call fcn.004fa297
pop ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
sub edx, dword [eax]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x10], 0xd
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
call fcn.004fa2ae
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
or eax, dword [edx + 0x24]
mov eax, str._rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_srcioimpls.rs
sete cl
test esi, esi
mov dword [edx + 0x9c], ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xe8]
cmove edx, eax
push esi
call fcn.004f8275
pop eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x20]
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov edx, dword [ebp - 0x48]
jmp 0x4f975a
mov dl, 1
or eax, ecx
je 0x4f974a
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x36], dl
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x35], al
call fcn.004fa323
cmp byte [ebp - 0x98], 4
je 0x4f974a
mov ebx, dword [ebp - 0x98]
cmp bl, 4
jne 0x4f98d9
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x50], 0
jne 0x4f9757
mov byte [eax + 0x52], 0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
call fcn.004fa28c
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x34]
call fcn.0042afb8
mov edx, dword [ebp - 0x28]
jmp 0x4f8aa6
cmp byte [ebp - 0x4d], 0
mov al, 2
jne 0x4f97db
and dword [ebp - 0x70], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x80]
movups xmmword [ebp - 0x80], xmm0
push eax
push 4
push dword [ebp - 0xc0]
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x4f9929
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x7c]
movsd xmm0, qword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x88], eax
mov al, 1
movsd qword [ebp - 0x90], xmm0
mov esi, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x104]
mov byte [edx + 0x50], al
movsd xmm0, qword [ebp - 0x90]
mov dword [edx + 0x54], esi
mov dword [edx + 0x58], ecx
mov ecx, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x88]
mov dword [ecx + 8], esi
movsd qword [ecx], xmm0
jmp 0x4f8aa6
cmp eax, 1
jne 0x4f983f
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [ecx + 0x14], eax
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx], 1
jmp 0x4f988a
mov eax, dword [ebp - 0x54]
and dword [eax], 0
jmp 0x4f988a
mov edx, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x4f9884
lea esi, [ebp - 0x80]
push 0x25
pop edx
mov ecx, esi
push 0x1f
push str.unexpected_EOF_during_handshakeassertion_failed:_size___nread
call fcn.004ce6e9
pop eax
pop ecx
mov eax, dword [esi]
mov edx, dword [ebp - 0x54]
mov ecx, dword [esi + 4]
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
jmp 0x4f9884
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 2
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
shl esi, 0x18
xor ebx, ebx
jmp 0x4f98eb
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x5c]
mov esi, eax
movzx eax, bl
shld edx, ecx, 0x10
shl ecx, 0x10
or eax, ecx
mov ecx, esi
mov esi, dword [ebp - 0x54]
movzx ecx, cl
shl ecx, 8
or ecx, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 2
jmp 0x4f988a
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
mov esi, ebx
shrd esi, eax, 8
shr eax, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
call fcn.004fa28c
mov ecx, dword [ebp - 0xa8]
mov edx, edi
call fcn.0042afb8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x54]
movzx eax, bl
shld edx, esi, 8
shl esi, 8
or eax, esi
mov dword [ecx + 8], edx
mov dword [ecx + 4], eax
mov dword [ecx], 2
jmp 0x4f988a
mov ecx, dword [ebp - 0x54]
and dword [ecx + 4], 0
mov dword [ecx + 8], eax
jmp 0x4f991e