Function at 0x1008e9f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x7f8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push 0x206
lea ecx, [esp + 0x5fe]
push edi
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x604], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x206
lea edx, [esp + 0x3f6]
push edi
push edx
mov word [esp + 0x3fc], di
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1008ea60
sub eax, edx
sar eax, 1
cmp esi, edi
je 0x1008ec46
cmp eax, 1
jle 0x1008ec46
cmp word [esi], 0x5c
jne 0x1008ec46
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1008ea90
sub eax, edx
sar eax, 1
lea ebx, [esi + 4]
push 0x101520e4
push ebx
mov edi, eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1008eac0
sub eax, esi
sub eax, 4
sar eax, 1
mov edi, eax
mov eax, 2
cmp edi, eax
jle 0x1008eaeb
lea esp, [esp]
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x1008eaeb
cmp cx, 0x2e
je 0x1008ede8
add eax, 1
cmp eax, edi
jl 0x1008ead0
push 0x103
lea eax, [esp + 0x2ed]
push 0
push eax
mov byte [esp + 0x2f4], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x1e5]
push 0
push ecx
mov byte [esp + 0x1ec], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3e
lea edx, [esp + 0x1a6]
push 0
push edx
mov word [esp + 0x1ac], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp word [esi + 2], 0x5c
lea eax, [esi + 2]
push 0x101520e4
jne 0x1008eb59
push ebx
jmp 0x1008eb5a
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1008eb85
lea edx, [esp + 0x5f8]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1008eb74
jmp 0x1008eb9e
mov eax, ebx
sub eax, esi
sar eax, 1
push eax
lea ecx, [esp + 0x5fc]
push esi
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x60c]
push edx
push 0
push 0
call esi
push 0
push 0
push eax
lea eax, [esp + 0x1ec]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x60c]
push ecx
push 0
push 0
call esi
cmp byte [esp + 0x1e1], 0x5c
jne 0x1008ec5f
lea edx, [esp + 0x10]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1008ec17
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1e6]
lea edi, [esp + 0x2ec]
call fcn.1008fdf0
test al, al
jne 0x1008ecbd
call sub.Comn.dll_GetObjectLog
lea ecx, [esp + 0x1e0]
mov edi, eax
mov esi, dword [edi]
push ecx
push 0x282
add esi, 0xc
call fcn.1008d160
mov edx, dword [esi]
add esp, 4
push eax
push str._s:_GetHostAddr:__s
push edi
call edx
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1008ec8f
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1e5]
lea edi, [esp + 0x2ec]
call fcn.1008fdf0
test al, al
jne 0x1008ecbd
call sub.Comn.dll_GetObjectLog
lea edx, [esp + 0x1e0]
mov edi, eax
mov esi, dword [edi]
push edx
push 0x28a
add esi, 0xc
call fcn.1008d160
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_GetHostAddr:__s
push edi
call eax
jmp 0x1008ec43
push 0x104
lea ecx, [esp + 0x2ec]
push ecx
lea edx, [esp + 0x1a8]
push edx
call dword [sym.imp.MSVCR80.dll_mbstowcs]
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x1015ab20]
mov word [esp + eax + 0x3f0], cx
add eax, 2
test cx, cx
jne 0x1008ece0
lea eax, [esp + 0x1a0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008ed00
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1008ed20
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1008ed20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x1008ed7c
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008ed44
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1008ed60
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1008ed60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x3f0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008ed86
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x1008ec46
mov esi, dword [esp + 0xc]
lea eax, [ecx + ecx]
push eax
push 0
push esi
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x3fc]
mov edx, esi
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1008edc0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008edf0
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jb 0x1008ec46
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008ee10
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0xc]
push edx
push esi
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esp + 0x810]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.10130e50
mov esp, ebp
pop ebp
ret 0xc