Function at 0x4a0000
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 + 0xec], edi
jne 0x4a0059
xor ecx, ecx
cmp dword [ebp + 0x1ac], eax
setne cl
shl ecx, 4
cmp dword [ecx + ebp + 0x214], edi
je 0x4a0059
mov edx, dword [ebp + 0xe0]
mov dword [esp + 0x14], edx
jmp 0x4a0063
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xfc]
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.00498f80
mov eax, dword [esi + 0xc]
xor edi, edi
add esp, 0x10
cmp dword [eax], edi
je 0x4a048e
cmp dword [eax + 4], edi
je 0x4a048e
cmp dword [eax + 0x30], edi
jne 0x4a00eb
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 [0x4f5150]
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0xc]
add esp, 4
cmp dword [eax + 0x30], edi
jne 0x4a00eb
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.00499010
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 0x4a0125
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 [0x4f5150]
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 0x4a00d0
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
sub eax, edx
cmp eax, 0x400
jae 0x4a0172
lea edi, [edx + 0x400]
push edi
push ecx
call dword [0x4f5158]
add esp, 8
test eax, eax
jne 0x4a0164
push str.schannel:_unable_to_re_allocate_memory
push ebx
call fcn.00499010
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 0x4a01e2
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.00498d90
add esp, 0x10
cmp eax, 0x51
je 0x4a045b
cmp eax, edi
jne 0x4a0480
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x4a0480
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.00498f80
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.00498f80
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x24]
push edx
call fcn.0049af10
mov edi, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call dword [0x4f5150]
push eax
mov ecx, edi
mov edx, 2
lea eax, [esp + 0x54]
call fcn.0049d6c0
push 0
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x64]
call fcn.0049d6c0
mov edx, 2
lea ecx, [esp + 0x58]
lea eax, [esp + 0x4c]
call fcn.0049d6d0
push 0
xor ecx, ecx
lea eax, [esp + 0x74]
call fcn.0049d6c0
xor ecx, ecx
push 0
lea edx, [ecx + 0x11]
lea eax, [esp + 0x84]
call fcn.0049d6c0
push 0
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x94]
call fcn.0049d6c0
add esp, 0x2c
mov edx, 3
lea ecx, [esp + 0x50]
lea eax, [esp + 0x20]
call fcn.0049d6d0
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4a00d0
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x2c]
push edx
push eax
push ecx
call fcn.00479960
mov edx, dword [esp + 0x20]
add esp, 0xc
test edx, edx
je 0x4a00de
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 [0x4fb47c]
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 [0x4f5154]
add esp, 4
mov dword [esp + 0x40], 0
cmp edi, 0x80090318
je 0x4a049b
cmp edi, 0x90320
je 0x4a041b
cmp edi, 0x90312
je 0x4a0330
test edi, edi
jne 0x4a04e6
xor ebx, ebx
lea edi, [esp + 0x50]
cmp dword [edi + 4], 2
jne 0x4a038a
mov eax, dword [edi]
test eax, eax
jbe 0x4a038a
mov edx, dword [esp + 0x78]
push eax
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push edx
call fcn.00498f80
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.004994c0
add esp, 0x20
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x4a0504
cmp dword [edi], eax
jne 0x4a0504
mov eax, dword [edi + 8]
test eax, eax
je 0x4a039d
mov edx, dword [0x4fb47c]
push eax
mov eax, dword [edx + 0x40]
call eax
inc ebx
add edi, 0xc
cmp ebx, 3
jl 0x4a0336
cmp dword [esp + 0x48], 5
jne 0x4a052f
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x4a052f
mov ebx, dword [esp + 0x78]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push ebx
call fcn.00498f80
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp ecx, edx
jbe 0x4a053d
mov eax, dword [eax + 0x2c]
mov edi, eax
sub edi, edx
push edx
add edi, ecx
push edi
push eax
call fcn.0047d500
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp dword [esp + 0x18], 0x90312
mov dword [ecx + 0x24], edx
jne 0x4a0558
mov dword [esp + 0x18], 0
jmp 0x4a0170
mov eax, dword [esi + 0xc]
mov ecx, 0x80
test byte [eax + 0x38], cl
je 0x4a04c4
push edi
push ebp
call fcn.004a73d0
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ebx
call fcn.00499010
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 0x4a0468
mov dword [esi + 8], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push ebx
call fcn.00498f80
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.00499010
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.00498f80
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.00498f80
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
cmp edi, 0x80090322
jne 0x4a042c
push edi
push ebp
call fcn.004a73d0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
jmp 0x4a0439
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.00499010
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 0x4a0558
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 0x4a0574
push str.schannel:_SSL_TLS_handshake_complete_n
push ebx
mov dword [esi + 8], 4
call fcn.00498f80
add esp, 8
mov eax, 2
cmp dword [ebp + 0xec], eax
jne 0x4a05a1
xor edx, edx
cmp dword [ebp + 0x1ac], 0xffffffff
setne dl
shl edx, 4
cmp dword [edx + ebp + 0x214], eax
je 0x4a05a1
mov eax, dword [ebx + 0x658]
jmp 0x4a05a7
mov eax, dword [ebx + 0x654]
test eax, eax
je 0x4a05db
push eax
mov eax, dword [esp + 0x80]
mov ecx, ebp
call fcn.0049fd80
mov edi, eax
add esp, 4
test edi, edi
je 0x4a05db
push str.SSL:_public_key_does_not_match_pinned_public_key_
push ebx
call fcn.00499010
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
cmp dword [ebp + 0x23c], 0
je 0x4a0476
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x50], 0
je 0x4a0476
mov ecx, dword [esp + 0x7c]
push ecx
push ebp
call fcn.004aa2a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret