Function at 0x43c840
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x4c20f4]
xor eax, esp
mov dword [esp + 0x1dc], eax
mov eax, dword [esp + 0x1ec]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f4]
mov ebp, 0x1b8
mov dword [esp + 0x14], eax
add eax, eax
push edi
mov edi, dword [esp + 0x1f4]
cmp dword [esi + 0xb8], 2
lea edx, [ebp + 0x10]
lea ecx, [esi + eax*8]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], 0
jne 0x43c8b5
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + esi], 2
je 0x43c8b5
mov eax, dword [esi + 0xac]
jmp 0x43c8b8
mov eax, dword [esi + 0x64]
mov ebx, dword [ecx + 0x1a0]
push 1
push 2
push 0
push 1
push 5
mov dword [esp + 0x28], eax
call fcn.0045faf0
add esp, 0x14
test al, al
je 0x43c8e6
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.00424480
add esp, 8
cmp byte [esi + 0x27b], 0
je 0x43c923
push str.wine_get_version
push 0x4a3b5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43c923
push 3
push 2
push eax
push 3
push 6
call fcn.0045faf0
add esp, 0x14
test al, al
je 0x43c923
mov al, 1
jmp 0x43c925
xor al, al
mov byte [ebx + 0x46], al
mov edx, 0x1c8
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x43c951
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + esi], ecx
je 0x43c951
mov eax, dword [esi + 0x228]
jmp 0x43c957
mov eax, dword [esi + 0x1e8]
test eax, eax
jne 0x43c987
cmp ecx, 2
jne 0x43c979
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + esi], ecx
je 0x43c979
mov eax, dword [esi + 0x248]
jmp 0x43c97f
mov eax, dword [esi + 0x208]
test eax, eax
jne 0x43c987
xor al, al
jmp 0x43c9a3
push 3
push 2
push 0
push 1
push 6
call fcn.0045faf0
add esp, 0x14
test al, al
je 0x43cd97
mov al, 1
mov byte [ebx + 0x47], al
mov dword [ebx], 0
cmp dword [esi + 0xb8], 2
jne 0x43c9d4
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x43c9d4
mov al, byte [edi + 0x494]
jmp 0x43c9da
mov al, byte [edi + 0x42c]
test al, al
je 0x43ca4d
push edi
call fcn.00427cf0
add esp, 4
cmp dword [esi + 0xb8], 2
jne 0x43ca0c
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
mov ecx, 0x1c8
mov byte [esp + 0x1c], 1
cmovne eax, ecx
cmp dword [eax + esi], 2
jne 0x43ca11
mov byte [esp + 0x1c], 0
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x28]
push esi
push edi
call fcn.00427890
add esp, 0x18
test al, al
jne 0x43ca3b
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x14]
push edi
call fcn.00427d10
add esp, 4
cmp dword [ebx], 0
jne 0x43cacd
push dword [esp + 0x18]
push esi
push edi
call fcn.0043bbf0
add esp, 0xc
test eax, eax
jne 0x43cdaa
cmp dword [esi + 0xb8], 2
jne 0x43ca8b
cmp dword [esi + 0x154], 0xffffffff
mov eax, ebp
mov ecx, 0x1c8
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x43ca8b
mov eax, dword [esi + 0xac]
jmp 0x43ca8e
mov eax, dword [esi + 0x64]
push 0
push eax
push edi
call fcn.00427db0
add esp, 0xc
test eax, eax
jne 0x43cab3
push str.Failed_to_set_SNI
push edi
call fcn.004243b0
mov eax, 0x23
jmp 0x43cda7
push eax
call fcn.00423d50
mov ecx, dword [ebx]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, dword [ebx]
cmp dword [eax + 0x10], 0
je 0x43cd11
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x18]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x43caf7
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x18]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x43cb05
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
push edi
call fcn.00424480
add esp, 8
cmp byte [ebx + 0x46], 0
je 0x43cb77
push str.http_1.1
push str.ALPN:_offers__s
push edi
mov dword [esp + 0x7c], 2
mov byte [esp + 0x82], 8
mov dword [esp + 0x83], 0x70747468
mov dword [esp + 0x87], 0x312e312f
call fcn.00424480
push 9
call fcn.00424120
mov word [esp + 0x84], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x24], 0x13
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x2c], eax
jmp 0x43cb8f
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 [ebx + 0x38], 0x811c
cmp dword [esi + 0xb8], 2
jne 0x43cc04
cmp dword [esi + 0x154], 0xffffffff
mov eax, 0x1c8
cmovne ebp, eax
cmp dword [esi + ebp], 2
je 0x43cc04
mov cl, byte [edi + 0x4bf]
jmp 0x43cc0a
mov cl, byte [edi + 0x457]
mov eax, dword [ebx + 0x38]
test cl, cl
mov edx, 0x819c
cmove eax, edx
push 0x10
push 1
mov dword [ebx + 0x38], eax
call dword [0x4c207c]
mov edx, eax
add esp, 8
mov dword [ebx + 4], edx
test edx, edx
jne 0x43cc45
push str.schannel:_unable_to_allocate_memory
push edi
call fcn.004243b0
mov eax, 0x1b
jmp 0x43cda7
mov ecx, dword [ebx]
lea eax, [edx + 8]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
push edx
xor edx, edx
lea eax, [esp + 0x4c]
cmp byte [ebx + 0x46], dl
push 0
cmove eax, edx
push eax
mov eax, dword [0x4c3938]
push edx
push edx
push dword [ebx + 0x38]
mov eax, dword [eax + 0x18]
push dword [ecx + 0x10]
push edx
push ecx
call eax
mov ebp, eax
cmp ebp, 0x90312
je 0x43cd1b
push dword [ebx + 4]
call dword [0x4c2070]
add esp, 4
mov dword [ebx + 4], 0
lea eax, [esp + 0xec]
push 0x100
push eax
cmp ebp, 0x80090300
je 0x43ccf8
cmp ebp, 0x80090322
je 0x43ccd5
push ebp
call fcn.00438ed0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.004243b0
add esp, 0x18
mov eax, 0x23
jmp 0x43cdaa
push 0x80090322
call fcn.00438ed0
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push edi
call fcn.004243b0
add esp, 0x18
mov eax, 0x3c
jmp 0x43cdaa
push 0x80090300
call fcn.00438ed0
push eax
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push edi
call fcn.004243b0
add esp, 0x18
mov eax, 0x1b
jmp 0x43cdaa
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push dword [esp + 0x40]
push dword [esi + eax*4 + 0x150]
push edi
call fcn.00424950
mov ecx, dword [0x4c3938]
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 0x43cd80
cmp ecx, eax
jne 0x43cd80
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x40], 0
mov word [ebx + 0x44], 0
mov byte [ebx + 0x34], 0
mov dword [eax + 0x19c], 1
xor eax, eax
jmp 0x43cdaa
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push edi
call fcn.004243b0
add esp, 0x10
mov eax, 0x23
jmp 0x43cdaa
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push edi
call fcn.004243b0
mov eax, 0x4d
add esp, 8
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471b4b
add esp, 0x1e0
ret