Function at 0x40e0a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46652c
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x610], eax
push ebx
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x628]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor edi, edi
push 0x206
lea ecx, [esp + 0x41a]
push edi
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x420], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, edi
je 0x40e3aa
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e117
sub eax, edx
sar eax, 1
cmp eax, 2
jl 0x40e3aa
cmp word [esi], 0x5c
jne 0x40e3aa
push esi
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x18]
mov dword [esp + 0x630], edi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov esi, eax
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e160
sub eax, edx
sar eax, 1
mov ebx, eax
lea eax, [esi + 4]
push 0x47bbdc
push eax
call fcn.004088d0
add esp, 8
cmp eax, edi
je 0x40e194
sub eax, esi
sub eax, 4
sar eax, 1
add eax, 2
mov ebx, eax
jmp 0x40e1c1
call sub.Comn.dll_GetObjectLog
mov edi, dword [eax]
push 0x1e9
mov dword [esp + 0x14], eax
add edi, 0xc
call fcn.0040cbd0
mov edx, dword [esp + 0x14]
add esp, 4
push eax
mov eax, dword [edi]
push str._s:_the_unc_path_is_error
push edx
call eax
add esp, 0xc
mov eax, 2
cmp ebx, eax
jle 0x40e1eb
lea ebx, [ebx]
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x40e1eb
cmp cx, 0x2e
je 0x40e46f
add eax, 1
cmp eax, ebx
jl 0x40e1d0
push 0x103
lea ecx, [esp + 0x311]
push 0
push ecx
mov byte [esp + 0x318], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x209]
push 0
push edx
mov byte [esp + 0x210], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3e
lea eax, [esp + 0x1ca]
push 0
push eax
mov word [esp + 0x1d0], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp word [esi + 2], 0x5c
jne 0x40e264
lea eax, [esi + 4]
push 0x47bbdc
push eax
call fcn.004088d0
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x40e29f
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov edi, dword [ebx]
push 0x205
add edi, 0xc
call fcn.0040cbd0
mov ecx, dword [edi]
add esp, 4
push eax
push str._s:_the_unc_path_is_error
push ebx
call ecx
add esp, 0xc
lea eax, [esi + 2]
push 0x47bbdc
push eax
call fcn.004088d0
mov dword [esp + 0x18], eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40e2f5
call sub.Comn.dll_GetObjectLog
mov ebx, eax
mov edi, dword [ebx]
push 0x20b
add edi, 0xc
call fcn.0040cbd0
mov edx, dword [edi]
add esp, 4
push eax
push str._s:_the_unc_path_is_error
push ebx
call edx
lea edx, [esp + 0x420]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x40e2e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40e2e0
mov ebx, dword [esp + 0x10]
jmp 0x40e30e
mov eax, ebx
sub eax, esi
sar eax, 1
push eax
lea ecx, [esp + 0x418]
push esi
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
push 0x104
lea edx, [esp + 0x418]
push edx
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0xc
cmp byte [esp + 0x205], 0x5c
lea ecx, [esp + 0x34]
push ecx
push 0x202
jne 0x40e3d2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40e36d
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20a]
lea edi, [esp + 0x310]
call fcn.0040f890
test al, al
jne 0x40e407
call sub.Comn.dll_GetObjectLog
push esi
push 0x218
mov ebx, eax
mov edi, dword [ebx]
add edi, 0xc
call fcn.0040cbd0
add esp, 4
push eax
mov eax, dword [edi]
push str._s:_GetHostAddr:__s_n
push ebx
call eax
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x630], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x628]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x610]
xor ecx, esp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret 8
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40e3f7
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x209]
lea edi, [esp + 0x310]
call fcn.0040f890
test al, al
jne 0x40e407
call sub.Comn.dll_GetObjectLog
push esi
push 0x220
jmp 0x40e378
push 0x104
lea ecx, [esp + 0x310]
push ecx
lea edx, [esp + 0x1cc]
push edx
call dword [sym.imp.MSVCR80.dll_mbstowcs]
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x47bc14
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [esp + 0x1c4]
push eax
mov ecx, esi
call dword [0x46831c]
test ebx, ebx
je 0x40e453
push ebx
mov ecx, esi
call dword [0x46831c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x630], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x40e3ac
mov ecx, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x40e453