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

Disassembly:
sub esp, 0x70
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x6c], eax
or dword [esp + 0x14], 0xffffffff
or dword [esp + 0x10], 0xffffffff
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x84]
mov ebx, esi
mov ebp, dword [edi]
imul ebx, ebx, 0x5c
cmp dword [edi + 0xf0], 2
mov dword [esp + 0x18], esi
jne 0x10041da4
xor eax, eax
cmp dword [edi + 0x1ac], 0xffffffff
setne al
imul eax, eax, 0x5c
cmp dword [eax + edi + 0x2ac], 2
je 0x10041da4
mov ecx, dword [edi + 0xe4]
jmp 0x10041daa
mov ecx, dword [edi + 0xa0]
push dword [edi + 0x100]
xor eax, eax
cmp dword [ebx + edi + 0x1f8], 3
push ecx
setne al
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
call fcn.100346c5
xor eax, eax
add esp, 0x10
cmp dword [ebx + edi + 0x1fc], eax
je 0x10042180
cmp dword [ebx + edi + 0x200], eax
je 0x10042180
mov ecx, 0x1000
cmp dword [ebx + edi + 0x22c], eax
jne 0x10041e3a
push ecx
mov dword [ebx + edi + 0x224], eax
mov dword [ebx + edi + 0x21c], ecx
call dword [0x10098340]
pop ecx
mov dword [ebx + edi + 0x22c], eax
test eax, eax
jne 0x10041e33
push str.schannel:_unable_to_allocate_memory
push ebp
call fcn.10034609
pop ecx
pop ecx
push 0x1b
jmp 0x10042182
xor eax, eax
mov ecx, 0x1000
cmp dword [ebx + edi + 0x228], eax
jne 0x10041e6b
push ecx
mov dword [ebx + edi + 0x230], eax
mov dword [ebx + edi + 0x220], eax
mov dword [ebx + edi + 0x218], ecx
call dword [0x10098340]
pop ecx
mov dword [ebx + edi + 0x228], eax
test eax, eax
je 0x10041e1f
mov ecx, dword [ebx + edi + 0x220]
mov eax, dword [ebx + edi + 0x218]
sub eax, ecx
cmp eax, 0x400
jae 0x10041eb5
lea esi, [ecx + 0x400]
push esi
push dword [ebx + edi + 0x228]
call dword [0x10098348]
pop ecx
pop ecx
test eax, eax
jne 0x10041ea3
push str.schannel:_unable_to_re_allocate_memory
jmp 0x10041e24
mov dword [ebx + edi + 0x218], esi
mov esi, dword [esp + 0x18]
mov dword [ebx + edi + 0x228], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10041f27
mov ecx, dword [ebx + edi + 0x220]
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + edi + 0x218]
sub eax, ecx
push eax
mov eax, dword [ebx + edi + 0x228]
add eax, ecx
push eax
push dword [edi + esi*4 + 0x1a8]
call fcn.1003483d
add esp, 0x10
cmp eax, 0x51
je 0x10042196
test eax, eax
jne 0x10042173
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10042173
add dword [ebx + edi + 0x220], eax
and dword [ebx + edi + 0x230], 0
push eax
push str.schannel:_encrypted_data_got__zd_n
push ebp
call fcn.100346c5
add esp, 0xc
push dword [ebx + edi + 0x218]
push dword [ebx + edi + 0x220]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebp
call fcn.100346c5
push dword [ebx + edi + 0x220]
call fcn.1003de2b
push dword [ebx + edi + 0x220]
mov esi, eax
call dword [0x10098340]
add esp, 0x18
lea ecx, [esp + 0x28]
push 2
pop edx
mov dword [esp + 0x28], esi
xor esi, esi
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 3
test eax, eax
je 0x10041e1f
push dword [ebx + edi + 0x220]
push dword [ebx + edi + 0x228]
push eax
call fcn.1005e620
mov edx, dword [esp + 0x28]
add esp, 0xc
test edx, edx
je 0x10041e2c
mov ecx, dword [ebx + edi + 0x200]
lea eax, [ecx + 8]
push eax
lea eax, [edi + 0x238]
add eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
push esi
push esi
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x1009a3b4]
push esi
push esi
push dword [ebx + edi + 0x234]
push edx
push ecx
push dword [ebx + edi + 0x1fc]
call dword [eax + 0x18]
push dword [esp + 0x30]
mov esi, eax
call dword [0x10098344]
and dword [esp + 0x34], 0
pop ecx
cmp esi, 0x80090318
je 0x10042277
cmp esi, 0x90320
jne 0x10042060
test byte [ebx + edi + 0x234], 0x80
je 0x100421bc
cmp esi, 0x90312
je 0x10042070
test esi, esi
jne 0x100421d9
xor eax, eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp dword [ecx + 4], 2
jne 0x100420d4
mov edx, dword [ecx]
test edx, edx
je 0x100420d4
push edx
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push ebp
call fcn.100346c5
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
push dword [eax + 8]
mov eax, dword [esp + 0x30]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10034b0f
mov edx, dword [esp + 0x40]
add esp, 0x20
test eax, eax
jne 0x1004221b
mov ecx, dword [esp + 0x14]
cmp dword [ecx], edx
jne 0x1004221b
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 8]
test edx, edx
je 0x100420ec
mov eax, dword [0x1009a3b4]
push edx
call dword [eax + 0x40]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 3
jl 0x1004207e
cmp dword [esp + 0x38], 5
jne 0x1004223a
cmp dword [esp + 0x34], 0
jbe 0x1004223a
push dword [esp + 0x34]
push str.schannel:_encrypted_data_length:__lu_n
push ebp
call fcn.100346c5
mov ecx, dword [ebx + edi + 0x220]
add esp, 0xc
cmp ecx, dword [esp + 0x34]
jbe 0x10042242
mov eax, dword [ebx + edi + 0x228]
sub ecx, dword [esp + 0x34]
push dword [esp + 0x34]
add ecx, eax
push ecx
push eax
call fcn.1005b1d0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [ebx + edi + 0x220], eax
cmp esi, 0x90312
jne 0x1004225a
mov esi, dword [esp + 0x18]
xor eax, eax
jmp 0x10041eb9
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push ebp
call fcn.10034609
pop ecx
pop ecx
push 0x23
pop eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x70
ret
cmp dword [ebx + edi + 0x1f8], 3
je 0x100421ab
mov dword [ebx + edi + 0x1f8], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push ebp
call fcn.100346c5
pop ecx
pop ecx
xor eax, eax
jmp 0x10042183
or dword [ebx + edi + 0x234], 0x80
mov dword [ebx + edi + 0x1f8], 3
push str.schannel:_a_client_certificate_has_been_requested_n
jmp 0x100421b0
mov eax, 0x80090322
cmp esi, eax
jne 0x100421f1
push eax
push edi
call fcn.10040368
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
jmp 0x100421fe
push esi
push edi
call fcn.10040368
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ebp
call fcn.10034609
add esp, 0x14
cmp esi, 0x80090325
push 0x23
pop eax
push 0x4d
pop ecx
cmove eax, ecx
jmp 0x10042183
mov eax, dword [esp + 0x10]
imul eax, eax, 0xc
push dword [esp + eax + 0x58]
push edx
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push ebp
call fcn.10034609
add esp, 0x10
jmp 0x10042180
and dword [ebx + edi + 0x220], 0
cmp esi, 0x90312
jne 0x1004225a
mov dword [ebx + edi + 0x1f8], 2
jmp 0x100421b8
test esi, esi
jne 0x100421b8
mov dword [ebx + edi + 0x1f8], 4
push str.schannel:_SSL_TLS_handshake_complete_n
jmp 0x100421b0
mov dword [ebx + edi + 0x230], 1
mov dword [ebx + edi + 0x1f8], 2
push str.schannel:_received_incomplete_message__need_more_data_n
jmp 0x100421b0