Function at 0x4d95f0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x67f3c0]
xor eax, esp
mov dword [esp + 0x1dc], eax
mov eax, dword [esp + 0x1ec]
push ebx
mov ebx, dword [esp + 0x1e8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1f8]
mov esi, 0x1b8
mov dword [esp + 0x18], eax
add eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], 0
cmp dword [edi + 0xb8], 2
lea edx, [esi + 0x10]
lea ecx, [edi + eax*8]
mov dword [esp + 0x48], ecx
jne 0x4d9665
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
cmovne eax, edx
cmp dword [eax + edi], 2
je 0x4d9665
mov eax, dword [edi + 0xac]
jmp 0x4d9668
mov eax, dword [edi + 0x64]
mov ebp, dword [ecx + 0x1a0]
push 1
push 2
push 0
push 1
push 5
mov dword [esp + 0x28], eax
call fcn.004ef500
add esp, 0x14
test al, al
je 0x4d9696
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 ebx
call fcn.004bebb0
add esp, 8
cmp byte [edi + 0x27b], 0
je 0x4d96d3
push str.wine_get_version
push 0x5528f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4d96d3
push 3
push 2
push eax
push 3
push 6
call fcn.004ef500
add esp, 0x14
test al, al
je 0x4d96d3
mov al, 1
jmp 0x4d96d5
xor al, al
mov byte [ebp + 0x46], al
mov edx, 0x1c8
mov ecx, dword [edi + 0xb8]
cmp ecx, 2
jne 0x4d9701
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x4d9701
mov eax, dword [edi + 0x228]
jmp 0x4d9707
mov eax, dword [edi + 0x1e8]
test eax, eax
jne 0x4d9737
cmp ecx, 2
jne 0x4d9729
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
cmovne eax, edx
cmp dword [eax + edi], ecx
je 0x4d9729
mov eax, dword [edi + 0x248]
jmp 0x4d972f
mov eax, dword [edi + 0x208]
test eax, eax
jne 0x4d9737
xor al, al
jmp 0x4d9753
push 3
push 2
push 0
push 1
push 6
call fcn.004ef500
add esp, 0x14
test al, al
je 0x4d9b6a
mov al, 1
mov byte [ebp + 0x47], al
mov dword [ebp], 0
cmp dword [edi + 0xb8], 2
jne 0x4d9785
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x4d9785
mov al, byte [ebx + 0x494]
jmp 0x4d978b
mov al, byte [ebx + 0x42c]
test al, al
je 0x4d9800
push ebx
call fcn.004b9ae0
add esp, 4
cmp dword [edi + 0xb8], 2
jne 0x4d97bd
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
mov ecx, 0x1c8
mov byte [esp + 0x1c], 1
cmovne eax, ecx
cmp dword [eax + edi], 2
jne 0x4d97c2
mov byte [esp + 0x1c], 0
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x28]
push edi
push ebx
call fcn.004b9680
add esp, 0x18
test al, al
jne 0x4d97ed
mov eax, dword [esp + 0x10]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x14]
push ebx
call fcn.004b9b00
add esp, 4
cmp dword [ebp], 0
jne 0x4d9882
push dword [esp + 0x18]
push edi
push ebx
call fcn.004d8990
add esp, 0xc
test eax, eax
jne 0x4d9b7d
cmp dword [edi + 0xb8], 2
jne 0x4d983e
cmp dword [edi + 0x154], 0xffffffff
mov eax, esi
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x4d983e
mov eax, dword [edi + 0xac]
jmp 0x4d9841
mov eax, dword [edi + 0x64]
push 0
push eax
push ebx
call fcn.004b9ba0
add esp, 0xc
test eax, eax
jne 0x4d9866
push str.Failed_to_set_SNI
push ebx
call fcn.004beae0
mov eax, 0x23
jmp 0x4d9b7a
push eax
call fcn.004d5c90
mov ecx, dword [ebp]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, dword [ebp]
cmp dword [eax + 0x10], 0
je 0x4d9ae4
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x18]
push 2
call esi
test eax, eax
jne 0x4d98aa
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x18]
push 0x17
call esi
test eax, eax
je 0x4d98b8
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
push ebx
call fcn.004bebb0
add esp, 8
cmp byte [ebp + 0x46], 0
je 0x4d995e
cmp byte [ebx + 0xc24], 3
mov esi, 0xa
mov dword [esp + 0x70], 2
jb 0x4d9902
push 0x54d680
mov eax, 0x3268
mov byte [esp + 0x7a], 2
push str.ALPN:_offers__s
push ebx
mov word [esp + 0x83], ax
mov esi, 0xd
call fcn.004bebb0
add esp, 0xc
push str.http_1.1
mov byte [esp + esi + 0x70], 8
push str.ALPN:_offers__s
mov dword [esp + esi + 0x75], 0x70747468
mov dword [esp + esi + 0x79], 0x312e312f
add esi, 9
push ebx
call fcn.004bebb0
lea eax, [esi - 0xa]
push eax
call fcn.004c1390
mov word [esp + 0x84], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x24], esi
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x2c], eax
jmp 0x4d9976
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 1
mov dword [ebp + 0x38], 0x811c
cmp dword [edi + 0xb8], 2
jne 0x4d99f0
cmp dword [edi + 0x154], 0xffffffff
mov eax, 0x1b8
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x4d99f0
mov cl, byte [ebx + 0x4bf]
jmp 0x4d99f6
mov cl, byte [ebx + 0x457]
mov eax, dword [ebp + 0x38]
test cl, cl
mov edx, 0x819c
cmove eax, edx
push 0x10
push 1
mov dword [ebp + 0x38], eax
call dword [0x67f01c]
mov edx, eax
add esp, 8
mov dword [ebp + 4], edx
test edx, edx
jne 0x4d9a31
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.004beae0
mov eax, 0x1b
jmp 0x4d9b7a
mov ecx, dword [ebp]
lea eax, [edx + 8]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
push edx
xor edx, edx
lea eax, [esp + 0x4c]
cmp byte [ebp + 0x46], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x6816e0]
push edx
push edx
push dword [ebp + 0x38]
mov eax, dword [eax + 0x18]
push dword [ecx + 0x10]
push edx
push ecx
call eax
mov esi, eax
cmp esi, 0x90312
je 0x4d9aee
push dword [ebp + 4]
call dword [0x67f010]
add esp, 4
mov dword [ebp + 4], 0
lea eax, [esp + 0xec]
push 0x100
push eax
push esi
call fcn.004d4cf0
push eax
cmp esi, 0x80090300
je 0x4d9ad6
cmp esi, 0x80090322
je 0x4d9abe
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ebx
call fcn.004beae0
add esp, 0x18
mov eax, 0x23
jmp 0x4d9b7d
push str.schannel:_SNI_or_certificate_check_failed:__s
push ebx
call fcn.004beae0
add esp, 0x18
mov eax, 0x3c
jmp 0x4d9b7d
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ebx
call fcn.004beae0
add esp, 0x18
mov eax, 0x1b
jmp 0x4d9b7d
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push dword [esp + 0x40]
push dword [edi + eax*4 + 0x150]
push ebx
call fcn.004bf080
mov ecx, dword [0x6816e0]
add esp, 0x14
mov esi, eax
push dword [esp + 0x38]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
test esi, esi
jne 0x4d9b53
cmp ecx, eax
jne 0x4d9b53
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x40], 0
mov word [ebp + 0x44], 0
mov byte [ebp + 0x34], 0
mov dword [eax + 0x19c], 1
xor eax, eax
jmp 0x4d9b7d
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push ebx
call fcn.004beae0
add esp, 0x10
mov eax, 0x23
jmp 0x4d9b7d
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebx
call fcn.004beae0
mov eax, 0x4d
add esp, 8
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a59
add esp, 0x1e0
ret