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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov ebx, dword [ebp]
push esi
mov esi, dword [esp + 0x78]
add esi, 0x1f
shl esi, 4
push edi
or eax, 0xffffffff
mov edi, 2
add esi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x78], ebx
cmp dword [ebp + 0xf0], edi
jne 0x10099699
xor ecx, ecx
cmp dword [ebp + 0x1ac], eax
setne cl
shl ecx, 4
cmp dword [ecx + ebp + 0x214], edi
je 0x10099699
mov edx, dword [ebp + 0xe4]
mov dword [esp + 0x14], edx
jmp 0x100996a3
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x100]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp dword [esi + 8], 3
push edx
setne cl
push eax
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push ebx
mov dword [esp + 0x28], ecx
call fcn.10091970
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 0x10
cmp dword [eax], edi
je 0x10099acf
cmp dword [eax + 4], edi
je 0x10099acf
cmp dword [eax + 0x30], edi
jne 0x1009972b
mov dword [eax + 0x28], edi
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x20], 0x1000
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x20]
push eax
call dword [0x10119a04]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0xc]
add esp, 4
cmp dword [eax + 0x30], edi
jne 0x1009972b
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.10091a00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x64
ret
mov ecx, dword [eax + 0x2c]
cmp ecx, edi
jne 0x10099765
mov dword [eax + 0x34], edi
mov edx, dword [esi + 0xc]
mov dword [edx + 0x24], edi
mov eax, dword [esi + 0xc]
mov dword [eax + 0x1c], 0x1000
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x10119a04]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x2c], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x2c]
add esp, 4
cmp ecx, edi
je 0x10099710
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
sub eax, edx
cmp eax, 0x400
jae 0x100997b2
lea edi, [edx + 0x400]
push edi
push ecx
call dword [0x10119a0c]
add esp, 8
test eax, eax
jne 0x100997a4
push str.schannel:_unable_to_re_allocate_memory
push ebx
call fcn.10091a00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x64
ret
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x2c], eax
mov edx, dword [esi + 0xc]
mov dword [edx + 0x1c], edi
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x10099822
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
sub edx, ecx
push edx
add eax, ecx
mov ecx, dword [esp + 0x84]
mov edx, dword [ebp + ecx*4 + 0x1a8]
push eax
push edx
call fcn.10091690
add esp, 0x10
cmp eax, 0x51
je 0x10099a9c
cmp eax, edi
jne 0x10099ac1
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x10099ac1
mov eax, dword [esi + 0xc]
add dword [eax + 0x24], ecx
mov eax, dword [esi + 0xc]
mov dword [eax + 0x34], edi
mov ecx, dword [esp + 0x10]
push ecx
push str.schannel:_encrypted_data_got__zd_n
push ebx
call fcn.10091970
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
push edx
push eax
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.10091970
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x24]
push edx
call fcn.10093ae0
mov edi, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call dword [0x10119a04]
push eax
mov ecx, edi
mov edx, 2
lea eax, [esp + 0x54]
call fcn.10097b10
push 0
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x64]
call fcn.10097b10
mov edx, 2
lea ecx, [esp + 0x58]
lea eax, [esp + 0x4c]
call fcn.10097b20
push 0
xor ecx, ecx
lea eax, [esp + 0x74]
call fcn.10097b10
xor ecx, ecx
push 0
lea edx, [ecx + 0x11]
lea eax, [esp + 0x84]
call fcn.10097b10
push 0
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x94]
call fcn.10097b10
add esp, 0x2c
mov edx, 3
lea ecx, [esp + 0x50]
lea eax, [esp + 0x20]
call fcn.10097b20
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x10099710
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x2c]
push edx
push eax
push ecx
call fcn.100bba66
mov edx, dword [esp + 0x20]
add esp, 0xc
test edx, edx
je 0x1009971e
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
lea edi, [ecx + 8]
push edi
lea edi, [eax + 0x3c]
push edi
lea edi, [esp + 0x28]
push edi
push 0
push 0
lea edi, [esp + 0x40]
push edi
mov edi, dword [eax + 0x38]
push 0
push 0
push edi
push edx
mov edx, dword [0x1011acf8]
push ecx
mov ecx, dword [eax]
mov eax, dword [edx + 0x18]
push ecx
call eax
mov ecx, dword [esp + 0x40]
mov edi, eax
push ecx
mov dword [esp + 0x1c], edi
call dword [0x10119a08]
add esp, 4
mov dword [esp + 0x40], 0
cmp edi, 0x80090318
je 0x10099adc
cmp edi, 0x90320
je 0x10099a5c
cmp edi, 0x90312
je 0x10099970
test edi, edi
jne 0x10099b27
xor ebx, ebx
lea edi, [esp + 0x50]
cmp dword [edi + 4], 2
jne 0x100999ca
mov eax, dword [edi]
test eax, eax
jbe 0x100999ca
mov edx, dword [esp + 0x78]
push eax
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push edx
call fcn.10091970
mov ecx, dword [edi]
mov edx, dword [edi + 8]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [ebp + eax*4 + 0x1a8]
push edx
push ecx
push ebp
call fcn.10091f90
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x10099b45
cmp dword [edi], eax
jne 0x10099b45
mov eax, dword [edi + 8]
test eax, eax
je 0x100999dd
mov edx, dword [0x1011acf8]
push eax
mov eax, dword [edx + 0x40]
call eax
inc ebx
add edi, 0xc
cmp ebx, 3
jl 0x10099976
cmp dword [esp + 0x48], 5
jne 0x10099b70
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x10099b70
mov ebx, dword [esp + 0x78]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push ebx
call fcn.10091970
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x24]
mov ecx, dword [esp + 0x50]
add esp, 0xc
cmp edx, ecx
jbe 0x10099b7e
mov eax, dword [eax + 0x2c]
mov edi, eax
sub edi, ecx
push ecx
add edi, edx
push edi
push eax
call dword [0x100cc3fc]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp dword [esp + 0x18], 0x90312
mov dword [ecx + 0x24], edx
jne 0x10099b99
mov dword [esp + 0x18], 0
jmp 0x100997b0
mov eax, dword [esi + 0xc]
mov ecx, pe_nt_image_headers32
test byte [eax + 0x38], cl
je 0x10099b05
push edi
push ebp
call fcn.100b16b0
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ebx
call fcn.10091a00
add esp, 0x14
mov eax, edi
sub eax, 0x80090325
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xffffffe7
pop ebp
add eax, 0x3c
pop ebx
add esp, 0x64
ret
cmp dword [esi + 8], 3
je 0x10099aa9
mov dword [esi + 8], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push ebx
call fcn.10091970
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push ebx
call fcn.10091a00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x64
ret
mov eax, dword [esi + 0xc]
push str.schannel:_received_incomplete_message__need_more_data_n
mov dword [eax + 0x34], 1
push ebx
mov dword [esi + 8], 2
call fcn.10091970
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
or dword [eax + 0x38], ecx
push str.schannel:_a_client_certificate_has_been_requested_n
push ebx
mov dword [esi + 8], 3
call fcn.10091970
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
cmp edi, 0x80090322
jne 0x10099a6d
push edi
push ebp
call fcn.100b16b0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
jmp 0x10099a7a
lea ecx, [ebx + ebx*2]
mov edx, dword [esp + ecx*4 + 0x50]
push edx
push eax
mov eax, dword [esp + 0x80]
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push eax
call fcn.10091a00
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
add esp, 0x64
ret
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x78]
mov dword [ecx + 0x24], 0
cmp dword [esp + 0x18], 0x90312
jne 0x10099b99
pop edi
mov dword [esi + 8], 2
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
cmp dword [esp + 0x18], 0
jne 0x10099bb5
push str.schannel:_SSL_TLS_handshake_complete_n
push ebx
mov dword [esi + 8], 4
call fcn.10091970
add esp, 8
mov eax, 2
cmp dword [ebp + 0xf0], eax
jne 0x10099be2
xor edx, edx
cmp dword [ebp + 0x1ac], 0xffffffff
setne dl
shl edx, 4
cmp dword [edx + ebp + 0x214], eax
je 0x10099be2
mov eax, dword [ebx + 0x64c]
jmp 0x10099be8
mov eax, dword [ebx + 0x648]
test eax, eax
je 0x10099c1c
push eax
mov eax, dword [esp + 0x80]
mov ecx, ebp
call fcn.100993c0
mov edi, eax
add esp, 4
test edi, edi
je 0x10099c1c
push str.SSL:_public_key_does_not_match_pinned_public_key_
push ebx
call fcn.10091a00
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [ebp + 0x23c], 0
je 0x10099ab7
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x50], 0
je 0x10099ab7
mov ecx, dword [esp + 0x7c]
push ecx
push ebp
call fcn.100b50f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret