Function at 0x41c53b
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
push ebx
mov dword [esp + 4], ecx
push esi
xor ebx, ebx
and dword [esp + 8], 1
push edi
mov dword [esp + 0x14], ecx
jne 0x41c561
mov dword [0x4239b0], ebx
call fcn.0041c1f6
mov edi, eax
mov dword [0x4239c8], edi
cmp edi, ebx
je 0x41c6f7
cmp dword [esp + 0xc], ebx
jne 0x41c595
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4239c4], eax
cmp eax, ebx
je 0x41c6f7
jmp 0x41c642
push 0x404b08
call fcn.0041c130
push 0x404b18
mov dword [esp + 0x1c], eax
call fcn.0041c130
mov dword [esp + 0x1c], eax
mov eax, dword [0x4239c4]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], eax
lea ecx, [ecx + eax + 0x80]
cmp dword [esp + 0x1c], ebx
je 0x41c642
cmp dword [esp + 0x18], ebx
je 0x41c642
mov edi, dword [ecx]
cmp edi, ebx
jbe 0x41c642
cmp dword [ecx + 4], 0x14
jbe 0x41c642
add edi, eax
cmp dword [edi], ebx
je 0x41c642
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x10]
push eax
call dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x41c6f7
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
add esi, dword [esp + 0x10]
add ebx, dword [esp + 0x10]
jmp 0x41c633
jns 0x41c612
and eax, 0xffff
jmp 0x41c61a
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 2]
push eax
push dword [esp + 0x24]
call dword [esp + 0x20]
test eax, eax
je 0x41c6f7
mov dword [ebx], eax
add esi, 4
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0x41c609
add edi, 0x14
xor ebx, ebx
cmp dword [edi], ebx
jne 0x41c5e2
lea esi, [esp + 0x24]
mov eax, 0xe5
call fcn.0040f34a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4239cc], eax
cmp eax, ebx
je 0x41c6f7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404b28
push eax
call esi
push 0x404b38
push dword [0x4239cc]
mov dword [0x4239d0], eax
call esi
push 0x404b4c
push dword [0x4239cc]
mov dword [0x4239d4], eax
call esi
push 0x404b68
push dword [0x4239cc]
mov dword [0x4239d8], eax
call esi
push 0x404b7c
push dword [0x4239cc]
mov dword [0x4239dc], eax
call esi
push 0x404b88
push dword [0x4239cc]
mov dword [0x4239e0], eax
call esi
mov dword [0x4239e4], eax
cmp dword [0x4239d0], ebx
jne 0x41c6e3
cmp dword [0x4239d4], ebx
je 0x41c6f7
cmp dword [0x4239d8], ebx
je 0x41c6f7
cmp dword [0x4239e0], ebx
je 0x41c6f7
cmp eax, ebx
jne 0x41c6fe
xor al, al
jmp 0x41c88b
push ebx
push 0x80000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x4231a4], eax
cmp eax, ebx
jne 0x41c728
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4231a4], eax
mov byte [0x4223b3], 0
jmp 0x41c72f
mov byte [0x4223b3], 1
push 0x423870
mov dword [0x4227d8], ebx
mov byte [0x4223b2], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x38]
push eax
push 0x202
mov dword [0x423888], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esp + 0x14]
call fcn.0041c230
test al, al
je 0x41c6f7
cmp dword [esp + 0xc], ebx
jne 0x41c793
push ebx
push ebx
push 1
push 0x4239e8
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [0x423e78], 0xffffffff
mov dword [0x423e74], eax
cmp eax, ebx
je 0x41c6f7
push 0x4239c0
push 0xffffffffffffffff
call fcn.004067fd
mov dword [0x4239b4], eax
cmp eax, ebx
je 0x41c6f7
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [0x4239b8], eax
push eax
mov eax, dword [0x4239b4]
push dword [eax]
call fcn.00406595
push dword [esp + 0x14]
mov dword [0x4239bc], eax
call fcn.0041c2af
test al, al
je 0x41c6f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x423c20], eax
mov dword [0x423c24], ebx
cmp dword [esp + 0xc], ebx
jne 0x41c7fa
call fcn.0041c311
jmp 0x41c7fc
mov al, 1
test al, al
je 0x41c6f7
cmp dword [esp + 0xc], ebx
jne 0x41c839
lea eax, [esp + 0x1c8]
call fcn.0041cc1d
push ebx
lea eax, [esp + 0x327]
push eax
push dword [0x4239bc]
mov ecx, 0x423e1e
push 0x423c28
mov eax, 0x84939312
call fcn.0040983f
push dword [esp + 0x14]
call fcn.0041c363
test al, al
je 0x41c6f7
xor eax, eax
test byte [esp + 0x14], 2
mov dword [0x4231b4], ebx
mov word [0x423460], ax
mov word [0x4231d0], ax
mov word [0x423fc8], ax
mov word [0x423f60], ax
mov word [0x423ef8], ax
mov word [0x423e90], ax
je 0x41c884
call fcn.0041c41a
jmp 0x41c886
mov al, 1
test al, al
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret