Function at 0x471730
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x567e00]
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 0x471782
mov edi, dword [edi]
push 3
lea eax, [ebp - 0x1ac]
push edi
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], eax
call fcn.004213c0
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 0x4717d1
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 0x471809
push str.wsastartup___failed__
push str.KAddressIpLock::getIpListFromHostName
push 0x55
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKAddressIpLock.cpp
push 9
call fcn.00412230
add esp, 0x14
xor eax, eax
jmp 0x471a01
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x47182a
push str.gethostbyname___error__
push str.KAddressIpLock::getIpListFromHostName
push 0x5c
jmp 0x4717f3
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 0x60
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKAddressIpLock.cpp
push 9
call fcn.00412230
mov ecx, dword [edi + 0xc]
add esp, 0x24
mov dword [ebp - 0x458], 0
cmp dword [ecx], 0
je 0x4719e5
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 0x4718c4
test ecx, ecx
je 0x471899
cmp eax, 4
ja 0x471899
push eax
push ecx
lea eax, [ebp - 0x450]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4718c4
mov dword [ebp - 0x450], 0
test ecx, ecx
jne 0x4718b1
call ebx
mov dword [eax], 0x16
jmp 0x4718be
cmp eax, 4
jbe 0x4718c4
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.0042c600
mov edx, dword [ebp - 0x2b4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471923
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x12c]
call fcn.00403a70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x47195d
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 0x471979
mov ecx, eax
call fcn.004133c0
add dword [esi + 4], 0x18
jmp 0x471981
push eax
mov ecx, esi
call fcn.0040e160
mov edx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4719c4
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4719ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471a1f
push edx
push ecx
call fcn.004c6f6f
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 0x47186c
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.004c6f8b
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