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

Disassembly:
sub esp, 0x170
mov eax, dword [0x100a3428]
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.100185c0
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 0x100486d4
cmp dword [ebx + 4], ebp
je 0x100486d4
cmp dword [ebx + 0x30], ebp
jne 0x10048407
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 0x10048407
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.1001cb80
add esp, 8
mov eax, 0x1b
jmp 0x100486d9
cmp dword [ebx + 0x2c], ebp
jne 0x1004842e
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 0x100483ef
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x1c]
sub ecx, eax
cmp ecx, 0x400
jae 0x10048480
mov edx, dword [ebx + 0x2c]
lea edi, [eax + 0x400]
push edi
push edx
call dword [0x100a3008]
add esp, 8
cmp eax, ebp
jne 0x10048472
push str.schannel:_unable_to_re_allocate_memory
mov eax, dword [esp + 0x14]
push eax
call fcn.1001cb80
add esp, 8
mov eax, 0x1b
jmp 0x100486d9
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x1c], edi
mov edi, dword [esp + 0x10]
lea esp, [esp]
cmp dword [esp + 0x14], ebp
je 0x100484ca
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.10021340
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp ecx, 0x51
je 0x100486b1
cmp ecx, ebp
jne 0x100486c6
cmp eax, ebp
je 0x100486c6
add dword [ebx + 0x24], eax
mov dword [ebx + 0x34], ebp
mov eax, dword [ebx + 0x24]
push eax
call fcn.1001c090
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 0x100486f2
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 [0x100c0b08]
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 [0x100a3004]
add esp, 4
mov dword [esp + 0x30], ebp
cmp esi, 0x80090318
je 0x100486fc
cmp esi, 0x90320
je 0x1004868f
cmp esi, 0x90312
je 0x100485d3
cmp esi, ebp
jne 0x1004870e
xor edi, edi
lea esi, [esp + 0x58]
lea esp, [esp]
cmp dword [esi + 4], 2
jne 0x1004861d
mov eax, dword [esi]
cmp eax, ebp
jbe 0x1004861d
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.10021310
add esp, 0x14
cmp dword [esp + 0x18], ebp
jne 0x100487ee
cmp dword [esi], eax
jne 0x100487ee
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x1004862f
push eax
mov eax, dword [0x100c0b08]
mov ecx, dword [eax + 0x40]
call ecx
inc edi
add esi, 0xc
cmp edi, 3
jl 0x100485e0
cmp dword [esp + 0x38], 5
jne 0x1004880e
mov edx, dword [esp + 0x34]
cmp edx, ebp
jbe 0x1004880e
mov eax, dword [ebx + 0x24]
cmp eax, edx
jbe 0x10048811
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 0x1004882d
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
jmp 0x10048478
mov eax, dword [ebx + 0x38]
test al, al
js 0x1004872a
mov edx, dword [esp + 0x1c]
or eax, 0x80
mov dword [ebx + 0x38], eax
mov dword [edx + 4], 3
xor eax, eax
jmp 0x100486d9
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 3
je 0x100486c2
mov dword [eax + 4], 2
xor eax, eax
jmp 0x100486d9
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push edi
call fcn.1001cb80
add esp, 8
mov eax, 0x23
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005cc54
add esp, 0x170
ret
push str.schannel:_unable_to_allocate_memory
jmp 0x1004845b
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x34], 1
mov dword [ecx + 4], edi
xor eax, eax
jmp 0x100486d9
cmp esi, 0x80090300
je 0x100487ba
cmp esi, 0x80090322
je 0x10048786
cmp esi, 0x80090325
je 0x10048752
push 0x100
lea eax, [esp + 0x80]
push eax
push esi
call fcn.1000ee10
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.1001cb80
add esp, 0x18
jmp 0x100486d4
push 0x100
lea edx, [esp + 0x80]
push edx
push 0x80090325
call fcn.1000ee10
push eax
mov eax, dword [esp + 0x20]
push str.schannel:__s
push eax
call fcn.1001cb80
add esp, 0x18
mov eax, 0x3c
jmp 0x100486d9
push 0x100
lea ecx, [esp + 0x80]
push ecx
push 0x80090322
call fcn.1000ee10
mov edx, dword [esp + 0x1c]
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edx
call fcn.1001cb80
add esp, 0x18
mov eax, 0x3c
jmp 0x100486d9
push 0x100
lea eax, [esp + 0x80]
push eax
push 0x80090300
call fcn.1000ee10
mov ecx, dword [esp + 0x1c]
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ecx
call fcn.1001cb80
add esp, 0x18
mov eax, 0x1b
jmp 0x100486d9
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.1001cb80
add esp, 0x10
jmp 0x100486d4
mov dword [ebx + 0x24], ebp
cmp dword [esp + 0x14], 0x90312
jne 0x1004882d
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], 2
xor eax, eax
jmp 0x100486d9
cmp dword [esp + 0x14], ebp
jne 0x1004883e
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], 4
mov edi, dword [esp + 0x20]
push edi
call fcn.10018590
add esp, 4
test eax, eax
je 0x1004885b
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x5d0]
jmp 0x10048865
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x5cc]
cmp esi, ebp
je 0x1004889b
push edi
mov edi, dword [esp + 0x14]
call fcn.10048100
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x10048897
mov ecx, edi
push str.SSL:_public_key_does_not_match_pinned_public_key
push ecx
call fcn.1001cb80
mov eax, dword [esp + 0x20]
add esp, 8
jmp 0x100486d9
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x3c], ebp
je 0x100486c2
cmp dword [ebx + 0x54], ebp
je 0x100486c2
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.10058cf0
add esp, 8
jmp 0x100486d9