Function at 0x40e480
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
mov eax, dword [0x48602c]
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 0x40e4f0
sub eax, edx
sar eax, 1
cmp esi, edi
je 0x40e6d4
cmp eax, 1
jle 0x40e6d4
cmp word [esi], 0x5c
jne 0x40e6d4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e520
sub eax, edx
sar eax, 1
lea ebx, [esi + 4]
push 0x47bbdc
push ebx
mov edi, eax
call fcn.004088d0
add esp, 8
test eax, eax
je 0x40e54f
sub eax, esi
sub eax, 4
sar eax, 1
mov edi, eax
mov eax, 2
cmp edi, eax
jle 0x40e57b
jmp 0x40e560
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x40e57b
cmp cx, 0x2e
je 0x40e878
add eax, 1
cmp eax, edi
jl 0x40e560
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 0x47bbdc
jne 0x40e5e9
push ebx
jmp 0x40e5ea
push eax
call fcn.004088d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40e614
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 0x40e603
jmp 0x40e62d
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 0x40e6ed
lea edx, [esp + 0x10]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40e6a5
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1e6]
lea edi, [esp + 0x2ec]
call fcn.0040f890
test al, al
jne 0x40e74a
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.0040cbd0
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.0043ad38
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40e71c
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1e5]
lea edi, [esp + 0x2ec]
call fcn.0040f890
test al, al
jne 0x40e74a
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.0040cbd0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_GetHostAddr:__s
push edi
call eax
jmp 0x40e6d1
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 ebx, [ebx]
movzx ecx, word [eax + 0x47bc14]
mov word [esp + eax + 0x3f0], cx
add eax, 2
test cx, cx
jne 0x40e770
lea eax, [esp + 0x1a0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e790
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e7b0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e7b0
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 0x40e80c
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e7d4
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40e7f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40e7f0
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 0x40e816
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x40e6d4
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 0x40e850
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.0043ad38
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 0x40e880
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jb 0x40e6d4
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e8a0
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.0043ad38
mov esp, ebp
pop ebp
ret 0xc