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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50c
push ebx
push esi
mov esi, dword [ebp + 8]
and esi, 1
push edi
mov dword [esp + 0x14], esi
jne 0x414223
xor ebx, ebx
mov dword [0x4236c8], ebx
jmp 0x414225
xor ebx, ebx
call fcn.00413eb9
mov edi, eax
mov dword [0x4236e0], edi
cmp edi, ebx
je 0x4143b9
cmp esi, ebx
jne 0x414257
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4236dc], eax
cmp eax, ebx
je 0x4143b9
jmp 0x414304
push 0x403720
call fcn.00413df3
push 0x403730
mov dword [esp + 0x1c], eax
call fcn.00413df3
mov dword [esp + 0x1c], eax
mov eax, dword [0x4236dc]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], eax
lea ecx, [ecx + eax + 0x80]
cmp dword [esp + 0x1c], ebx
je 0x414304
cmp dword [esp + 0x18], ebx
je 0x414304
mov edi, dword [ecx]
cmp edi, ebx
jbe 0x414304
cmp dword [ecx + 4], 0x14
jbe 0x414304
add edi, eax
cmp dword [edi], ebx
je 0x414304
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 0x4143b9
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
add esi, dword [esp + 0x10]
add ebx, dword [esp + 0x10]
jmp 0x4142f5
jns 0x4142d4
and eax, 0xffff
jmp 0x4142dc
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 2]
push eax
push dword [esp + 0x24]
call dword [esp + 0x20]
test eax, eax
je 0x4143b9
mov dword [ebx], eax
add esi, 4
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0x4142cb
add edi, 0x14
xor ebx, ebx
cmp dword [edi], ebx
jne 0x4142a4
lea esi, [esp + 0x24]
mov eax, 0xe5
call fcn.004157fb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4236e4], eax
cmp eax, ebx
je 0x4143b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403740
push eax
call esi
push 0x403750
push dword [0x4236e4]
mov dword [0x4236e8], eax
call esi
push 0x403764
push dword [0x4236e4]
mov dword [0x4236ec], eax
call esi
push 0x403780
push dword [0x4236e4]
mov dword [0x4236f0], eax
call esi
push 0x403794
push dword [0x4236e4]
mov dword [0x4236f4], eax
call esi
push 0x4037a0
push dword [0x4236e4]
mov dword [0x4236f8], eax
call esi
mov dword [0x4236fc], eax
cmp dword [0x4236e8], ebx
jne 0x4143a5
cmp dword [0x4236ec], ebx
je 0x4143b9
cmp dword [0x4236f0], ebx
je 0x4143b9
cmp dword [0x4236f8], ebx
je 0x4143b9
cmp eax, ebx
jne 0x4143c0
xor al, al
jmp 0x414549
push ebx
push 0x80000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x423180], eax
cmp eax, ebx
jne 0x4143ea
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x423180], eax
mov byte [0x423179], 0
jmp 0x4143f1
mov byte [0x423179], 1
push 0x42333c
mov dword [0x4227b0], ebx
mov byte [0x423178], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x38]
push eax
push 0x202
mov dword [0x423354], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 8]
call fcn.00413ef3
test al, al
je 0x4143b9
cmp dword [esp + 0x14], ebx
jne 0x414454
push ebx
push ebx
push 1
push 0x423700
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [0x423b90], 0xffffffff
mov dword [0x423b8c], eax
cmp eax, ebx
je 0x4143b9
push 0x4236d8
push 0xffffffffffffffff
call fcn.00406262
mov dword [0x4236cc], eax
cmp eax, ebx
je 0x4143b9
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [0x4236d0], eax
push eax
mov eax, dword [0x4236cc]
push dword [eax]
call fcn.00405ffa
push dword [ebp + 8]
mov dword [0x4236d4], eax
call fcn.00413f72
test al, al
je 0x4143b9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x423938], eax
mov dword [0x42393c], ebx
cmp dword [esp + 0x14], ebx
jne 0x4144ba
call fcn.00413fd4
jmp 0x4144bc
mov al, 1
test al, al
je 0x4143b9
cmp dword [esp + 0x14], ebx
jne 0x4144f9
lea eax, [esp + 0x1c8]
call fcn.004148eb
push ebx
lea eax, [esp + 0x2f7]
push eax
push dword [0x4236d4]
mov ecx, 0x423b36
push 0x423940
mov eax, 0x84939312
call fcn.004092a8
push dword [ebp + 8]
call fcn.00414026
test al, al
je 0x4143b9
xor eax, eax
test byte [ebp + 8], 2
mov dword [0x423190], ebx
mov word [0x423bb8], ax
mov word [0x423fc8], ax
mov word [0x423358], ax
mov word [0x4232d8], ax
mov word [0x423230], ax
mov word [0x4231b0], ax
je 0x414542
call fcn.004140dd
jmp 0x414544
mov al, 1
test al, al
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4