Function at 0x4c2b40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da6e0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x230
mov eax, dword [0x6b8c10]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, byte [0x69fafc]
test eax, eax
jne 0x4c2b84
mov al, 1
jmp 0x4c2e1c
mov dword [ebp - 0x1b0], 1
push 0x190
push 0
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.005b6dd0
add esp, 0xc
mov edx, 0x909
mov word [ebp - 0x1ac], dx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1a8]
push eax
movzx ecx, word [ebp - 0x1ac]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1b0], eax
jmp 0x4c2bee
mov dword [ebp - 4], 0xffffffff
jmp 0x4c2c02
cmp dword [ebp - 0x1b0], 0x276c
jne 0x4c2d1b
mov dword [ebp - 0x1b8], 5
mov dword [ebp - 0x1b4], 2
cmp dword [ebp - 0x1b0], 0x276c
jne 0x4c2cd7
cmp dword [ebp - 0x1b8], 1
jl 0x4c2cd7
mov edx, dword [ebp - 0x1b4]
sub edx, 1
mov dword [ebp - 0x1b4], edx
jns 0x4c2c6d
mov dword [ebp - 0x1b4], 9
mov eax, dword [ebp - 0x1b8]
sub eax, 1
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x4c2c78
jmp 0x4c2cd7
mov ecx, dword [ebp - 0x1b8]
and ecx, 0xff
movzx edx, cl
mov eax, dword [ebp - 0x1b4]
and eax, 0xff
movzx ecx, al
shl ecx, 8
or edx, ecx
mov word [ebp - 0x1ac], dx
push 0x190
push 0
lea edx, [ebp - 0x1a8]
push edx
call fcn.005b6dd0
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
movzx ecx, word [ebp - 0x1ac]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1b0], eax
jmp 0x4c2c26
cmp dword [ebp - 0x1b0], 0
jne 0x4c2d1b
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
push str.Using_ws2_32.dll_version__d__d
lea ecx, [ebp - 0x208]
push ecx
call fcn.005b32f7
add esp, 0x10
lea edx, [ebp - 0x208]
push edx
push str.ws2_32_DLL_Version
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x1b0], 0
je 0x4c2dfd
cmp dword [ebp - 0x1b0], 0x276b
jne 0x4c2d4b
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
jmp 0x4c2dfd
cmp dword [ebp - 0x1b0], 0x276c
jne 0x4c2d6e
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
jmp 0x4c2dfd
cmp dword [ebp - 0x1b0], 0x2734
jne 0x4c2d8e
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
jmp 0x4c2dfd
cmp dword [ebp - 0x1b0], 0x2753
jne 0x4c2dae
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
jmp 0x4c2dfd
cmp dword [ebp - 0x1b0], 0x271e
jne 0x4c2dce
push str.The_lpWSAData_is_not_a_valid_pointer.
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
jmp 0x4c2dfd
mov ecx, dword [ebp - 0x1b0]
push ecx
push str.WSAStartup_error:_0x_x
lea edx, [ebp - 0x23c]
push edx
call fcn.005b32f7
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
mov byte [0x69fafc], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c2e40
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1b0], 0
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b2af3
mov esp, ebp
pop ebp
ret