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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_SetThreadUILanguage]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esi, 4
push 2
pop eax
cmp edi, eax
jne 0x4090db
mov edx, dword [esi]
cmp byte [edx], 0x3f
jne 0x409087
movzx eax, byte [edx + 1]
test al, al
je 0x409190
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edi, 0x403464
cmp al, byte [edi + ecx]
jne 0x4090a2
inc ecx
cmp ecx, 3
jne 0x409089
jmp 0x409190
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edi, 0x403468
cmp al, byte [edi + ecx]
jne 0x4090bd
inc ecx
cmp ecx, 3
jne 0x4090a4
jmp 0x409190
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edi, 0x40346c
cmp al, byte [edi + ecx]
mov edi, dword [ebp + 8]
jne 0x4090db
inc ecx
cmp ecx, 6
jne 0x4090bf
jmp 0x409190
push 0x411000
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x40912c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
push ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x26
push ebx
push 0x900
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
test eax, eax
je 0x40912c
push dword [esp + 0x28]
push dword [esp + 0x1c]
call dword [sym.imp.MSWSOCK.dll_s_perror]
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
call fcn.0040aadb
cmp eax, 0xffffffff
jne 0x40914b
push 0x27
push 2
pop eax
push eax
call fcn.0040baef
pop ecx
xor esi, esi
pop ecx
inc esi
jmp 0x409598
push 0x10
xor ecx, ecx
pop edx
inc ecx
call fcn.0040bb6d
mov dword [0x410c38], eax
test eax, eax
jne 0x409167
push 0xe
pop esi
jmp 0x409598
call fcn.0040a4c4
jmp 0x409184
mov eax, dword [esi]
cmp byte [eax], 0x2d
jne 0x409189
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x409189
call fcn.00409c1f
add esi, 4
sub edi, 1
jne 0x40916e
push 2
pop ecx
cmp edi, ecx
jle 0x409195
call fcn.004095eb
test edi, edi
je 0x409319
mov eax, dword [esi]
cmp byte [eax], 0x2d
je 0x4091a8
mov dword [esp + 0x2c], eax
cmp edi, ecx
jne 0x409319
mov edx, dword [esi + 4]
lea ecx, [esp + 0x38]
call fcn.004067bf
test eax, eax
je 0x4091e7
mov eax, dword [0x40d3d0]
test eax, eax
je 0x409295
push 0x10
pop ecx
lea esi, [esp + 0x38]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [0x40d3cc], 1
jmp 0x409290
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x409267
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409267
mov esi, ebx
test eax, eax
je 0x409251
cmp dword [eax + 0x18], ebx
je 0x409244
cmp esi, dword [0x40d3cc]
jb 0x40922e
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [esi*4 + 0x40d3d0], eax
pop ecx
test eax, eax
je 0x40915f
mov edx, dword [esp + 0x10]
sub esp, 0xc
mov ecx, dword [esi*4 + 0x40d3d0]
mov edx, dword [edx + 0x18]
call fcn.00406934
mov eax, dword [esp + 0x10]
inc esi
mov eax, dword [eax + 0x1c]
cmp esi, 0xa
jb 0x409205
push dword [esp + 0x10]
mov dword [0x40d3cc], esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esp + 0x10], ebx
jmp 0x409290
push dword [esi + 4]
push 0x28
push 2
pop esi
push esi
call fcn.0040baef
add esp, 0xc
push esi
call fcn.0040c9f9
pop ecx
push eax
push 0xa
call dword [sym.imp.msvcrt.dll_fputc]
pop ecx
pop ecx
mov dword [0x40d3cc], ebx
mov eax, dword [0x40d3d0]
cmp dword [0x40d3cc], ebx
je 0x409319
push dword [0x410c38]
mov edx, eax
mov dword [0x410c40], eax
mov ecx, eax
call fcn.004078a3
test eax, eax
je 0x409523
push 0xc
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x410c38]
mov dword [ecx], eax
test eax, eax
je 0x40915f
push 0x403474
push 0xc
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
xor ecx, ecx
inc ecx
call fcn.0040658e
mov esi, dword [0x410c38]
mov dword [esi + 8], eax
test eax, eax
je 0x40915f
xor edx, edx
mov ecx, eax
inc edx
call fcn.00406688
mov edx, dword [0x410c40]
mov ecx, dword [esi + 8]
call fcn.004065e0
jmp 0x409523
push ebx
push ebx
push 0x1030
mov dword [esp + 0x34], ebx
call dword [sym.imp.DNSAPI.dll_DnsQueryConfigAllocEx]
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
je 0x4094ad
mov eax, dword [0x40d3cc]
mov edi, ebx
mov edx, ebx
mov dword [0x40d3cc], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
cmp dword [esi + 4], edx
jbe 0x40949b
push 0x17
lea ecx, [esi + 0x28]
pop eax
cmp word [ecx - 8], ax
jne 0x409381
call fcn.00408ffd
test eax, eax
je 0x409381
inc edx
add ecx, 0x40
push 0x17
pop eax
cmp edx, dword [esi + 4]
jb 0x409362
mov ecx, ebx
jmp 0x409388
xor ecx, ecx
inc ecx
mov dword [esp + 0x24], ecx
lea eax, [esi + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4093b3
push 0x17
pop ecx
cmp word [eax], cx
jne 0x4093b3
lea ecx, [eax + 8]
call fcn.00408ffd
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x40946c
cmp dword [esp + 0x20], ebx
jne 0x4093e4
push dword [0x410c38]
mov edx, eax
mov dword [0x410c40], eax
mov ecx, eax
call fcn.004078a3
mov edi, dword [0x40d3cc]
neg eax
mov dword [esp + 0x20], 1
sbb eax, eax
inc eax
mov dword [esp + 0x28], eax
cmp edi, 0xa
jae 0x40949b
cmp edi, dword [esp + 0x30]
jb 0x409412
push 0x40
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [edi*4 + 0x40d3d0], eax
mov edi, dword [0x40d3cc]
pop ecx
cmp dword [edi*4 + 0x40d3d0], ebx
je 0x40948a
mov eax, dword [esp + 0x14]
mov esi, eax
mov edi, dword [edi*4 + 0x40d3d0]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x40d3cc]
push 2
pop edx
mov ecx, dword [edi*4 + 0x40d3d0]
cmp word [ecx], dx
mov edx, 0x3500
jne 0x409448
mov word [ecx + 2], dx
mov edi, dword [0x40d3cc]
mov ecx, dword [edi*4 + 0x40d3d0]
push 0x17
pop esi
cmp word [ecx], si
jne 0x409461
mov word [ecx + 2], dx
mov edi, dword [0x40d3cc]
mov esi, dword [esp + 0x34]
inc edi
mov dword [0x40d3cc], edi
mov ecx, dword [esp + 0x18]
add eax, 0x40
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 4]
jae 0x40949b
mov ecx, dword [esp + 0x24]
jmp 0x409393
push 0x1030
push esi
call dword [sym.imp.DNSAPI.dll_DnsFreeConfigStructure]
jmp 0x40915f
push 0x1030
push esi
call dword [sym.imp.DNSAPI.dll_DnsFreeConfigStructure]
cmp dword [esp + 0x28], ebx
jne 0x409523
mov eax, dword [0x40d3d0]
push 0xc
mov dword [0x410c40], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, dword [0x410c38]
mov dword [ecx], eax
test eax, eax
je 0x40915f
push 0x403474
push 0xc
push eax
call dword [sym.imp.msvcrt.dll_strcpy_s]
add esp, 0xc
xor ecx, ecx
inc ecx
call fcn.0040658e
mov edi, dword [0x410c38]
mov dword [edi + 8], eax
test eax, eax
je 0x40915f
xor edx, edx
mov ecx, eax
inc edx
call fcn.00406688
mov edx, dword [0x410c40]
mov ecx, dword [edi + 8]
call fcn.004065e0
test esi, esi
jne 0x409523
push 0x2a
push 2
pop eax
push eax
call fcn.0040baef
pop ecx
pop ecx
mov eax, dword [0x410c38]
cmp dword [eax], ebx
je 0x40915f
push dword [eax]
push 0x100
push 0x4111a0
call dword [sym.imp.msvcrt.dll_strcpy_s]
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x409558
xor edx, edx
mov ecx, eax
call fcn.00409932
jmp 0x409596
push dword [0x410c38]
push 1
call fcn.0040c9f9
pop ecx
push 0x2b
pop edx
mov ecx, eax
call fcn.0040bbb3
mov esi, 0x40347c
push esi
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push 1
call fcn.0040c9f9
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
call fcn.00404220
test eax, eax
jne 0x409575
mov esi, ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4095a7
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [0x410c38]
test eax, eax
je 0x4095b7
mov ecx, eax
call fcn.004079ea
mov eax, dword [0x40d3cc]
test eax, eax
je 0x4095dd
mov ecx, dword [ebx*4 + 0x40d3d0]
test ecx, ecx
je 0x4095d8
push ecx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [0x40d3cc]
pop ecx
inc ebx
cmp ebx, eax
jb 0x4095c0
push esi
call dword [sym.imp.msvcrt.dll_exit]
int3