Function at 0x5a36a4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd08
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2f8], edx
mov dword [ebp - 0x2f4], edx
mov dword [ebp - 0x2f0], edx
mov dword [ebp - 0x2ec], edx
mov dword [ebp - 0x2e8], edx
mov dword [ebp - 0x2e0], edx
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405944
xor eax, eax
push ebp
push 0x5a3a58
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x41bb8c]
call fcn.00404544
mov esi, eax
xor edx, edx
push ebp
push 0x5a3a26
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x5a376a
push 0x5a3a74
push dword [ebp - 4]
push 0x5a3aac
lea eax, [ebp - 0x2dc]
mov edx, 3
call fcn.00405814
mov ecx, dword [ebp - 0x2dc]
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
push 0x5a3ab0
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
test edi, edi
je 0x5a3787
push 0x5a3abc
push edi
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x5a3a13
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403b84
xor edx, edx
push ebp
push 0x5a3a0c
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x48], 0x3c
mov eax, pe_nt_image_headers32
call fcn.00402f00
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], pe_nt_image_headers32
mov eax, 0x80
call fcn.00402f00
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x80
mov eax, 0x80
call fcn.00402f00
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x80
mov eax, 0x800
call fcn.00402f00
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x800
mov eax, 0x800
call fcn.00402f00
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x800
mov edi, dword [ebp - 4]
test edi, edi
je 0x5a3823
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x80000000
push edi
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call ebx
test eax, eax
jne 0x5a3857
mov ecx, 0x5a3ad8
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
jmp 0x5a39d6
mov eax, dword [ebp - 0x38]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x5a3941
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x2d8]
push eax
push 0
call sub.kernel32.dll_GetLastError_1
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2e4]
lea edx, [ebp - 0x2d8]
mov ecx, pe_nt_image_headers32
call fcn.00405700
mov eax, dword [ebp - 0x2e4]
mov ecx, 0x5a3afc
mov edx, 0x5a3b08
call fcn.005a1720
mov eax, dword [ebp - 0x2e0]
mov ecx, 0x5a3afc
mov edx, 0x5a3b14
call fcn.005a1720
push dword [ebp - 8]
push 0x5a3afc
lea eax, [ebp - 0x2e8]
mov edx, dword [ebp - 0x38]
call fcn.00405688
push dword [ebp - 0x2e8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405814
push dword [ebp - 8]
push 0x5a3afc
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2ec]
call fcn.0040a720
push dword [ebp - 0x2ec]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405814
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x5a394d
cmp dword [ebx], 0
jne 0x5a3981
push 0x5a3b20
push dword [ebp - 4]
push 0x5a3aac
lea eax, [ebp - 0x2f0]
mov edx, 3
call fcn.00405814
mov ecx, dword [ebp - 0x2f0]
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2f4]
call fcn.00405688
mov edx, dword [ebp - 0x2f4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
jmp 0x5a39cd
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2f8]
call fcn.00405688
mov edx, dword [ebp - 0x2f8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
mov edi, dword [ebx]
test edi, edi
jne 0x5a39a9
mov dword [ebp - 0xc], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3a13
mov eax, dword [ebp - 0x38]
call fcn.00402f34
mov eax, dword [ebp - 0x2c]
call fcn.00402f34
mov eax, dword [ebp - 0x24]
call fcn.00402f34
mov eax, dword [ebp - 0x1c]
call fcn.00402f34
mov eax, dword [ebp - 0x14]
call fcn.00402f34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a3a2d
call sub.wsock32.dll_WSACleanup
ret