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

Disassembly:
sub esp, 0x170
mov eax, dword [0x45e380]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi + 8]
mov ebx, dword [ebp + 0x14]
push edi
mov edi, edx
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebp
call fcn.004106b0
mov dword [esp + 0x28], eax
xor eax, eax
add esp, 4
cmp dword [ebp + 4], 3
setne al
xor ebp, ebp
mov dword [esp + 0x14], eax
cmp dword [ebx], ebp
je 0x438ae4
cmp dword [ebx + 4], ebp
je 0x438ae4
cmp dword [ebx + 0x30], ebp
jne 0x438817
push 0x1000
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x20], 0x1000
call dword [section..data]
add esp, 4
mov dword [ebx + 0x30], eax
cmp eax, ebp
jne 0x438817
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00414090
add esp, 8
mov eax, 0x1b
jmp 0x438ae9
cmp dword [ebx + 0x2c], ebp
jne 0x43883e
push 0x1000
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x24], ebp
mov dword [ebx + 0x1c], 0x1000
call dword [section..data]
add esp, 4
mov dword [ebx + 0x2c], eax
cmp eax, ebp
je 0x4387ff
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
cmp ecx, 0x400
jae 0x438890
mov edx, dword [ebx + 0x2c]
lea edi, [eax + 0x400]
push edi
push edx
call dword [0x45e008]
add esp, 8
cmp eax, ebp
jne 0x438882
push str.schannel:_unable_to_re_allocate_memory
mov eax, dword [esp + 0x14]
push eax
call fcn.00414090
add esp, 8
mov eax, 0x1b
jmp 0x438ae9
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x1c], edi
mov edi, dword [esp + 0x10]
lea esp, [esp]
cmp dword [esp + 0x14], ebp
je 0x4388da
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x2c]
sub edx, eax
push edx
mov edx, dword [esi + 4]
add ecx, eax
push ecx
push edi
push edx
call fcn.00416630
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp ecx, 0x51
je 0x438ac1
cmp ecx, ebp
jne 0x438ad6
cmp eax, ebp
je 0x438ad6
add dword [ebx + 0x24], eax
mov dword [ebx + 0x34], ebp
mov eax, dword [ebx + 0x24]
push eax
call fcn.00413670
mov ecx, dword [ebx + 0x24]
push ecx
mov esi, eax
call dword [section..data]
mov edi, 2
add esp, 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0x11
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 3
cmp eax, ebp
je 0x438b02
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x2c]
push edx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [eax + 8]
push edx
lea edx, [ebx + 0x3c]
push edx
lea edx, [esp + 0x48]
push edx
push ebp
push ebp
lea edx, [esp + 0x60]
push edx
mov edx, dword [ebx + 0x38]
push ebp
push ebp
push edx
mov edx, dword [ecx + 0x10]
push edx
push eax
mov eax, dword [0x45ea08]
push ecx
mov ecx, dword [eax + 0x18]
call ecx
mov edx, dword [esp + 0x30]
mov esi, eax
push edx
mov dword [esp + 0x18], esi
call dword [0x45e004]
add esp, 4
mov dword [esp + 0x30], ebp
cmp esi, 0x80090318
je 0x438b0c
cmp esi, 0x90320
je 0x438a9f
cmp esi, 0x90312
je 0x4389e3
cmp esi, ebp
jne 0x438b1e
xor edi, edi
lea esi, [esp + 0x58]
lea esp, [esp]
cmp dword [esi + 4], 2
jne 0x438a2d
mov eax, dword [esi]
cmp eax, ebp
jbe 0x438a2d
mov edx, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00416600
add esp, 0x14
cmp dword [esp + 0x18], ebp
jne 0x438bfe
cmp dword [esi], eax
jne 0x438bfe
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x438a3f
push eax
mov eax, dword [0x45ea08]
mov ecx, dword [eax + 0x40]
call ecx
inc edi
add esi, 0xc
cmp edi, 3
jl 0x4389f0
cmp dword [esp + 0x38], 5
jne 0x438c1e
mov edx, dword [esp + 0x34]
cmp edx, ebp
jbe 0x438c1e
mov eax, dword [ebx + 0x24]
cmp eax, edx
jbe 0x438c21
mov ecx, dword [ebx + 0x2c]
sub eax, edx
push edx
add eax, ecx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x14], 0x90312
mov dword [ebx + 0x24], edx
jne 0x438c3d
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
jmp 0x438888
mov eax, dword [ebx + 0x38]
test al, al
js 0x438b3a
mov edx, dword [esp + 0x1c]
or eax, 0x80
mov dword [ebx + 0x38], eax
mov dword [edx + 4], 3
xor eax, eax
jmp 0x438ae9
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 3
je 0x438ad2
mov dword [eax + 4], 2
xor eax, eax
jmp 0x438ae9
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edi
call fcn.00414090
add esp, 8
mov eax, 0x23
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c8e4
add esp, 0x170
ret
push str.schannel:_unable_to_allocate_memory
jmp 0x43886b
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x34], 1
mov dword [ecx + 4], edi
xor eax, eax
jmp 0x438ae9
cmp esi, 0x80090300
je 0x438bca
cmp esi, 0x80090322
je 0x438b96
cmp esi, 0x80090325
je 0x438b62
push 0x100
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0040b150
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.00414090
add esp, 0x18
jmp 0x438ae4
push 0x100
lea edx, [esp + 0x80]
push edx
push 0x80090325
call fcn.0040b150
push eax
mov eax, dword [esp + 0x20]
push str.schannel:__s
push eax
call fcn.00414090
add esp, 0x18
mov eax, 0x3c
jmp 0x438ae9
push 0x100
lea ecx, [esp + 0x80]
push ecx
push 0x80090322
call fcn.0040b150
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.00414090
add esp, 0x18
mov eax, 0x3c
jmp 0x438ae9
push 0x100
lea eax, [esp + 0x80]
push eax
push 0x80090300
call fcn.0040b150
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.00414090
add esp, 0x18
mov eax, 0x1b
jmp 0x438ae9
lea edx, [edi + edi*2]
mov ecx, dword [esp + edx*4 + 0x58]
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.00414090
add esp, 0x10
jmp 0x438ae4
mov dword [ebx + 0x24], ebp
cmp dword [esp + 0x14], 0x90312
jne 0x438c3d
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], 2
xor eax, eax
jmp 0x438ae9
cmp dword [esp + 0x14], ebp
jne 0x438c4e
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], 4
mov edi, dword [esp + 0x20]
push edi
call fcn.00410680
add esp, 4
test eax, eax
je 0x438c6b
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x5d0]
jmp 0x438c75
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x5cc]
cmp esi, ebp
je 0x438cab
push edi
mov edi, dword [esp + 0x14]
call fcn.00438510
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x438ca7
mov ecx, edi
push str.SSL:_public_key_does_not_match_pinned_public_key
push ecx
call fcn.00414090
mov eax, dword [esp + 0x20]
add esp, 8
jmp 0x438ae9
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x3c], ebp
je 0x438ad2
cmp dword [ebx + 0x54], ebp
je 0x438ad2
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00448f10
add esp, 8
jmp 0x438ae9