Function at 0x438630
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.00410540
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 0x438994
cmp dword [ebx + 4], ebp
je 0x438994
cmp dword [ebx + 0x30], ebp
jne 0x4386c7
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 0x4386c7
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.00413f30
add esp, 8
mov eax, 0x1b
jmp 0x438999
cmp dword [ebx + 0x2c], ebp
jne 0x4386ee
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 0x4386af
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
cmp ecx, 0x400
jae 0x438740
mov edx, dword [ebx + 0x2c]
lea edi, [eax + 0x400]
push edi
push edx
call dword [0x45e008]
add esp, 8
cmp eax, ebp
jne 0x438732
push str.schannel:_unable_to_re_allocate_memory
mov eax, dword [esp + 0x14]
push eax
call fcn.00413f30
add esp, 8
mov eax, 0x1b
jmp 0x438999
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x1c], edi
mov edi, dword [esp + 0x10]
lea esp, [esp]
cmp dword [esp + 0x14], ebp
je 0x43878a
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.004164d0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp ecx, 0x51
je 0x438971
cmp ecx, ebp
jne 0x438986
cmp eax, ebp
je 0x438986
add dword [ebx + 0x24], eax
mov dword [ebx + 0x34], ebp
mov eax, dword [ebx + 0x24]
push eax
call fcn.00413510
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 0x4389b2
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 0x4389bc
cmp esi, 0x90320
je 0x43894f
cmp esi, 0x90312
je 0x438893
cmp esi, ebp
jne 0x4389ce
xor edi, edi
lea esi, [esp + 0x58]
lea esp, [esp]
cmp dword [esi + 4], 2
jne 0x4388dd
mov eax, dword [esi]
cmp eax, ebp
jbe 0x4388dd
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.004164a0
add esp, 0x14
cmp dword [esp + 0x18], ebp
jne 0x438aae
cmp dword [esi], eax
jne 0x438aae
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4388ef
push eax
mov eax, dword [0x45ea08]
mov ecx, dword [eax + 0x40]
call ecx
inc edi
add esi, 0xc
cmp edi, 3
jl 0x4388a0
cmp dword [esp + 0x38], 5
jne 0x438ace
mov edx, dword [esp + 0x34]
cmp edx, ebp
jbe 0x438ace
mov eax, dword [ebx + 0x24]
cmp eax, edx
jbe 0x438ad1
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 0x438aed
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
jmp 0x438738
mov eax, dword [ebx + 0x38]
test al, al
js 0x4389ea
mov edx, dword [esp + 0x1c]
or eax, 0x80
mov dword [ebx + 0x38], eax
mov dword [edx + 4], 3
xor eax, eax
jmp 0x438999
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 3
je 0x438982
mov dword [eax + 4], 2
xor eax, eax
jmp 0x438999
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edi
call fcn.00413f30
add esp, 8
mov eax, 0x23
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c7a4
add esp, 0x170
ret
push str.schannel:_unable_to_allocate_memory
jmp 0x43871b
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x34], 1
mov dword [ecx + 4], edi
xor eax, eax
jmp 0x438999
cmp esi, 0x80090300
je 0x438a7a
cmp esi, 0x80090322
je 0x438a46
cmp esi, 0x80090325
je 0x438a12
push 0x100
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0040afe0
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.00413f30
add esp, 0x18
jmp 0x438994
push 0x100
lea edx, [esp + 0x80]
push edx
push 0x80090325
call fcn.0040afe0
push eax
mov eax, dword [esp + 0x20]
push str.schannel:__s
push eax
call fcn.00413f30
add esp, 0x18
mov eax, 0x3c
jmp 0x438999
push 0x100
lea ecx, [esp + 0x80]
push ecx
push 0x80090322
call fcn.0040afe0
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.00413f30
add esp, 0x18
mov eax, 0x3c
jmp 0x438999
push 0x100
lea eax, [esp + 0x80]
push eax
push 0x80090300
call fcn.0040afe0
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.00413f30
add esp, 0x18
mov eax, 0x1b
jmp 0x438999
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.00413f30
add esp, 0x10
jmp 0x438994
mov dword [ebx + 0x24], ebp
cmp dword [esp + 0x14], 0x90312
jne 0x438aed
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], 2
xor eax, eax
jmp 0x438999
cmp dword [esp + 0x14], ebp
jne 0x438afe
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], 4
mov edi, dword [esp + 0x20]
push edi
call fcn.00410510
add esp, 4
test eax, eax
je 0x438b1b
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x5d0]
jmp 0x438b25
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x5cc]
cmp esi, ebp
je 0x438b5b
push edi
mov edi, dword [esp + 0x14]
call fcn.004383c0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x438b57
mov ecx, edi
push str.SSL:_public_key_does_not_match_pinned_public_key
push ecx
call fcn.00413f30
mov eax, dword [esp + 0x20]
add esp, 8
jmp 0x438999
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x3c], ebp
je 0x438982
cmp dword [ebx + 0x54], ebp
je 0x438982
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00448dd0
add esp, 8
jmp 0x438999