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

Disassembly:
sub esp, 0x74
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
add esi, 0x1f
shl esi, 4
or eax, 0xffffffff
push edi
mov edi, dword [ebp]
mov ecx, 2
add esi, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
cmp dword [ebp + 0xf0], ecx
jne 0x433868
xor edx, edx
cmp dword [ebp + 0x1ac], eax
setne dl
add edx, edx
cmp dword [ebp + edx*8 + 0x214], ecx
je 0x433868
mov eax, dword [ebp + 0xe4]
mov dword [esp + 0x20], eax
jmp 0x433872
mov ecx, dword [ebp + 0x9c]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0x100]
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp dword [esi + 8], 3
push eax
setne dl
push ecx
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push edi
mov dword [esp + 0x24], edx
call fcn.004283c0
mov eax, dword [esi + 0xc]
xor ebx, ebx
add esp, 0x10
cmp dword [eax], ebx
je 0x433cba
cmp dword [eax + 4], ebx
je 0x433cba
cmp dword [eax + 0x30], ebx
jne 0x433905
mov dword [eax + 0x28], ebx
mov edx, dword [esi + 0xc]
mov dword [edx + 0x20], 0x1000
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [0x47604c]
mov edx, dword [esi + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [esi + 0xc]
add esp, 4
cmp dword [eax + 0x30], ebx
jne 0x433905
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00428510
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
mov ecx, dword [eax + 0x2c]
cmp ecx, ebx
jne 0x43393f
mov dword [eax + 0x34], ebx
mov eax, dword [esi + 0xc]
mov dword [eax + 0x24], ebx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1c], 0x1000
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call dword [0x47604c]
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, ebx
je 0x4338df
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
sub eax, edx
cmp eax, 0x400
jae 0x4339a0
lea eax, [edx + 0x400]
push eax
push ecx
mov dword [esp + 0x20], eax
call dword [0x476054]
add esp, 8
cmp eax, ebx
jne 0x43398d
push str.schannel:_unable_to_re_allocate_memory
push edi
call fcn.00428510
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x2c], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x1c], eax
lea ecx, [ecx]
cmp dword [esp + 0x14], ebx
je 0x433a0d
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
lea edx, [esp + 0x24]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
sub edx, ecx
push edx
add eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + ecx*4 + 0x1a8]
push eax
push edx
call fcn.004281c0
add esp, 0x10
cmp eax, 0x51
je 0x433c7c
cmp eax, ebx
jne 0x433cac
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x433cac
mov eax, dword [esi + 0xc]
add dword [eax + 0x24], ecx
mov eax, dword [esi + 0xc]
mov dword [eax + 0x34], ebx
mov ecx, dword [esp + 0x24]
push ecx
push str.schannel:_encrypted_data_got__zd_n
push edi
call fcn.004283c0
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 edi
call fcn.004283c0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x24]
push edx
call fcn.0042a910
mov edi, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call dword [0x47604c]
mov ecx, 2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x78], ecx
add esp, 0x18
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x11
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], 3
cmp eax, ebx
je 0x433cd2
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x2c]
push edx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp edx, ebx
je 0x4338ed
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 + 0x58]
push edi
push ebx
push ebx
lea edi, [esp + 0x58]
push edi
mov edi, dword [eax + 0x38]
push ebx
push ebx
push edi
push edx
mov edx, dword [eax]
mov eax, dword [0x47a670]
push ecx
mov ecx, dword [eax + 0x18]
push edx
call ecx
mov edx, dword [esp + 0x34]
mov edi, eax
push edx
mov dword [esp + 0x18], edi
call dword [0x476050]
add esp, 4
mov dword [esp + 0x34], ebx
cmp edi, 0x80090318
je 0x433cfc
cmp edi, 0x90320
je 0x433c3a
cmp edi, 0x90312
je 0x433b41
cmp edi, ebx
jne 0x433d34
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x5c]
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x433ba1
mov eax, dword [edi]
cmp eax, ebx
jbe 0x433ba1
push eax
mov eax, dword [esp + 0x14]
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push eax
call fcn.004283c0
mov edx, dword [edi]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + ecx*4 + 0x1a8]
push eax
push edx
push ebp
call fcn.00428b20
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x28]
jne 0x433dcf
cmp dword [edi], eax
jne 0x433dcf
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x433bb3
push eax
mov eax, dword [0x47a670]
mov ecx, dword [eax + 0x40]
call ecx
mov eax, dword [esp + 0x18]
inc eax
add edi, 0xc
mov dword [esp + 0x18], eax
cmp eax, 3
jl 0x433b50
cmp dword [esp + 0x3c], 5
jne 0x433df3
mov eax, dword [esp + 0x38]
cmp eax, ebx
jbe 0x433df3
mov edi, dword [esp + 0x10]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push edi
call fcn.004283c0
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x24]
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp edx, ecx
jbe 0x433dfd
mov eax, dword [eax + 0x2c]
mov edi, eax
sub edi, ecx
push ecx
add edi, edx
push edi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x14], 0x90312
mov dword [edx + 0x24], eax
jne 0x433e23
mov dword [esp + 0x14], ebx
jmp 0x4339a0
mov eax, dword [esi + 0xc]
mov ecx, 0x80
test byte [eax + 0x38], cl
jne 0x433d44
or dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x10]
push str.schannel:_a_client_certificate_has_been_requested_n
push ecx
mov dword [esi + 8], 3
call fcn.004283c0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
cmp dword [esi + 8], 3
je 0x433c89
mov dword [esi + 8], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push edi
call fcn.004283c0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edi
call fcn.00428510
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x23
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
mov ecx, dword [esp + 0x10]
push str.schannel:_unable_to_allocate_memory
push ecx
call fcn.00428510
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push str.schannel:_received_incomplete_message__need_more_data_n
mov dword [edx + 0x34], 1
push eax
mov dword [esi + 8], 2
call fcn.004283c0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
cmp edi, 0x80090300
je 0x433d99
cmp edi, 0x80090322
je 0x433d63
push edi
push ebp
call fcn.00453ef0
mov edx, dword [esp + 0x18]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push edx
call fcn.00428510
add esp, 0x14
jmp 0x433cba
push 0x80090322
push ebp
call fcn.00453ef0
push eax
mov eax, dword [esp + 0x1c]
push str.schannel:_SNI_or_certificate_check_failed:__s
push eax
call fcn.00428510
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 0x3c
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
push 0x80090300
push ebp
call fcn.00453ef0
mov ecx, dword [esp + 0x18]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.00428510
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + edx*4 + 0x5c]
mov edx, dword [esp + 0x10]
push ecx
push eax
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push edx
call fcn.00428510
add esp, 0x10
jmp 0x433cba
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x10]
mov dword [eax + 0x24], ebx
cmp dword [esp + 0x14], 0x90312
jne 0x433e23
pop edi
mov dword [esi + 8], 2
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
cmp dword [esp + 0x14], ebx
jne 0x433e3e
push str.schannel:_SSL_TLS_handshake_complete_n
push edi
mov dword [esi + 8], 4
call fcn.004283c0
add esp, 8
mov eax, 2
cmp dword [ebp + 0xf0], eax
jne 0x433e6a
xor ecx, ecx
cmp dword [ebp + 0x1ac], 0xffffffff
setne cl
add ecx, ecx
cmp dword [ebp + ecx*8 + 0x214], eax
je 0x433e6a
mov eax, dword [edi + 0xab0]
jmp 0x433e70
mov eax, dword [edi + 0xaac]
cmp eax, ebx
je 0x433eb0
push eax
mov eax, dword [esp + 0x20]
mov ecx, ebp
call fcn.00433580
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x433eb0
push str.SSL:_public_key_does_not_match_pinned_public_key_
push edi
call fcn.00428510
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret
cmp dword [ebp + 0x23c], ebx
je 0x433c97
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x50], ebx
je 0x433c97
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.00458570
mov ecx, dword [esp + 0x88]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004183ef
add esp, 0x74
ret