Function at 0x631e9d37
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 0x14]
mov word [ebp - 0xec], ax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp - 0xec]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631e9b2a
test eax, eax
je 0x631e9d9c
mov eax, 1
jmp 0x631ea065
mov dword [esp + 4], str.localhost
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631e078c
test eax, eax
jne 0x631e9e48
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x60]
mov dword [esp], eax
call sub.msvcr100.dll_memset
cmp word [ebp - 0xec], 2
jne 0x631e9e01
mov byte [ebp - 0x60], 0x7f
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x10]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov word [eax], 2
mov eax, 1
jmp 0x631ea065
cmp word [ebp - 0xec], 0x17
jne 0x631e9e3e
mov byte [ebp - 0x51], 1
mov eax, dword [ebp - 0x14]
lea edx, [eax + 8]
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x60]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcr100.dll_memcpy
mov eax, dword [ebp - 0x14]
mov word [eax], 0x17
mov eax, 1
jmp 0x631ea065
mov eax, 0
jmp 0x631ea065
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcr100.dll_memset
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.msvcr100.dll_memset
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
movzx edx, word [ebp - 0xec]
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 2
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_getaddrinfo]
call eax
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x631ea01f
cmp word [ebp - 0xec], 0
jne 0x631e9f97
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 4
test eax, eax
je 0x631e9f45
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 2
test eax, eax
je 0x631e9f10
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x17
mov dword [esp], eax
call fcn.631e9af2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x631e9fb0
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 1
test eax, eax
je 0x631e9fb0
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.631e9af2
mov dword [ebp - 0xc], eax
jmp 0x631e9fb0
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 1
test eax, eax
je 0x631e9f6a
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.631e9af2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x631e9fb0
mov eax, dword [0x6757a35c]
mov eax, dword [eax + 0xc]
and eax, 2
test eax, eax
je 0x631e9fb0
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], 0x17
mov dword [esp], eax
call fcn.631e9af2
mov dword [ebp - 0xc], eax
jmp 0x631e9fb0
movzx edx, word [ebp - 0xec]
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.631e9af2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x631ea002
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
cmp edx, eax
jbe 0x631e9fcc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcr100.dll_memcpy
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
call eax
sub esp, 4
mov eax, 1
jmp 0x631ea065
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sys_StringToSockaddr:_Error_resolving__s:_No_address_of_required_type_found._n
mov dword [esp], 0x1e
call fcn.631a9790
jmp 0x631ea049
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.63334ef0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sys_StringToSockaddr:_Error_resolving__s:__s_n
mov dword [esp], 0x1e
call fcn.631a9790
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x631ea060
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
call eax
sub esp, 4
mov eax, 0
leave
ret