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

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0x1ac
cmp dword [eax + 0x358], 2
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
je 0x49e820
mov eax, dword [ebp + 0x304]
mov dword [esp + 0x30], eax
mov ebx, edx
mov eax, 0x23
shl ebx, 4
add ebx, ebp
mov esi, dword [ebx + 0x458]
mov edi, dword [esi]
test edi, edi
je 0x49e6f3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x49e6f3
mov eax, dword [ebp]
mov dword [esp + 0x34], edx
mov edi, dword [ebx + 0x454]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49e9e0
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x49ea30
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
sub edx, eax
cmp edx, 0x3ff
jbe 0x49e860
cmp edi, 3
je 0x49e412
lea edx, [esp + 0x40]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x1c]
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov eax, dword [ebp + eax*4 + 0x408]
mov dword [esp], eax
call sym._Curl_read_plain
cmp eax, 0x51
je 0x49eacf
test eax, eax
jne 0x49ea83
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49ea83
mov edx, dword [ebx + 0x458]
add eax, dword [edx + 0x24]
mov byte [edx + 0x34], 0
mov dword [edx + 0x24], eax
mov dword [esp + 0x38], ebp
mov dword [esp], eax
call sym._curlx_uztoul
mov esi, eax
mov eax, dword [ebx + 0x458]
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call dword [0x5bcc30]
lea ecx, [esp + 0x64]
test eax, eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 2
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 2
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 2
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x11
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], 3
je 0x49ea0f
mov edx, dword [ebx + 0x458]
mov ecx, dword [edx + 0x2c]
mov edx, dword [edx + 0x24]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._memcpy
mov edi, dword [esp + 0x30]
test edi, edi
je 0x49eaa1
mov eax, dword [ebx + 0x458]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea ecx, [edx + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [eax + 0x3c]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [0x743284]
call dword [eax + 0x18]
sub esp, 0x30
mov edi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dword [0x5bcc2c]
cmp edi, 0x80090318
mov dword [esp + 0x6c], 0
je 0x49eaab
cmp edi, 0x90320
je 0x49e8a3
cmp edi, 0x90312
je 0x49e5bf
test edi, edi
jne 0x49eb31
lea esi, [esp + 0x7c]
xor ebp, ebp
cmp dword [esi + 4], 2
je 0x49e7a4
mov eax, dword [esi + 8]
test eax, eax
je 0x49e5e4
mov dword [esp], eax
mov eax, dword [0x743284]
call dword [eax + 0x40]
sub esp, 4
add ebp, 1
add esi, 0xc
cmp ebp, 3
jne 0x49e5c5
cmp dword [esp + 0x74], 5
jne 0x49e770
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x49e770
mov edx, dword [ebx + 0x458]
mov eax, dword [edx + 0x24]
cmp ecx, eax
jae 0x49eac6
mov edx, dword [edx + 0x2c]
sub eax, ecx
mov dword [esp + 8], ecx
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memmove
mov eax, dword [esp + 0x70]
mov edx, dword [ebx + 0x458]
cmp edi, 0x90312
mov dword [edx + 0x24], eax
je 0x49e416
mov ebp, dword [esp + 0x38]
test edi, edi
je 0x49e850
cmp dword [ebp + 0x358], 2
je 0x49e8f1
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x994]
test esi, esi
je 0x49e740
mov eax, dword [ebp]
mov dword [esp + 4], 0x53
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
mov eax, dword [0x743284]
call dword [eax + 0x2c]
sub esp, 0xc
test eax, eax
jne 0x49e920
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x49e920
test byte [ecx], 1
je 0x49e6c6
mov edx, dword [ecx + 8]
test edx, edx
jne 0x49e977
mov dword [esp], ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
sub esp, 4
mov eax, 0x5a
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.SSL:_public_key_does_not_match_pinned_public_key_
mov dword [esp], eax
call sym._Curl_failf
mov eax, dword [esp + 0x30]
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
sub edx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._Curl_pin_peer_pubkey
test eax, eax
mov esi, eax
jne 0x49eb0a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x49e740
mov dword [esp], eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
sub esp, 4
lea esi, [esi]
lea edi, [edi]
test byte [ebp + 0x4bc], 1
je 0x49e797
mov eax, dword [ebx + 0x458]
cmp byte [eax + 0x47], 0
je 0x49e797
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._Curl_verify_certificate
jmp 0x49e6f3
mov edx, dword [ebx + 0x458]
mov ebp, dword [esp + 0x38]
mov dword [edx + 0x24], 0
cmp edi, 0x90312
jne 0x49e64b
mov dword [ebx + 0x454], 2
xor eax, eax
add esp, 0x1ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x49e5cf
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [ecx + edx*4 + 0x408]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym._Curl_write_plain
test eax, eax
jne 0x49eae3
mov ecx, dword [esi]
mov eax, dword [esp + 0x44]
cmp ecx, eax
je 0x49e5cf
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x23
jmp 0x49e6f3
xor eax, eax
cmp dword [ebp + 0x40c], 0xffffffff
setne al
add eax, 0x47
shl eax, 4
cmp dword [ebp + eax], 2
je 0x49e349
mov eax, dword [ebp + 0x34c]
mov dword [esp + 0x30], eax
jmp 0x49e353
mov dword [ebx + 0x454], 4
jmp 0x49e653
lea edx, [eax + 0x400]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp], eax
call dword [0x5bcc28]
test eax, eax
mov edx, dword [esp + 0x38]
je 0x49ea65
mov esi, dword [ebx + 0x458]
cmp edi, 3
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], edx
mov eax, dword [esi + 0x24]
jne 0x49e3ba
jmp 0x49e412
mov edx, dword [ebx + 0x458]
mov eax, dword [edx + 0x38]
test al, 0x80
je 0x49eaf4
lea eax, [esp + 0xa0]
mov dword [esp + 8], 0x100
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._Curl_sspi_strerror
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_next_InitializeSecurityContext_failed:__s
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x23
jmp 0x49e6f3
xor eax, eax
cmp dword [ebp + 0x40c], 0xffffffff
setne al
add eax, 0x47
shl eax, 4
cmp dword [ebp + eax], 2
je 0x49e660
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x998]
jmp 0x49e66a
lea edx, [esp + 0xa0]
mov dword [esp + 8], 0x100
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._Curl_sspi_strerror
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0x5de274
mov dword [esp], eax
call sym._Curl_failf
mov eax, dword [esp + 0x48]
test eax, eax
mov esi, 0x5a
je 0x49e6d2
mov dword [esp], eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
sub esp, 4
jmp 0x49e6d7
mov edi, dword [ecx + 4]
mov ecx, 0x3c
mov dword [esp + 4], edi
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
add edx, dword [esp + 4]
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._Curl_parseX509
test eax, eax
jne 0x49e9d5
mov eax, dword [esp + 0x130]
test eax, eax
je 0x49e9c1
mov edx, dword [esp + 0x138]
cmp eax, edx
jb 0x49e6fe
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.SSL:_failed_retrieving_public_key_from_server_certificate
mov dword [esp], eax
call sym._Curl_failf
mov eax, dword [esp + 0x48]
jmp 0x49e957
mov dword [esi + 0x28], 0
mov dword [esi + 0x20], 0x1000
mov dword [esp], 0x1000
call dword [0x5bcc30]
mov dword [esi + 0x30], eax
mov esi, dword [ebx + 0x458]
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x49e396
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_unable_to_allocate_memory
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x1b
jmp 0x49e6f3
mov byte [esi + 0x34], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0x1000
mov dword [esp], 0x1000
call dword [0x5bcc30]
mov dword [esi + 0x2c], eax
mov esi, dword [ebx + 0x458]
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x49e3a1
jmp 0x49ea0f
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_unable_to_re_allocate_memory
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x1b
jmp 0x49e6f3
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x23
jmp 0x49e6f3
mov eax, 0x1b
jmp 0x49e6f3
mov eax, dword [ebx + 0x458]
mov byte [eax + 0x34], 1
mov dword [ebx + 0x454], 2
xor eax, eax
jmp 0x49e6f3
mov ebp, dword [esp + 0x38]
jmp 0x49e781
cmp dword [ebx + 0x454], 3
jne 0x49e78d
xor eax, eax
jmp 0x49e799
lea eax, [ebp + ebp*2]
mov ecx, dword [esp + eax*4 + 0x7c]
mov eax, dword [esp + 0x44]
jmp 0x49e7f2
or al, 0x80
mov dword [edx + 0x38], eax
mov dword [ebx + 0x454], 3
xor eax, eax
jmp 0x49e6f3
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.SSL:_public_key_does_not_match_pinned_public_key_
mov dword [esp], eax
call sym._Curl_failf
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x49e964
mov eax, esi
jmp 0x49e6d7
cmp edi, 0x80090300
je 0x49eb86
cmp edi, 0x80090322
jne 0x49e8b4
lea eax, [esp + 0xa0]
mov dword [esp + 8], 0x100
mov dword [esp], 0x80090322
mov dword [esp + 4], eax
call sym._Curl_sspi_strerror
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_SNI_or_certificate_check_failed:__s
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x3c
jmp 0x49e6f3
lea eax, [esp + 0xa0]
mov dword [esp + 8], 0x100
mov dword [esp], 0x80090300
mov dword [esp + 4], eax
call sym._Curl_sspi_strerror
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], str.schannel:_next_InitializeSecurityContext_failed:__s
mov dword [esp], eax
call sym._Curl_failf
mov eax, 0x1b
jmp 0x49e6f3