Function at 0x1003f360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7fc
mov eax, dword [0x10056024]
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 0x1003f3d0
sub eax, edx
sar eax, 1
cmp esi, edi
je 0x1003f58e
cmp eax, 1
jle 0x1003f58e
cmp word [esi], 0x5c
jne 0x1003f58e
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1003f400
sub eax, edx
sar eax, 1
lea ebx, [esi + 4]
push 0x1004b060
push ebx
mov edi, eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1003f430
sub eax, esi
sub eax, 4
sar eax, 1
mov edi, eax
mov eax, 2
cmp edi, eax
jle 0x1003f45b
lea esp, [esp]
movzx ecx, word [esi + eax*2]
cmp cx, 0x5c
je 0x1003f45b
cmp cx, 0x2e
je 0x1003f708
add eax, 1
cmp eax, edi
jl 0x1003f440
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 0x1004b060
jne 0x1003f4c9
push ebx
jmp 0x1003f4ca
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1003f4f5
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 0x1003f4e4
jmp 0x1003f50e
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
push 0x104
lea edx, [esp + 0x5fc]
push edx
lea eax, [esp + 0x1e8]
push eax
call dword [sym.imp.MSVCR80.dll_wcstombs]
add esp, 0xc
cmp byte [esp + 0x1e1], 0x5c
lea ecx, [esp + 0x10]
push ecx
push 0x202
jne 0x1003f5a7
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003f566
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1e6]
lea edi, [esp + 0x2ec]
call fcn.10040400
test al, al
jne 0x1003f5da
call sub.Comn.dll_GetObjectLog
push esi
push 0x1ac
mov ebx, eax
mov edi, dword [ebx]
add edi, 0xc
call fcn.1003dfc0
add esp, 4
push eax
mov eax, dword [edi]
push str._s:_GetHostAddr:__s_n
push ebx
call eax
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1003f5cd
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1e5]
lea edi, [esp + 0x2ec]
call fcn.10040400
test al, al
jne 0x1003f5da
call sub.Comn.dll_GetObjectLog
push esi
push 0x1b4
jmp 0x1003f571
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 + 0x1004f230]
mov word [esp + eax + 0x3f0], cx
add eax, 2
test cx, cx
jne 0x1003f600
lea eax, [esp + 0x1a0]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003f620
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1003f640
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1003f640
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 0x1003f69c
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003f664
lea edi, [esp + 0x3f0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1003f680
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1003f680
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 0x1003f6a6
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp eax, ecx
ja 0x1003f58e
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 0x1003f6e0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.10045f6c
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 0x1003f710
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jb 0x1003f58e
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003f730
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.10045f6c
mov esp, ebp
pop ebp
ret 0xc