Function at 0x102fb20
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x104]
xor ebx, ebx
push eax
lea edx, [ebp - 0x29c]
push edx
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x29c], ebx
call fcn.0102cd60
cmp eax, ebx
mov dword [ebp - 0x298], eax
jne 0x102fe6f
cmp dword [ebp - 0x29c], ebx
je 0x102fba7
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0102e5f0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 4
cmp dword [0x1039480], ebx
jne 0x102fbcc
push 0x1039480
push 0x1018594
call fcn.0102d450
cmp eax, ebx
mov dword [ebp - 0x298], eax
jne 0x102fe6f
mov eax, dword [0x1039488]
cmp eax, ebx
jne 0x102fc08
mov ecx, dword [0x1039480]
push 0x10185f4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x1039488], eax
jne 0x102fc08
push esi
call fcn.0102e8a0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x2a8]
push edx
push ebx
push ebx
push ebx
push ebx
call eax
cmp eax, 0x6f
jne 0x102fc78
mov eax, dword [ebp - 0x2a8]
lea ecx, [eax + 0x8f]
mov eax, 0x38e38e39
mul ecx
mov eax, edx
xor ecx, ecx
shr eax, 5
mov edx, 0x90
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [ebp - 0x2a0], eax
jne 0x102fc64
mov dword [ebp - 0x298], 8
jmp 0x102fe2a
lea ecx, [ebp - 0x2a8]
push ecx
push eax
push 0
push 0
push 0
call dword [0x1039488]
test eax, eax
je 0x102fc87
mov dword [ebp - 0x298], eax
jmp 0x102fe2a
mov edx, dword [ebp - 0x2a0]
xor esi, esi
test edx, edx
je 0x102fcc1
mov eax, dword [edx + 0x10]
test eax, eax
je 0x102fcba
lea ebx, [ebx]
mov ecx, dword [eax + 0xc]
movzx ecx, word [ecx]
sub ecx, 2
je 0x102fcb0
sub ecx, 0x15
jne 0x102fcb3
add esi, 1
mov eax, dword [eax + 8]
test eax, eax
jne 0x102fca0
mov edx, dword [edx + 8]
test edx, edx
jne 0x102fc93
push edi
mov edi, 8
push edi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x102fce1
mov dword [ebp - 0x298], edi
jmp 0x102fe29
xor ecx, ecx
mov eax, esi
mov edx, 0x401
mul edx
seto cl
mov dword [ebx], esi
mov dword [ebx + 4], 0
neg ecx
or ecx, eax
xor eax, eax
mov dword [ebp - 0x29c], eax
mov eax, ecx
mov ecx, 2
mul ecx
mov ecx, dword [ebp - 0x29c]
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [ebx + 4], eax
jne 0x102fd35
mov dword [ebp - 0x298], edi
jmp 0x102fe29
imul esi, esi, 0x802
push esi
push 0
push eax
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0xc
lea edx, [ebp - 0x294]
push edx
push 0x202
call esi
test eax, eax
je 0x102fd7c
lea eax, [ebp - 0x294]
push eax
push 0x101
call esi
test eax, eax
je 0x102fd7c
mov dword [ebp - 0x298], eax
jmp 0x102fe29
mov eax, dword [ebp - 0x2a0]
xor edi, edi
test eax, eax
mov dword [ebp - 0x2ac], 1
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x29c], eax
je 0x102fe1d
mov ecx, dword [ebp - 0x29c]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x102fe0a
imul edi, edi, 0x802
mov eax, dword [esi + 0xc]
movzx ecx, word [eax]
sub ecx, 2
je 0x102fdc5
sub ecx, 0x15
jne 0x102fdfd
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 0x10]
push 0x802
add edx, edi
push edx
push ecx
push eax
call fcn.0102cf30
test eax, eax
mov dword [ebp - 0x298], eax
je 0x102fdf0
mov dword [ebp - 0x298], 0
jmp 0x102fdfd
add dword [ebp - 0x2a4], 1
add edi, 0x802
mov esi, dword [esi + 8]
test esi, esi
jne 0x102fdb5
mov edi, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x29c]
mov eax, dword [edx + 8]
test eax, eax
mov dword [ebp - 0x29c], eax
jne 0x102fda2
mov eax, dword [ebp - 0x2b0]
mov dword [ebx], edi
mov dword [eax], ebx
xor ebx, ebx
pop edi
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x102fe3d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
je 0x102fe5a
mov eax, dword [ebx + 4]
test eax, eax
je 0x102fe51
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x2ac], 0
je 0x102fe69
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01029f27
mov esp, ebp
pop ebp
ret 4