Function at 0x4088b2
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push esi
xor esi, esi
push edi
push esi
push esi
push 1
push esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_SetThreadUILanguage]
mov edi, dword [ebp + 0xc]
push 2
pop eax
cmp dword [ebp + 8], eax
jne 0x408952
mov edx, dword [edi + 4]
cmp byte [edx], 0x3f
jne 0x4088fe
movzx eax, byte [edx + 1]
test al, al
je 0x408a0c
mov ecx, esi
movzx eax, byte [edx + ecx]
mov edi, 0x4033e4
cmp al, byte [edi + ecx]
jne 0x408919
inc ecx
cmp ecx, 3
jne 0x408900
jmp 0x408a0c
mov ecx, esi
movzx eax, byte [edx + ecx]
mov edi, 0x4033e8
cmp al, byte [edi + ecx]
jne 0x408934
inc ecx
cmp ecx, 3
jne 0x40891b
jmp 0x408a0c
mov ecx, esi
movzx eax, byte [edx + ecx]
mov edi, 0x4033ec
cmp al, byte [edi + ecx]
mov edi, dword [ebp + 0xc]
jne 0x408952
inc ecx
cmp ecx, 6
jne 0x408936
jmp 0x408a0c
push 0x412060
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4089a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x26
push esi
push 0x900
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
test eax, eax
je 0x4089a3
push dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.MSWSOCK.dll_s_perror]
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
call fcn.0040a321
cmp eax, 0xffffffff
jne 0x4089c2
push 0x27
push 2
pop eax
push eax
call fcn.0040b1f1
pop ecx
xor edi, edi
pop ecx
inc edi
jmp 0x408e69
push 0x10
xor ecx, ecx
pop edx
inc ecx
call fcn.0040b269
mov dword [0x411bf0], eax
test eax, eax
jne 0x4089de
push 0xe
pop edi
jmp 0x408e69
call fcn.00409d55
jmp 0x4089f7
mov ecx, dword [edi]
cmp byte [ecx], 0x2d
jne 0x408a05
inc ecx
cmp byte [ecx], 0
je 0x408a05
call fcn.004094c2
mov eax, dword [ebp + 8]
add edi, 4
sub eax, 1
mov dword [ebp + 8], eax
jne 0x4089e5
push 2
pop edx
cmp eax, edx
jle 0x408a11
call fcn.00408eb6
test eax, eax
je 0x408a20
mov ecx, dword [edi]
cmp byte [ecx], 0x2d
je 0x408a20
mov dword [esp + 0x2c], ecx
cmp eax, edx
jne 0x408baa
mov edx, dword [edi + 4]
lea ecx, [esp + 0x38]
sub esp, 0xc
call fcn.0040bda8
test eax, eax
je 0x408a64
mov eax, dword [0x40e3d0]
test eax, eax
je 0x408b12
push 0x10
pop ecx
lea esi, [esp + 0x38]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [0x40e3cc], 1
xor esi, esi
jmp 0x408b0d
lea eax, [esp + 8]
push eax
push esi
push esi
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x408ae4
mov eax, dword [esp + 8]
test eax, eax
je 0x408ae4
mov edi, esi
test eax, eax
je 0x408ace
cmp dword [eax + 0x18], esi
je 0x408ac1
cmp edi, dword [0x40e3cc]
jb 0x408aab
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [edi*4 + 0x40e3d0], eax
pop ecx
test eax, eax
je 0x4089d6
mov edx, dword [esp + 8]
sub esp, 0xc
mov ecx, dword [edi*4 + 0x40e3d0]
mov edx, dword [edx + 0x18]
call fcn.0040bed2
mov eax, dword [esp + 8]
inc edi
mov eax, dword [eax + 0x1c]
cmp edi, 0xa
jb 0x408a82
push dword [esp + 8]
mov dword [0x40e3cc], edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esp + 8], esi
jmp 0x408b0d
push dword [edi + 4]
push 0x28
push 2
pop edi
push edi
call fcn.0040b1f1
add esp, 0xc
push edi
call fcn.0040ccf9
pop ecx
push eax
push 0xa
call dword [sym.imp.msvcrt.dll_fputc]
pop ecx
pop ecx
mov dword [0x40e3cc], esi
mov eax, dword [0x40e3d0]
cmp dword [0x40e3cc], 0
je 0x408baa
push dword [0x411bf0]
mov edx, eax
mov dword [0x411bf8], eax
mov ecx, eax
call fcn.004071bb
test eax, eax
je 0x408df1
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.0040bc4a
push 0xc
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x411bf0]
mov dword [ecx], eax
test eax, eax
je 0x4089d6
push 0x4033f4
push 0xc
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
xor ecx, ecx
inc ecx
call fcn.0040bfaa
mov ecx, dword [0x411bf0]
mov dword [ecx + 8], eax
test eax, eax
je 0x4089d6
mov edx, dword [0x411bf8]
push ecx
mov dword [eax], 1
mov dword [eax + 4], esi
push ecx
mov ecx, dword [ecx + 8]
call fcn.0040c090
jmp 0x408df1
push esi
push esi
push 0x1030
mov dword [esp + 0x34], esi
call dword [sym.imp.DNSAPI.dll_DnsQueryConfigAllocEx]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x408d77
mov eax, dword [0x40e3cc]
mov edi, esi
mov ecx, esi
mov dword [0x40e3cc], edi
cmp dword [edx + 4], 0
push 0x17
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], esi
pop eax
jbe 0x408c22
lea ecx, [edx + 0x28]
cmp word [ecx - 8], ax
jne 0x408c1b
call fcn.0040887b
test eax, eax
je 0x408c1b
mov eax, dword [esp + 0xc]
add ecx, 0x40
inc eax
cmp eax, dword [edx + 4]
push 0x17
mov dword [esp + 0x10], eax
pop eax
jb 0x408bf4
mov ecx, esi
jmp 0x408c22
xor ecx, ecx
inc ecx
mov dword [esp + 0x24], ecx
cmp dword [edx + 4], 0
mov dword [esp + 0x20], esi
jbe 0x408d64
lea eax, [edx + 0x20]
mov dword [esp + 0x1c], 0x3500
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x408c5f
push 0x17
pop ecx
cmp word [eax], cx
jne 0x408c5f
lea ecx, [eax + 8]
call fcn.0040887b
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x408d32
cmp dword [esp + 0x18], 0
jne 0x408ca9
push dword [0x411bf0]
mov edx, eax
mov dword [0x411bf8], eax
mov ecx, eax
call fcn.004071bb
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x28], ecx
test eax, eax
je 0x408c97
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.0040bc4a
mov edi, dword [0x40e3cc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], 1
cmp edi, 0xa
jae 0x408d64
cmp edi, dword [esp + 0x34]
jb 0x408cd7
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [edi*4 + 0x40e3d0], eax
mov edi, dword [0x40e3cc]
pop ecx
cmp dword [edi*4 + 0x40e3d0], esi
je 0x408d50
mov eax, dword [esp + 0xc]
mov esi, eax
mov edi, dword [edi*4 + 0x40e3d0]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x40e3cc]
push 2
pop edx
mov ecx, dword [edi*4 + 0x40e3d0]
cmp word [ecx], dx
mov edx, dword [esp + 0x1c]
jne 0x408d0c
mov word [ecx + 2], dx
mov edi, dword [0x40e3cc]
mov ecx, dword [edi*4 + 0x40e3d0]
push 0x17
pop esi
cmp word [ecx], si
jne 0x408d25
mov word [ecx + 2], dx
mov edi, dword [0x40e3cc]
mov edx, dword [esp + 0x10]
inc edi
mov dword [0x40e3cc], edi
xor esi, esi
mov ecx, dword [esp + 0x20]
add eax, 0x40
inc ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
cmp ecx, dword [edx + 4]
jae 0x408d64
mov ecx, dword [esp + 0x24]
jmp 0x408c3f
push 0x1030
push dword [esp + 0x14]
call dword [sym.imp.DNSAPI.dll_DnsFreeConfigStructure]
jmp 0x4089d6
push 0x1030
push edx
call dword [sym.imp.DNSAPI.dll_DnsFreeConfigStructure]
cmp dword [esp + 0x28], 0
jne 0x408df1
mov eax, dword [0x40e3d0]
push 0xc
mov dword [0x411bf8], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x411bf0]
mov dword [ecx], eax
test eax, eax
je 0x4089d6
push 0x4033f4
push 0xc
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
xor ecx, ecx
inc ecx
call fcn.0040bfaa
mov ecx, dword [0x411bf0]
mov dword [ecx + 8], eax
test eax, eax
je 0x4089d6
mov edx, dword [0x411bf8]
push ecx
mov dword [eax], 1
mov dword [eax + 4], esi
push ecx
mov ecx, dword [ecx + 8]
call fcn.0040c090
cmp dword [esp + 0x10], 0
jne 0x408df1
push 0x2a
push 2
pop eax
push eax
call fcn.0040b1f1
pop ecx
pop ecx
mov eax, dword [0x411bf0]
cmp dword [eax], 0
je 0x4089d6
push dword [eax]
push 0x100
push 0x412200
call dword [sym.imp.msvcrt.dll_strcpy_s]
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x408e27
xor edx, edx
mov ecx, eax
call fcn.004091e0
jmp 0x408e65
push dword [0x411bf0]
push 1
call fcn.0040ccf9
pop ecx
push 0x2b
pop edx
mov ecx, eax
call fcn.0040b2a9
mov edi, 0x4033fc
push edi
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call fcn.0040ccf9
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
call fcn.00404230
test eax, eax
jne 0x408e44
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x408e78
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [0x411bf0]
test eax, eax
je 0x408e88
mov ecx, eax
call fcn.004072fe
mov eax, dword [0x40e3cc]
test eax, eax
je 0x408eae
mov ecx, dword [esi*4 + 0x40e3d0]
test ecx, ecx
je 0x408ea9
push ecx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [0x40e3cc]
pop ecx
inc esi
cmp esi, eax
jb 0x408e91
push edi
call dword [sym.imp.msvcrt.dll_exit]
int3