Function at 0x1008e690
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
mov eax, dword [0x10170024]
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 0x1008e700
sub eax, edx
sar eax, 1
cmp esi, edi
je 0x1008e8e6
cmp eax, 1
jle 0x1008e8e6
cmp word [esi], 0x5c
jne 0x1008e8e6
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1008e730
sub eax, edx
sar eax, 1
lea ebx, [esi + 4]
push 0x1014bdb4
push ebx
mov edi, eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1008e760
sub eax, esi
sub eax, 4
sar eax, 1
mov edi, eax
mov eax, 2
cmp edi, eax
jle 0x1008e78b
lea esp, [esp]
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x1008e78b
cmp cx, 0x2e
je 0x1008ea88
add eax, 1
cmp eax, edi
jl 0x1008e770
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 0x1014bdb4
jne 0x1008e7f9
push ebx
jmp 0x1008e7fa
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1008e825
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 0x1008e814
jmp 0x1008e83e
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 0x1008e8ff
lea edx, [esp + 0x10]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1008e8b7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1e6]
lea edi, [esp + 0x2ec]
call fcn.1008fa90
test al, al
jne 0x1008e95d
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.1008ce00
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.1012d370
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 0x1008e92f
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1e5]
lea edi, [esp + 0x2ec]
call fcn.1008fa90
test al, al
jne 0x1008e95d
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.1008ce00
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_GetHostAddr:__s
push edi
call eax
jmp 0x1008e8e3
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 + 0x101547f0]
mov word [esp + eax + 0x3f0], cx
add eax, 2
test cx, cx
jne 0x1008e980
lea eax, [esp + 0x1a0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008e9a0
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1008e9c0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1008e9c0
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 0x1008ea1c
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008e9e4
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1008ea00
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1008ea00
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 0x1008ea26
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x1008e8e6
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 0x1008ea60
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.1012d370
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 0x1008ea90
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jb 0x1008e8e6
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008eab0
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.1012d370
mov esp, ebp
pop ebp
ret 0xc