Function at 0x4a8440
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
push ebx
mov dword [ebp - 0x12c], eax
mov esi, dword [eax + 0x14]
call fcn.0048bbb0
push edi
push ebx
mov dword [ebp - 0x120], eax
call fcn.0048bb90
push 1
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x12c]
push 2
push 0
mov dword [ebp - 0x118], 0
mov eax, dword [eax + 8]
push 1
push 5
mov dword [ebp - 0x11c], eax
call fcn.004c4270
add esp, 0x20
test al, al
je 0x4a84be
push str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc.
push edi
call fcn.00492a90
add esp, 8
mov eax, dword [ebp - 0x120]
mov byte [esi + 0x47], 0
cmp dword [eax + 4], 0
jne 0x4a84da
cmp dword [eax + 0x24], 0
jne 0x4a84da
mov byte [esi + 0x48], 0
jmp 0x4a84f8
push 3
push 2
push 0
push 1
push 6
call fcn.004c4270
add esp, 0x14
test al, al
je 0x4a8872
mov byte [esi + 0x48], 1
mov eax, dword [ebp - 0x124]
mov dword [esi], 0
cmp byte [eax + 0x3c], 0
je 0x4a8546
push edi
call fcn.0048c480
push 0
lea eax, [ebp - 0x118]
push eax
push edi
push ebx
call fcn.0048c0c0
add esp, 0x14
test al, al
jne 0x4a8538
mov eax, dword [ebp - 0x118]
mov dword [esi], eax
mov eax, dword [ebp - 0x118]
inc dword [eax + 0x18]
push edi
call fcn.0048c4b0
add esp, 4
cmp dword [esi], 0
jne 0x4a85b0
push edi
push ebx
call fcn.004a7350
add esp, 8
mov dword [ebp - 0x128], eax
test eax, eax
jne 0x4a8885
push eax
push dword [ebp - 0x11c]
push edi
call fcn.0048c4f0
add esp, 0xc
test eax, eax
jne 0x4a8596
push str.Failed_to_set_SNI
push edi
call fcn.004929d0
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
push eax
call fcn.004a3890
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, dword [esi]
cmp dword [eax + 0x10], 0
je 0x4a87bc
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x11c]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x4a85e2
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x11c]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x4a85f0
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
push edi
call fcn.00492a90
add esp, 8
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 1
mov dword [esi + 0x38], 0x811c
cmp byte [eax + 0x67], 0
jne 0x4a8686
mov dword [esi + 0x38], 0x819c
push 0x10
push 1
call dword [0x57a358]
mov edx, eax
add esp, 8
mov dword [esi + 4], edx
test edx, edx
jne 0x4a86c0
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.004929d0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea eax, [edx + 8]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x150]
push eax
push edx
xor edx, edx
lea eax, [ebp - 0x15c]
cmp byte [esi + 0x47], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x57fce0]
push edx
push edx
push dword [esi + 0x38]
mov eax, dword [eax + 0x18]
push dword [ecx + 0x10]
push edx
push ecx
call eax
mov dword [ebp - 0x120], eax
cmp eax, 0x90312
je 0x4a87d2
push dword [esi + 4]
call dword [0x57a34c]
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [esi + 4], 0
push 0x100
cmp eax, 0x80090300
je 0x4a879c
cmp eax, 0x80090322
je 0x4a8766
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.004a3ad0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.004929d0
add esp, 0x18
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push eax
push 0x80090322
call fcn.004a3ad0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edi
call fcn.004929d0
add esp, 0x18
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push eax
push 0x80090300
call fcn.004a3ad0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.004929d0
add esp, 0x18
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x138]
push dword [ebp - 0x130]
push edi
push dword [ebx + 4]
call fcn.00492130
mov ecx, dword [0x57fce0]
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x130]
mov ecx, dword [ecx + 0x40]
call ecx
cmp dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x138]
jne 0x4a884c
cmp eax, ebx
jne 0x4a884c
mov eax, dword [ebp - 0x12c]
pop edi
mov dword [esi + 0x40], 0
mov word [esi + 0x44], 0
mov byte [esi + 0x46], 0
mov byte [esi + 0x34], 0
pop esi
mov dword [eax + 4], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
push eax
push ebx
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edi
call fcn.004929d0
add esp, 0x10
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push edi
call fcn.004929d0
mov eax, 0x4d
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e36f8
mov esp, ebp
pop ebp
ret