Function at 0x42f5e0
Capabilities:
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493888
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4bcad4]
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, ecx
cmp dword [edi + 0x38], 0xffffffff
jne 0x42f9c2
push str.getaddrinfo_start
mov esi, 2
push esi
lea eax, [edi + 0x1c]
push str.statlog_manager
push eax
mov dword [ebp - 0x68], eax
call fcn.004324e0
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
xor ebx, ebx
lea eax, [edi + 0x58]
mov esi, 0x10
add esp, 0x10
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x80], 0x11
cmp dword [eax + 0x14], esi
jb 0x42f683
mov eax, dword [eax]
cmp dword [edi + 0x50], esi
lea ecx, [edi + 0x3c]
jb 0x42f68d
mov ecx, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x8c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, ebx
je 0x42f74b
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], ebx
call fcn.0042f550
push eax
lea ecx, [ebp - 0x48]
push str.getaddrinfo:_Error
push ecx
mov byte [ebp - 4], 1
call fcn.00406a37
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040127b
cmp dword [ebp - 0x34], esi
jb 0x42f6f7
mov edx, dword [ebp - 0x48]
push edx
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], esi
jb 0x42f714
mov eax, dword [ebp - 0x64]
push eax
call fcn.004777ca
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x42f71f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
push eax
push 4
push str.statlog_manager
push ecx
call fcn.004324e0
add esp, 0x10
cmp dword [ebp - 0x18], esi
jb 0x42f744
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004777ca
add esp, 4
xor al, al
jmp 0x42f9c4
mov ecx, dword [ebp - 0x6c]
xor esi, esi
mov eax, ecx
cmp ecx, ebx
je 0x42f75e
mov eax, dword [eax + 0x1c]
inc esi
cmp eax, ebx
jne 0x42f756
xor edx, edx
cmp esi, 1
jle 0x42f77f
push ebx
call fcn.0047b471
push eax
call fcn.0047a678
add esp, 8
call fcn.0047a68a
mov ecx, dword [ebp - 0x6c]
cdq
idiv esi
xor eax, eax
mov esi, ecx
cmp ecx, ebx
je 0x42f88c
jmp 0x42f790
cmp eax, edx
je 0x42f7a1
mov esi, dword [esi + 0x1c]
inc eax
cmp esi, ebx
jne 0x42f790
jmp 0x42f88c
cmp dword [esi + 0x10], 0x10
je 0x42f866
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [esi + 0x10]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 4], 3
call fcn.0042f4d0
push eax
lea edx, [ebp - 0x48]
push str.getaddrinfo:_address_len_error_:
push edx
mov byte [ebp - 4], 4
call fcn.00406a37
add esp, 0x14
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040127b
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x42f80d
mov eax, dword [ebp - 0x48]
push eax
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], esi
jb 0x42f82b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004777ca
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x42f836
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
push eax
push 4
push str.statlog_manager
push edx
call fcn.004324e0
add esp, 0x10
cmp dword [ebp - 0x18], esi
jb 0x42f744
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004777ca
add esp, 4
xor al, al
jmp 0x42f9c4
mov esi, dword [esi + 0x18]
mov edx, dword [esi]
mov dword [edi + 0x90], edx
mov eax, dword [esi + 4]
mov dword [edi + 0x94], eax
mov edx, dword [esi + 8]
mov dword [edi + 0x98], edx
mov eax, dword [esi + 0xc]
mov dword [edi + 0x9c], eax
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 0x68]
push str.getaddrinfo_end
push 2
push str.statlog_manager
push ecx
call fcn.004324e0
add esp, 0x10
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x38], eax
cmp eax, 0xffffffff
jne 0x42f9c2
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.0042f450
push eax
lea eax, [ebp - 0x48]
push str.socket:_Error
push eax
mov byte [ebp - 4], 7
call fcn.00406a37
add esp, 0x14
mov esi, eax
lea ecx, [ebp - 0x2c]
cmp ecx, esi
je 0x42f957
cmp dword [ebp - 0x18], 0x10
jb 0x42f919
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x42f93c
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004756f0
add esp, 0xc
jmp 0x42f943
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x34], 0x10
jb 0x42f969
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004777ca
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 6
jb 0x42f988
mov edx, dword [ebp - 0x64]
push edx
call fcn.004777ca
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42f994
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x68]
push 4
push str.statlog_manager
push eax
call fcn.004324e0
add esp, 0x10
cmp dword [ebp - 0x18], 0x10
jb 0x42f744
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004777ca
add esp, 4
xor al, al
jmp 0x42f9c4
mov al, 1
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.004751f1
mov esp, ebp
pop ebp
ret