Function at 0x411000
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x47b014]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3fa0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x80]
push eax
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x411065
call ebx
mov edx, eax
mov ecx, esi
call fcn.00410480
mov ebx, eax
test ebx, ebx
jne 0x41120d
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x1000
push 1
mov dword [esp + 0x34], 0xffffffff
call fcn.0043153d
mov edi, eax
add esp, 8
test edi, edi
jne 0x41108a
lea ebx, [eax + 0xc]
jmp 0x41120d
lea eax, [esp + 0x2c]
mov dword [edi], 0x1000
push eax
push 0x1132
push edi
mov dword [edi + 0x14], 0x10
mov dword [edi + 0x38], 0
mov dword [edi + 0x30], 0
call dword [sym.imp.WS2_32.dll_WSALookupServiceBeginW]
test eax, eax
je 0x4110cc
call ebx
mov edx, eax
mov ecx, esi
call fcn.00410480
mov ebx, eax
jmp 0x411204
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ebx
mov eax, dword [eax + 0x3fa0]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
nop dword [eax]
push edi
lea eax, [esp + 0x2c]
push eax
push 0x1132
push ecx
call dword [sym.imp.WS2_32.dll_WSALookupServiceNextW]
test eax, eax
jne 0x41122a
mov esi, dword [edi + 4]
test esi, esi
je 0x4111eb
mov eax, dword [edi + 0x30]
cmp dword [eax + 8], 0
je 0x4111eb
cmp word [esi], 0x53
jne 0x4111eb
cmp word [esi + 2], 0x43
jne 0x4111eb
cmp word [esi + 4], 0x41
jne 0x4111eb
cmp word [esi + 6], 0x4e
jne 0x4111eb
cmp word [esi + 8], 0x4d
jne 0x4111eb
cmp word [esi + 0xa], 0x41
jne 0x4111eb
cmp word [esi + 0xc], 0x54
jne 0x4111eb
cmp word [esi + 0xe], 0x49
jne 0x4111eb
cmp word [esi + 0x10], 0x4b
jne 0x4111eb
cmp word [esi + 0x12], 0x20
jne 0x4111eb
cmp word [esi + 0x14], 0x23
jne 0x4111eb
push 0x4e
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00423950
mov eax, dword [edi + 0x30]
add esp, 0xc
add esi, 0x16
mov ebx, dword [eax + 8]
lea eax, [esp + 0x30]
push eax
push 0x471420
push esi
call fcn.00401a00
add esp, 0xc
cmp eax, 1
jne 0x4111e7
mov eax, dword [ebx + 2]
mov ecx, dword [ebx + 6]
push dword [esp + 0x1c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x40], ecx
call fcn.004112a0
add esp, 8
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
jne 0x411100
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
push edi
call fcn.00430bb8
add esp, 4
mov ecx, dword [esp + 0x214]
xor eax, eax
cmp ebx, 9
pop edi
cmovne eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.00422009
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
sub eax, 0x271e
je 0x411253
sub eax, 0x60
je 0x4111fa
call esi
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.00410480
mov ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x4111eb
push edi
call fcn.00430bb8
add esp, 4
cmp dword [esp + 0x18], 0
je 0x411267
xor edi, edi
jmp 0x4111eb
push dword [esp + 0x28]
push 1
call fcn.0043153d
mov edi, eax
add esp, 8
test edi, edi
jne 0x411289
mov ebx, 0xc
mov dword [esp + 0x10], ebx
jmp 0x4111eb
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov dword [esp + 0x18], 1
jmp 0x4111eb