Function at 0x46d9f6
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 0x46e3a4
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.0046e4a8
cmp byte [esp + 0x38], 4
jne 0x46da72
mov eax, dword [esp + 0x3c]
jmp 0x46da83
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp cl, 4
jne 0x46e3e4
test eax, eax
je 0x46da93
cmp byte [edi + 0x58], 0
jne 0x46da97
mov byte [edi + 0x59], 1
jmp 0x46da97
test bh, bh
je 0x46dabe
mov edx, dword [edi + 0x78]
mov ecx, ebp
call fcn.0046e56d
cmp byte [esp + 0x38], 4
je 0x46dab4
mov eax, dword [esp + 0x38]
cmp al, 4
jne 0x46e410
cmp byte [edi + 0x58], 0
jne 0x46dabe
mov byte [edi + 0x59], 0
or bl, byte [esp + 3]
jne 0x46df35
cmp byte [edi + 0xb6], 0
je 0x46dada
xor eax, eax
mov ah, al
jmp 0x46df21
mov ecx, ebp
mov edx, edi
call fcn.004bd8f7
cmp byte [esp + 0x38], 4
je 0x46db06
cmp byte [esp + 0x24], 0
je 0x46db06
mov ecx, ebp
mov word [esp + 0xc], 4
call fcn.0046e918
mov al, 4
jmp 0x46df0b
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
cmp al, 4
jne 0x46dbb4
mov ecx, dword [esi + 0x10]
call fcn.004bd1d3
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 0x46dbc1
test ebx, ebx
je 0x46dbd0
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.004bd241
test eax, eax
je 0x46dbd4
mov ebp, edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x5c]
push ebp
call fcn.004bd20e
pop eax
cmp byte [esp + 0x5c], 4
jne 0x46db91
mov eax, dword [esp + 0x60]
and ebx, 0xffffff00
or ebx, 4
jmp 0x46db99
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp bl, 4
jne 0x46dd65
push eax
mov esi, dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call esi
push ebp
call esi
lea ebp, [esp + 0x38]
jmp 0x46db5f
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
jmp 0x46df0b
test ebx, ebx
je 0x46dbfd
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
jmp 0x46dbfd
mov ebx, edx
jmp 0x46dbf6
lea ebp, [esp + 0x38]
mov ecx, ebp
call fcn.00447413
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x2c]
je 0x46dee1
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov ecx, edx
call fcn.004bd1fc
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 0x46dd57
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 0x46dd50
lea ecx, [esp + 0x28]
lea edx, [esp + 0xa8]
call fcn.004bd0e1
cmp dword [esp + 0x28], 0
je 0x46dd50
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.004bd180
cmp eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jne 0x46dd8d
mov eax, dword [esp + 0x84]
mov esi, edx
mov dword [esp + 0x40], eax
and dword [esp + 0x38], 0
mov ecx, ebp
call fcn.004bd241
mov ebx, eax
cmp eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jne 0x46dd25
mov ebp, edx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
push dword [esi + 8]
push dword [esi + 4]
call fcn.004bd1ec
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 0x46dce2
jmp 0x46dd32
lea ecx, [esp + 0x5c]
call fcn.00447413
lea ebp, [esp + 0x38]
mov ecx, ebp
call fcn.00447413
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp ebx, 1
jne 0x46dcb6
mov esi, 0xf10
jmp 0x46dd9b
mov esi, 0xf00
jmp 0x46dda5
lea ecx, [esp + 0xc]
call fcn.004bd1c2
jmp 0x46df00
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.00447413
lea ecx, [esp + 0x28]
call fcn.0046b6d3
jmp 0x46dedb
lea ecx, [esp + 0x78]
call fcn.00447413
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 0x46ddd6
cmp byte [edi + 0xb5], 0
jne 0x46ddd6
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 0x46de31
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x46de43
and dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
jmp 0x46de48
lea ecx, [esp + 0xc]
call fcn.004bd1c2
mov esi, dword [esp + 0x1c]
jmp 0x46def6
mov byte [esp + 0x14], 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x46dea9
mov edx, dword [edi + 0xc]
call fcn.0049fcd6
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.00473362
mov eax, dword [esp + 0x6c]
cmp al, 4
jne 0x46decf
mov esi, dword [esp + 0x1c]
mov word [esp + 0xc], 0x104
jmp 0x46dec6
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp al, 4
jne 0x46deea
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 0x46df0f
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x1c]
jmp 0x46df00
mov esi, dword [esp + 0x1c]
jmp 0x46dbfd
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 0x46df15
mov ah, byte [esp + 0xd]
jmp 0x46df21
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x46e482
test ah, ah
je 0x46df35
cmp byte [edi + 0x58], 0
jne 0x46df35
mov eax, dword [esp + 0x94]
mov byte [eax], 1
cmp byte [esp + 0x24], 0
je 0x46e326
cmp dword [edi + 0x9c], 0
je 0x46df78
mov ecx, ebp
mov edx, edi
call fcn.0046e591
cmp byte [esp + 0x38], 4
jne 0x46df5f
mov eax, dword [esp + 0x3c]
jmp 0x46df70
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp cl, 4
jne 0x46e3e4
test eax, eax
je 0x46e3f0
mov esi, dword [edi + 0x28]
push 0x18
pop ecx
push 4
pop edx
call fcn.00422855
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
mov ebx, eax
push 0x53c55c
push esi
call fcn.0046d6f7
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 0x46e015
lea ecx, [esp + 0x78]
push dword [edi + 0xac]
call fcn.004bd5cc
pop eax
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x46e020
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.0046e6bb
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
jmp 0x46e025
and dword [esp + 0x7c], 0
mov eax, ecx
xor esi, esi
jmp 0x46e025
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 0x46e0d6
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 0x46e131
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 0x46e14e
mov eax, dword [esp + ebp + 0x64]
test eax, eax
je 0x46e149
push eax
call dword [sym.imp.secur32.dll_FreeContextBuffer]
add ebp, 0xc
jmp 0x46e136
cmp esi, 0x80090318
je 0x46e1ef
test esi, esi
je 0x46e231
cmp esi, 0x90312
jne 0x46e426
mov ebp, dword [esp + 0x24]
mov byte [edi + 0xb7], 0
mov ecx, ebx
mov edx, ebp
push 0x53c58c
call fcn.0046e6f1
pop ecx
cmp dword [eax + 4], 5
mov edx, dword [edi + 0x28]
jne 0x46e1a8
mov esi, edx
mov edx, ebp
mov ecx, ebx
push 0x53c59c
call fcn.0046e6f1
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.0046e716
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.00416a75
pop eax
push esi
call dword [sym.imp.secur32.dll_FreeContextBuffer]
jmp 0x46e224
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov edx, esi
push 0x53c56c
call fcn.0046e6f1
pop ecx
cmp dword [eax + 4], 4
mov eax, 1
jne 0x46e21e
mov ecx, ebx
mov edx, esi
push 0x53c57c
call fcn.0046e6f1
pop ecx
mov eax, dword [eax]
mov dword [edi + 0x9c], eax
mov esi, dword [esp + 4]
lea ebp, [esp + 0x38]
jmp 0x46e308
mov ebp, dword [esp + 0x24]
mov ecx, ebx
mov edx, ebp
push 0x53c5ac
call fcn.0046e6f1
pop ecx
cmp dword [eax + 4], 5
mov esi, dword [edi + 0x28]
jne 0x46e25e
mov ecx, ebx
mov edx, ebp
push 0x53c5bc
call fcn.0046e6f1
pop ecx
sub esi, dword [eax]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x46e271
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], eax
mov ecx, edi
mov edx, esi
call fcn.0046e716
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 0x46e2cd
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.00416a75
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 0x46e2fe
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.0046e761
cmp byte [esp + 0x14], 4
je 0x46e2fe
mov eax, dword [esp + 0x14]
cmp al, 4
jne 0x46e42f
cmp byte [edi + 0x58], 0
jne 0x46e308
mov byte [edi + 0x5a], 0
mov edx, dword [esp + 0x80]
mov ecx, esi
call fcn.0046e70b
mov ecx, dword [esp + 0x6c]
mov edx, ebx
call fcn.004240d2
jmp 0x46da3c
cmp byte [esp + 3], 0
mov al, 2
jne 0x46e370
mov ecx, ebp
mov edx, edi
call fcn.004bd8a6
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 0x46e488
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 0x46da3c
cmp eax, 1
jne 0x46e3d8
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 0x46e477
mov eax, dword [esp + 8]
and dword [eax], 0
jmp 0x46e477
mov edx, dword [esp + 8]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x46e41e
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.004bcfdb
pop eax
pop ecx
mov dword [esi], 2
jmp 0x46e477
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 0x46e477
mov edi, esi
shl esi, 0x18
xor ebp, ebp
jmp 0x46e43b
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.0046e70b
mov ecx, dword [esp + 0x6c]
mov edx, ebx
call fcn.004240d2
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 0x46e414
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 0x46e477