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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
lea eax, [edx + 0x5c]
mov edi, edx
lea ebp, [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0x94], eax
lea eax, [edx + 0x64]
mov dword [esp + 0x9c], eax
lea eax, [edx + 0x70]
mov dword [esp + 0x90], eax
lea eax, [edx + 0x74]
mov dword [esp + 0x84], eax
lea eax, [edx + 0x48]
mov dword [esp + 0x98], eax
movzx eax, byte [edi + 0x58]
test eax, eax
jne 0x47180d
mov cl, byte [edi + 0x5b]
mov al, byte [edi + 0x5a]
mov bh, byte [edi + 0x59]
mov bl, byte [edi + 0x5c]
mov edx, edi
mov byte [esp + 3], cl
mov ecx, ebp
mov byte [esp + 0x24], al
call fcn.00471911
cmp byte [esp + 0x38], 4
jne 0x470edb
mov eax, dword [esp + 0x3c]
jmp 0x470eec
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp cl, 4
jne 0x47184d
test eax, eax
je 0x470efc
cmp byte [edi + 0x58], 0
jne 0x470f00
mov byte [edi + 0x59], 1
jmp 0x470f00
test bh, bh
je 0x470f27
mov edx, dword [edi + 0x78]
mov ecx, ebp
call fcn.004719d6
cmp byte [esp + 0x38], 4
je 0x470f1d
mov eax, dword [esp + 0x38]
cmp al, 4
jne 0x471879
cmp byte [edi + 0x58], 0
jne 0x470f27
mov byte [edi + 0x59], 0
or bl, byte [esp + 3]
jne 0x47139e
cmp byte [edi + 0xb6], 0
je 0x470f43
xor eax, eax
mov ah, al
jmp 0x47138a
mov ecx, ebp
mov edx, edi
call fcn.004c1092
cmp byte [esp + 0x38], 4
je 0x470f6f
cmp byte [esp + 0x24], 0
je 0x470f6f
mov ecx, ebp
mov word [esp + 0xc], 4
call fcn.00471d4b
mov al, 4
jmp 0x471374
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
cmp al, 4
jne 0x47101d
mov ecx, dword [esi + 0x10]
call fcn.004c08b0
mov ecx, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx]
mov dword [esp + 0x30], ecx
je 0x47102a
test ebx, ebx
je 0x471039
mov ecx, dword [esp + 0x84]
and dword [esp + 0x38], 0
mov dword [esp + 0x20], eax
mov dword [esp + 4], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], ecx
mov ecx, ebp
call fcn.004c090e
test eax, eax
je 0x47103d
mov ebp, edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x5c]
push ebp
call fcn.004c08db
pop eax
cmp byte [esp + 0x5c], 4
jne 0x470ffa
mov eax, dword [esp + 0x60]
and ebx, 0xffffff00
or ebx, 4
jmp 0x471002
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp bl, 4
jne 0x4711ce
push eax
mov esi, dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call esi
push ebp
call esi
lea ebp, [esp + 0x38]
jmp 0x470fc8
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
jmp 0x471374
test ebx, ebx
je 0x471066
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
jmp 0x471066
mov ebx, edx
jmp 0x47105f
lea ebp, [esp + 0x38]
mov ecx, ebp
call fcn.0044833f
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x2c]
je 0x47134a
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov ecx, edx
call fcn.004c08c9
and dword [esp + 0x5c], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 3
mov dword [esp + 0x28], str.1.3.6.1.5.5.7.3.1
mov dword [esp + 0x2c], str.1.3.6.1.4.1.311.10.3.3
mov dword [esp + 0x30], str.2.16.840.1.113730.4.1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0xc0000001
push ebp
push ebx
push 0
push esi
push 0
call dword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x4711c0
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], esi
cmp dword [ecx], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0xa8], eax
je 0x4711b9
lea ecx, [esp + 0x28]
lea edx, [esp + 0xa8]
call fcn.004c07be
cmp dword [esp + 0x28], 0
je 0x4711b9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
and dword [esp + 0x6c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x6c]
call fcn.004c085d
cmp eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jne 0x4711f6
mov eax, dword [esp + 0x84]
mov esi, edx
mov dword [esp + 0x40], eax
and dword [esp + 0x38], 0
mov ecx, ebp
call fcn.004c090e
mov ebx, eax
cmp eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jne 0x47118e
mov ebp, edx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0043c53d
pop ecx
pop edx
mov byte [esp + 4], al
push ebp
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp byte [esp + 4], 0
lea ebp, [esp + 0x38]
je 0x47114b
jmp 0x47119b
lea ecx, [esp + 0x5c]
call fcn.0044833f
lea ebp, [esp + 0x38]
mov ecx, ebp
call fcn.0044833f
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp ebx, 1
jne 0x47111f
mov esi, 0xf10
jmp 0x471204
mov esi, 0xf00
jmp 0x47120e
lea ecx, [esp + 0xc]
call fcn.004c089f
jmp 0x471369
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
push ebp
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
lea ebp, [esp + 0x38]
mov ecx, ebp
call fcn.0044833f
lea ecx, [esp + 0x28]
call fcn.0046ea0b
jmp 0x471344
lea ecx, [esp + 0x78]
call fcn.0044833f
mov esi, 0xf00
push dword [esp + 0x18]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [edi + 0x94]
and dword [esp + 0x68], 0
and dword [esp + 0x64], 0
mov dword [esp + 0x5c], 0x10
mov dword [esp + 0x60], 2
test eax, eax
je 0x47123f
cmp byte [edi + 0xb5], 0
jne 0x47123f
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x78], 0xc
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
lea eax, [esp + 0x44]
and dword [eax - 4], 0
and dword [eax - 8], 0
and dword [eax + 4], 0
and dword [eax], 0
mov dword [esp + 0x38], 0x14
push ebp
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x28]
push 4
call dword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x47129a
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4712ac
and dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
jmp 0x4712b1
lea ecx, [esp + 0xc]
call fcn.004c089f
mov esi, dword [esp + 0x1c]
jmp 0x47135f
mov byte [esp + 0x14], 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x471312
mov edx, dword [edi + 0xc]
call fcn.004b5831
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
push ecx
push dword [esp + 8]
lea eax, [esp + 0x74]
push eax
call dword [edx + 0x14]
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.004768ec
mov eax, dword [esp + 0x6c]
cmp al, 4
jne 0x471338
mov esi, dword [esp + 0x1c]
mov word [esp + 0xc], 0x104
jmp 0x47132f
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp al, 4
jne 0x471353
mov word [esp + 0xc], 0x104
push dword [esp + 0x20]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
jmp 0x471378
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x1c]
jmp 0x471369
mov esi, dword [esp + 0x1c]
jmp 0x471066
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
push dword [esp + 0x20]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov al, byte [esp + 0xc]
cmp al, 4
jne 0x47137e
mov ah, byte [esp + 0xd]
jmp 0x47138a
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x4718eb
test ah, ah
je 0x47139e
cmp byte [edi + 0x58], 0
jne 0x47139e
mov eax, dword [esp + 0x94]
mov byte [eax], 1
cmp byte [esp + 0x24], 0
je 0x47178f
cmp dword [edi + 0x9c], 0
je 0x4713e1
mov ecx, ebp
mov edx, edi
call fcn.004719fa
cmp byte [esp + 0x38], 4
jne 0x4713c8
mov eax, dword [esp + 0x3c]
jmp 0x4713d9
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp cl, 4
jne 0x47184d
test eax, eax
je 0x471859
mov esi, dword [edi + 0x28]
push 0x18
pop ecx
push 4
pop edx
call fcn.00423cc6
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
mov ebx, eax
push 0x53d718
push esi
call fcn.00470b73
pop ecx
pop ecx
test eax, eax
cmove edx, eax
mov dword [ebx], edx
push 2
pop ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
and dword [ebx + 0xc], 0
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
mov edx, dword [edi + 0xa8]
test edx, edx
je 0x47147e
lea ecx, [esp + 0x78]
push dword [edi + 0xac]
call fcn.004c0d5e
pop eax
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x471489
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov edx, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x12
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x6c]
call fcn.00403669
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
jmp 0x47148e
and dword [esp + 0x7c], 0
mov eax, ecx
xor esi, esi
jmp 0x47148e
xor esi, esi
push 2
pop ecx
lea eax, [esp + 0x44]
and dword [esp + 0x5c], 0
and dword [esp + 0x38], 0
mov dword [esp + 0x3c], 2
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x11
and dword [esp + 0x28], 0
and dword [esp + 0xc], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x64], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 4], esi
mov dword [esp + 0x24], ecx
and dword [eax + 0xc], 0
and dword [eax + 8], 0
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
cmp byte [edi + 0xb6], 0
je 0x47153f
mov ecx, dword [edi + 0xb0]
cmp byte [edi + 0xb7], 0
mov eax, 0
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmove eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
push ecx
push edi
push 0
push 0x1011c
lea ecx, [esp + 0x74]
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.secur32.dll_AcceptSecurityContext]
jmp 0x47159a
mov ecx, dword [edi + 0x94]
cmp byte [edi + 0xb4], 0
mov edx, 0
mov eax, ecx
cmove eax, edx
test ecx, ecx
cmove eax, ecx
mov ecx, dword [edi + 0xb0]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
lea ecx, [esp + 0x70]
push ecx
push 0
push 0
push 0x9819c
push eax
push edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.secur32.dll_InitializeSecurityContextW]
mov esi, eax
push 0xffffffffffffffe8
pop ebp
test ebp, ebp
je 0x4715b7
mov eax, dword [esp + ebp + 0x64]
test eax, eax
je 0x4715b2
push eax
call dword [sym.imp.secur32.dll_FreeContextBuffer]
add ebp, 0xc
jmp 0x47159f
cmp esi, 0x80090318
je 0x471658
test esi, esi
je 0x47169a
cmp esi, 0x90312
jne 0x47188f
mov ebp, dword [esp + 0x24]
mov byte [edi + 0xb7], 0
mov ecx, ebx
mov edx, ebp
push 0x53d748
call fcn.00471b24
pop ecx
cmp dword [eax + 4], 5
mov edx, dword [edi + 0x28]
jne 0x471611
mov esi, edx
mov edx, ebp
mov ecx, ebx
push 0x53d758
call fcn.00471b24
mov edx, esi
add esp, 4
sub edx, dword [eax]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov ecx, edi
call fcn.00471b49
mov eax, dword [edi + 0x28]
xor ecx, ecx
or eax, dword [edi + 0x2c]
mov eax, esi
sete cl
test ebp, ebp
mov dword [edi + 0x9c], ecx
mov ecx, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
cmove eax, ecx
mov ecx, dword [esp + 0x98]
add ebp, eax
mov edx, ebp
push eax
call fcn.00419104
pop eax
push esi
call dword [sym.imp.secur32.dll_FreeContextBuffer]
jmp 0x47168d
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov edx, esi
push 0x53d728
call fcn.00471b24
pop ecx
cmp dword [eax + 4], 4
mov eax, 1
jne 0x471687
mov ecx, ebx
mov edx, esi
push 0x53d738
call fcn.00471b24
pop ecx
mov eax, dword [eax]
mov dword [edi + 0x9c], eax
mov esi, dword [esp + 4]
lea ebp, [esp + 0x38]
jmp 0x471771
mov ebp, dword [esp + 0x24]
mov ecx, ebx
mov edx, ebp
push 0x53d768
call fcn.00471b24
pop ecx
cmp dword [eax + 4], 5
mov esi, dword [edi + 0x28]
jne 0x4716c7
mov ecx, ebx
mov edx, ebp
push 0x53d778
call fcn.00471b24
pop ecx
sub esi, dword [eax]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x4716da
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
mov ecx, edi
mov edx, esi
call fcn.00471b49
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
xor edx, edx
mov esi, eax
or esi, ecx
mov esi, dword [esp + 0xa4]
sete dl
test ebp, ebp
mov dword [edi + 0x9c], edx
cmovne esi, ebp
je 0x471736
mov edx, dword [esp + 0xa0]
mov eax, esi
mov ecx, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
test edx, edx
cmove eax, ecx
mov ecx, dword [esp + 0x98]
add edx, eax
push eax
call fcn.00419104
pop eax
push esi
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 4]
or eax, ecx
lea ebp, [esp + 0x38]
je 0x471767
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.00471b94
cmp byte [esp + 0x14], 4
je 0x471767
mov eax, dword [esp + 0x14]
cmp al, 4
jne 0x471898
cmp byte [edi + 0x58], 0
jne 0x471771
mov byte [edi + 0x5a], 0
mov edx, dword [esp + 0x80]
mov ecx, esi
call fcn.00471b3e
mov ecx, dword [esp + 0x6c]
mov edx, ebx
call fcn.004a12d3
jmp 0x470ea5
cmp byte [esp + 3], 0
mov al, 2
jne 0x4717d9
mov ecx, ebp
mov edx, edi
call fcn.004c1041
cmp dword [esp + 0x38], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
jne 0x4718f1
lea ecx, [esp + 0x44]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esp + 0x30], eax
mov al, 1
movsd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov byte [edi + 0x58], al
movsd xmm0, qword [esp + 0x28]
mov dword [edi + 0x5c], edx
mov dword [edi + 0x60], ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
movsd qword [ecx], xmm0
jmp 0x470ea5
cmp eax, 1
jne 0x471841
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 8]
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 0x4718e0
mov eax, dword [esp + 8]
and dword [eax], 0
jmp 0x4718e0
mov edx, dword [esp + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x471887
mov esi, dword [esp + 8]
lea ecx, [esi + 4]
push 0x25
pop edx
push 0x1f
push str.unexpected_EOF_during_handshakeassertion_failed:_size___nread
call fcn.004c2c1d
pop eax
pop ecx
mov dword [esi], 2
jmp 0x4718e0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 2
jmp 0x4718e0
mov edi, esi
shl esi, 0x18
xor ebp, ebp
jmp 0x4718a4
mov edi, dword [esp + 0x18]
mov esi, eax
mov ebp, eax
shrd esi, edi, 8
shr edi, 8
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 4]
call fcn.00471b3e
mov ecx, dword [esp + 0x6c]
mov edx, ebx
call fcn.004a12d3
mov ecx, dword [esp + 8]
mov eax, ebp
shld edi, esi, 8
shl esi, 8
movzx eax, al
or eax, esi
mov dword [ecx + 8], edi
mov dword [ecx + 4], eax
mov dword [ecx], 2
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x10]
jmp 0x47187d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 2
jmp 0x4718e0