Function at 0x1119c230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.WSOCK32.DLL
mov dword [ebp - 0x224], eax
mov dword [eax], 0
call esi
mov ebx, eax
mov dword [ebp - 0x220], ebx
test ebx, ebx
jne 0x1119c285
push str.ws2_32.dll
call esi
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1119c486
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push ebx
call esi
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x1119c2b4
push 0x210
push str...CTL32_tcputil.c
push str.pWSAStartup
call fcn.11067750
add esp, 0xc
push str.WSACleanup
push ebx
call esi
test eax, eax
jne 0x1119c2d7
push 0x212
push str...CTL32_tcputil.c
push str.pWSACleanup
call fcn.11067750
add esp, 0xc
push str.gethostname
push ebx
call esi
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x1119c300
push 0x214
push str...CTL32_tcputil.c
push str.pGetHostName
call fcn.11067750
add esp, 0xc
push str.gethostbyname
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x1119c325
push 0x216
push str...CTL32_tcputil.c
push str.pGetHostByName
call fcn.11067750
add esp, 0xc
push str.ntohl
push ebx
call esi
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x1119c34e
push 0x218
push str...CTL32_tcputil.c
push str.pntohl
call fcn.11067750
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x101
call dword [ebp - 0x218]
push 0x80
lea ecx, [ebp - 0x84]
push ecx
call dword [ebp - 0x21c]
test eax, eax
jne 0x1119c47f
lea edx, [ebp - 0x84]
push edx
call edi
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x1119c47f
mov eax, dword [eax + 0xc]
xor ebx, ebx
mov dword [ebp - 0x218], ebx
cmp dword [eax], ebx
je 0x1119c3af
add eax, 4
inc ebx
cmp dword [eax], 0
jne 0x1119c3a0
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x224]
push 8
push ebx
mov dword [eax], ebx
call dword [sym.imp.MSVCR100.dll_calloc]
mov esi, eax
add esp, 8
mov dword [ebp - 0x228], esi
test esi, esi
jne 0x1119c3e6
push 0x228
push str...CTL32_tcputil.c
push str.result
call fcn.11067750
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x1119c45f
lea esp, [esp]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + edi*4]
mov ebx, dword [eax]
push ebx
call dword [ebp - 0x22c]
mov dword [esi], eax
cmp eax, 0x7f000001
je 0x1119c448
test eax, eax
je 0x1119c448
movzx eax, bl
cmp eax, 0x80
jge 0x1119c429
mov eax, 0xff000000
mov dword [esi + 4], eax
add esi, 8
jmp 0x1119c450
xor ecx, ecx
cmp eax, 0xc0
setge cl
lea eax, [ecx - 1]
and eax, 0xffff0100
add eax, 0xffffff00
mov dword [esi + 4], eax
add esi, 8
jmp 0x1119c450
mov eax, dword [ebp - 0x224]
dec dword [eax]
inc edi
cmp edi, dword [ebp - 0x218]
jl 0x1119c3f0
mov esi, dword [ebp - 0x228]
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
push 1
call dword [sym.imp.MSVCR100.dll_calloc]
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret