Function at 0x447c30
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52919b
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x590cc0]
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 + 0xc]
mov ebx, dword [ebp + 8]
push 0xff
lea eax, [ebp - 0x10f]
push 0
push eax
mov dword [ebp - 0x2d4], edi
mov byte [ebp - 0x110], 0
call fcn.004ba010
add esp, 0xc
test ebx, ebx
jne 0x447c8f
xor eax, eax
jmp 0x447cd4
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x447ccc
lea edi, [eax + eax]
mov eax, edi
call fcn.004bb0f0
mov esi, esp
test esi, esi
je 0x447ccc
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x447cce
xor eax, eax
mov edi, dword [ebp - 0x2d4]
lea edx, [ebp - 0x110]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x447ce0
lea ecx, [ebp - 0x2bc]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x447d22
push str.wsastartup___failed__
push str.KHostNameToIpGetter::_getIpListFromHostName
push 0x44
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcweb_khostnametoipgetter.h
push 9
call fcn.0041a9b0
add esp, 0x14
xor eax, eax
jmp 0x447ec1
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov dword [ebp - 0x2d8], esi
test esi, esi
jne 0x447d49
push str.gethostbyname___error__
push str.KHostNameToIpGetter::_getIpListFromHostName
push 0x4b
jmp 0x447d0c
movsx eax, word [esi + 0xa]
movsx ecx, word [esi + 8]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push str.name:_s_nalianses:_s_naddrtype:_d_nlength:_d
push str.KHostNameToIpGetter::_getIpListFromHostName
push 0x4f
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcweb_khostnametoipgetter.h
push 9
call fcn.0041a9b0
mov eax, dword [esi + 0xc]
add esp, 0x24
cmp dword [eax], 0
mov dword [ebp - 0x2d0], 0
je 0x447ea3
xor ecx, ecx
lea ecx, [ecx]
movsx edx, word [esi + 0xa]
mov eax, dword [eax + ecx]
push edx
push eax
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.004b9350
mov edx, dword [ebp - 0x2c8]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
test ebx, ebx
jne 0x447dbf
xor edx, edx
jmp 0x447e0a
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x447e06
lea eax, [edi + edi]
call fcn.004bb0f0
mov esi, esp
test esi, esi
je 0x447e00
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x2d8]
jmp 0x447e08
mov esi, dword [ebp - 0x2d8]
xor eax, eax
mov edx, eax
xor edi, edi
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], edi
mov word [ebp - 0x12c], cx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x447e30
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x12c]
call fcn.00402460
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x2d4]
lea edx, [ebp - 0x12c]
push edx
mov ecx, edi
call fcn.004034c0
cmp dword [ebp - 0x118], 8
mov dword [ebp - 4], 0xffffffff
jb 0x447e82
mov eax, dword [ebp - 0x12c]
push eax
call fcn.004b9008
add esp, 4
mov eax, dword [ebp - 0x2d0]
inc eax
lea ecx, [eax*4]
mov dword [ebp - 0x2d0], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + ecx], 0
jne 0x447d90
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esp, [ebp - 0x2e8]
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.004b9ff3
mov esp, ebp
pop ebp
ret 8