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

Disassembly:
sub esp, 0xf0
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
mov ebp, dword [esp + 0xfc]
push esi
mov esi, dword [esp + 0x104]
push edi
mov edi, dword [ebp]
lea ebx, [esi + 0x20]
shl ebx, 4
add ebx, ebp
cmp dword [ebp + 0xf0], 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edi
jne 0x52a6b2
xor eax, eax
cmp dword [ebp + 0x1bc], 0xffffffff
setne al
add eax, 0x22
add eax, eax
cmp dword [ebp + eax*8], 2
je 0x52a6b2
mov eax, dword [ebp + 0xe4]
jmp 0x52a6b8
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x24], eax
xor eax, eax
cmp dword [ebx + 4], 3
setne al
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
cmp dword [eax], 0
je 0x52aa38
cmp dword [eax + 4], 0
je 0x52aa38
cmp dword [eax + 0x30], 0
jne 0x52a72c
mov dword [eax + 0x28], 0
mov eax, dword [ebx + 8]
mov dword [eax + 0x20], 0x1000
mov eax, dword [ebx + 8]
push dword [eax + 0x20]
call dword [0x5ca750]
mov ecx, dword [ebx + 8]
add esp, 4
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + 8]
cmp dword [eax + 0x30], 0
jne 0x52a72c
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00517c40
add esp, 8
mov eax, 0x1b
jmp 0x52aa3d
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x52a765
mov dword [eax + 0x34], ecx
mov eax, dword [ebx + 8]
mov dword [eax + 0x24], ecx
mov eax, dword [ebx + 8]
mov dword [eax + 0x1c], 0x1000
mov eax, dword [ebx + 8]
push dword [eax + 0x1c]
call dword [0x5ca750]
mov ecx, dword [ebx + 8]
add esp, 4
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x52a714
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
sub eax, edx
cmp eax, 0x400
jae 0x52a7b3
lea esi, [edx + 0x400]
push esi
push ecx
call dword [0x5ca758]
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x52a7a3
push str.schannel:_unable_to_re_allocate_memory
push edi
call fcn.00517c40
add esp, 8
mov eax, 0x1b
jmp 0x52aa3d
mov eax, dword [ebx + 8]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebx + 8]
mov dword [eax + 0x1c], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x52a80d
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx + 0x1c]
sub eax, dword [ecx + 0x24]
push eax
mov eax, dword [ecx + 0x2c]
add eax, dword [ecx + 0x24]
push eax
push dword [ebp + esi*4 + 0x1b8]
call fcn.00517e80
add esp, 0x10
cmp eax, 0x51
je 0x52aa56
test eax, eax
jne 0x52aa26
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x52aa26
mov eax, dword [ebx + 8]
add dword [eax + 0x24], ecx
mov eax, dword [ebx + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebx + 8]
push dword [eax + 0x24]
call fcn.00448600
mov ecx, dword [ebx + 8]
mov esi, eax
push dword [ecx + 0x24]
call dword [0x5ca750]
mov ecx, eax
lea eax, [esp + 0x30]
mov dword [esp + 0x5c], eax
add esp, 8
lea eax, [esp + 0x58]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 3
test ecx, ecx
je 0x52ac12
mov eax, dword [ebx + 8]
push dword [eax + 0x24]
push dword [eax + 0x2c]
push ecx
call sub.MSVCR110.dll_memcpy
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x52a722
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 4]
lea eax, [ecx + 8]
push eax
lea eax, [edx + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x5cd770]
push 0
mov eax, dword [eax + 0x18]
push 0
push dword [edx + 0x38]
push esi
push ecx
push dword [edx]
call eax
push dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x1c], esi
call dword [0x5ca754]
add esp, 4
mov dword [esp + 0x30], 0
cmp esi, 0x80090318
je 0x52abfa
cmp esi, 0x90320
je 0x52abb0
cmp esi, 0x90312
je 0x52a965
test esi, esi
jne 0x52aa67
xor edi, edi
lea esi, [esp + 0x58]
jmp 0x52a970
cmp dword [esi + 4], 2
jne 0x52a9ad
mov eax, dword [esi]
test eax, eax
je 0x52a9ad
lea ecx, [esp + 0x1c]
push ecx
push eax
push dword [esi + 8]
mov eax, dword [esp + 0x20]
push dword [ebp + eax*4 + 0x1b8]
push ebp
call fcn.00518210
mov ecx, dword [esp + 0x30]
add esp, 0x14
test eax, eax
jne 0x52aadc
cmp dword [esi], ecx
jne 0x52aadc
mov eax, dword [esi + 8]
test eax, eax
je 0x52a9bf
push eax
mov eax, dword [0x5cd770]
mov eax, dword [eax + 0x40]
call eax
inc edi
add esi, 0xc
cmp edi, 3
jl 0x52a970
cmp dword [esp + 0x38], 5
jne 0x52aafb
mov edx, dword [esp + 0x34]
test edx, edx
je 0x52aafb
mov ecx, dword [ebx + 8]
mov esi, dword [ecx + 0x24]
cmp esi, edx
jbe 0x52ab05
mov ecx, dword [ecx + 0x2c]
mov eax, ecx
sub eax, edx
push edx
add eax, esi
push eax
push ecx
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 0x90312
jne 0x52ab14
mov esi, dword [esp + 0x14]
xor eax, eax
jmp 0x52a7b7
mov eax, dword [esp + 0x10]
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push eax
call fcn.00517c40
add esp, 8
mov eax, 0x23
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0xf0
ret
cmp dword [ebx + 4], 3
je 0x52aa63
mov dword [ebx + 4], 2
xor eax, eax
jmp 0x52aa3d
cmp esi, 0x80090300
je 0x52aaa8
cmp esi, 0x80090322
jne 0x52abba
push 0x80
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00504800
push eax
mov eax, dword [esp + 0x20]
push str.schannel:_SNI_or_certificate_check_failed:__s
push eax
call fcn.00517c40
add esp, 0x18
mov eax, 0x3c
jmp 0x52aa3d
push 0x80
lea eax, [esp + 0x80]
push eax
push 0x80090300
call fcn.00504800
push eax
mov eax, dword [esp + 0x20]
push str.schannel:_next_InitializeSecurityContext_failed:__s
push eax
call fcn.00517c40
add esp, 0x18
mov eax, 0x1b
jmp 0x52aa3d
lea eax, [edi + edi*2]
push dword [esp + eax*4 + 0x58]
mov eax, dword [esp + 0x14]
push ecx
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push eax
call fcn.00517c40
add esp, 0x10
jmp 0x52aa38
mov eax, dword [ebx + 8]
mov dword [eax + 0x24], 0
mov eax, dword [esp + 0x18]
cmp eax, 0x90312
je 0x52aa5c
test eax, eax
jne 0x52ab1f
mov dword [ebx + 4], 4
cmp dword [ebp + 0xf0], 2
jne 0x52ab4c
xor eax, eax
cmp dword [ebp + 0x1bc], 0xffffffff
setne al
add eax, 0x22
add eax, eax
cmp dword [ebp + eax*8], 2
je 0x52ab4c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x9b8]
jmp 0x52ab56
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x9b4]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x52ab87
push eax
push edi
push ebp
call fcn.00529b30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x52ab87
push str.SSL:_public_key_does_not_match_pinned_public_key_
push dword [esp + 0x14]
call fcn.00517c40
add esp, 8
mov eax, esi
jmp 0x52aa3d
test byte [ebp + 0x268], 1
je 0x52aa63
mov eax, dword [ebx + 8]
cmp dword [eax + 0x50], 0
je 0x52aa63
push edi
push ebp
call fcn.00543220
add esp, 8
jmp 0x52aa3d
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0x38]
test al, al
jns 0x52abe4
push 0x80
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00504800
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push dword [esp + 0x24]
call fcn.00517c40
add esp, 0x18
jmp 0x52aa38
or eax, 0x80
mov dword [ecx + 0x38], eax
mov dword [ebx + 4], 3
xor eax, eax
jmp 0x52aa3d
mov eax, dword [ebx + 8]
mov dword [eax + 0x34], 1
mov dword [ebx + 4], 2
xor eax, eax
jmp 0x52aa3d
push str.schannel:_unable_to_allocate_memory
push dword [esp + 0x14]
call fcn.00517c40
add esp, 8
mov eax, 0x1b
jmp 0x52aa3d