Function at 0x43c170
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43c470
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00405320
lea eax, [ebp - 0x18]
mov edx, dword [0x409d58]
call fcn.00406d20
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x43c488
call fcn.00411710
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405858
mov eax, dword [ebp - 4]
call fcn.004055e0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x3e
jne 0x43c20c
mov eax, dword [ebp - 4]
call fcn.004055e0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00405858
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004053b8
xor esi, esi
mov eax, dword [ebp - 8]
call fcn.004055e0
mov ebx, eax
cmp ebx, 1
jl 0x43c24e
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0x2e
jne 0x43c249
cmp esi, 2
jne 0x43c248
lea eax, [ebp - 8]
mov ecx, ebx
mov edx, 1
call fcn.00405858
jmp 0x43c24e
inc esi
dec ebx
test ebx, ebx
jne 0x43c228
lea eax, [ebp - 0x1a8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x43c442
lea eax, [ebp - 0x18]
call fcn.0043b814
cmp dword [ebp - 0x18], 0
je 0x43c302
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0043be00
pop ecx
cmp dword [ebp - 0x10], 0
je 0x43c2ac
mov eax, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call fcn.00405374
cmp dword [edi], 0
jne 0x43c43d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405748
je 0x43c43d
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0043be00
pop ecx
cmp dword [ebp - 0x10], 0
je 0x43c43d
mov eax, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call fcn.00405374
jmp 0x43c43d
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0x43c494
mov dword [ebp - 0x1b0], eax
mov eax, 0x43c4b0
mov dword [ebp - 0x1ac], eax
lea edx, [ebp - 0x1b0]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.0043be00
pop ecx
cmp dword [ebp - 0x10], 0
je 0x43c43d
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0043be00
pop ecx
mov ebx, 0xa
cmp dword [ebp - 0xc], 0
jne 0x43c3a8
cmp dword [ebp - 0x14], 0
je 0x43c3a8
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0043be00
pop ecx
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x409d58]
call fcn.00406d5c
dec ebx
jne 0x43c367
cmp dword [ebp - 0xc], 0
jne 0x43c3c5
cmp dword [ebp - 0x10], 0
je 0x43c3c5
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x409d58]
call fcn.00406d5c
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0043be00
pop ecx
cmp dword [ebp - 0x10], 0
je 0x43c3f8
mov eax, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call fcn.00405374
cmp dword [edi], 0
jne 0x43c43d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405748
je 0x43c43d
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406a4c
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0043be00
pop ecx
cmp dword [ebp - 0x10], 0
je 0x43c43d
mov eax, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call fcn.00405374
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c477
lea eax, [ebp - 0x18]
mov edx, dword [0x409d58]
mov ecx, 4
call fcn.004061ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret