Function at 0x46ddd0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e39a6
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov esi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x46de22
mov edi, dword [edi]
push 3
lea eax, [ebp - 0x1ac]
push edi
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], eax
call fcn.004213a0
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov eax, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1ac]
add esp, 0xc
cmp eax, ecx
je 0x46de71
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x444]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x46dea9
push str.wsastartup___failed__
push str.KAddressIpLock::getIpListFromHostName
push 0x54
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKAddressIpLock.cpp
push 9
call fcn.00412750
add esp, 0x14
xor eax, eax
jmp 0x46e09e
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x46deca
push str.gethostbyname___error__
push str.KAddressIpLock::getIpListFromHostName
push 0x5b
jmp 0x46de93
movsx eax, word [edi + 0xa]
push eax
movsx eax, word [edi + 8]
push eax
push dword [edi + 4]
push dword [edi]
push str.name:_s_nalianses:_s_naddrtype:_d_nlength:_d
push str.KAddressIpLock::getIpListFromHostName
push 0x5f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKAddressIpLock.cpp
push 9
call fcn.00412750
mov ecx, dword [edi + 0xc]
add esp, 0x24
mov dword [ebp - 0x458], 0
cmp dword [ecx], 0
je 0x46e082
xor edx, edx
movsx eax, word [edi + 0xa]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [edx + ecx]
test eax, eax
je 0x46df64
test ecx, ecx
je 0x46df39
cmp eax, 4
ja 0x46df39
push eax
push ecx
lea eax, [ebp - 0x450]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x46df64
mov dword [ebp - 0x450], 0
test ecx, ecx
jne 0x46df51
call ebx
mov dword [eax], 0x16
jmp 0x46df5e
cmp eax, 4
jbe 0x46df64
call ebx
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
push dword [ebp - 0x450]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [ebp - 0x2b0]
push 3
mov dword [ebp - 0x2b4], ecx
lea ecx, [ebp - 0x2b4]
push eax
call fcn.00421240
mov edx, dword [ebp - 0x2b4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46dfc0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.004033b0
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x46dffa
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x12c]
push ecx
cmp eax, dword [esi + 8]
je 0x46e016
mov ecx, eax
call fcn.00413820
add dword [esi + 4], 0x18
jmp 0x46e01e
push eax
mov ecx, esi
call fcn.0040e830
mov edx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46e061
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46e057
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e0bc
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov ebx, dword [ebp - 0x458]
mov ecx, dword [edi + 0xc]
inc ebx
mov dword [ebp - 0x458], ebx
lea edx, [ebx*4]
cmp dword [edx + ecx], 0
jne 0x46df0c
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3