Function at 0x40ffef
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x1c
call fcn.00414bd3
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.00414bd3
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x42ffd8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.00414bd3
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x42ffe0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
mov dword [ebp - 8], 0
push 0x14
call fcn.00414bd3
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
cmp dword [0x4302d3], 0
jne 0x41021f
push 0x80000004
push 0
push 0x42ff85
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4100d1
mov eax, 0x42625b
push eax
push 1
mov ebx, 0x198
call fcn.00415560
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4100f7
push ebx
call fcn.00414bcd
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x41011e
mov eax, 0x42625b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x410132
mov eax, 0x42625c
push eax
push 3
mov ebx, 0x10
mov eax, 0x417ae0
call fcn.00414fe0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41015d
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41016d
push ebx
call fcn.00414bcd
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410180
mov eax, 0x42625c
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4101a6
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4101c2
push ebx
call fcn.00414bcd
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4101d5
mov eax, 0x42625b
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4101fb
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00403a7c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x410217
push ebx
call fcn.00414bcd
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [0x4302d3], eax
mov eax, dword [ebp - 4]
push eax
push 0x18e
call fcn.00414bd3
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0x101
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.00414f40
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4102f8
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4102f6
imul eax, dword [edi]
jmp 0x4102eb
mov ecx, eax
cmp ecx, 0x101
jle 0x410305
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.00414f40
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x410343
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x410341
imul eax, dword [edi]
jmp 0x410336
mov ecx, eax
cmp ecx, 0x81
jle 0x410350
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00414bcd
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x41096f
push 0x80000004
push 0
push 0x42ff9f
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4103c9
mov eax, 0x42625b
push eax
push 1
mov ebx, 0x198
call fcn.00415560
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4103ef
push ebx
call fcn.00414bcd
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x410416
mov eax, 0x42625b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x41042a
mov eax, 0x42625c
push eax
push 3
mov ebx, 0x10
mov eax, 0x417ae0
call fcn.00414fe0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x410455
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x410465
push ebx
call fcn.00414bcd
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410478
mov eax, 0x42625c
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41049e
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4104ba
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x28]
push eax
push dword [0x4302d3]
call fcn.00403dce
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4104dc
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x2c]
call fcn.004041e2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410820
push 0x10
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.00414bd3
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00414bcd
add esp, 4
pop eax
mov ebx, dword [ebp - 0xc]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 4
push 0x80000301
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 2
mov ebx, 0x910
call fcn.00415810
add esp, 0x1c
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4105f7
mov eax, 0x42625c
push eax
push 3
mov ebx, 0x19c
call fcn.004159a0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x410623
push ebx
call fcn.00414bcd
add esp, 4
push 0x80000301
push 0
push 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp ecx, 0x80000101
jne 0x410647
and eax, 0xff
jmp 0x41069c
cmp ecx, 0x80000201
jne 0x410652
cwde
jmp 0x41069c
cmp ecx, 0x80000301
je 0x41069c
cmp ecx, 0x80000401
je 0x41069c
mov dword [ebp - 0x2c], eax
cmp ecx, 0x80000501
je 0x41068c
cmp ecx, 0x80000601
je 0x410691
push 0x321
push 0x4029d16
push 2
call fcn.00414be5
add esp, 0xc
fld dword [ebp - 0x2c]
jmp 0x410697
mov dword [ebp - 0x28], edx
fld qword [ebp - 0x2c]
call fcn.00403850
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.00415810
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4106cd
push ebx
call fcn.00414bcd
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x14], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x1c]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 3
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0x80000101
push 0
mov ebx, dword [ebp - 0x2c]
mov al, byte [ebx]
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push 0x42ffbc
push dword [ebp - 0x28]
push 0x42ffbc
push dword [ebp - 0x20]
push 0x42ffbc
push dword [ebp - 0x18]
mov ecx, 7
call fcn.0040109b
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4107e8
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4107f8
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x410808
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x410818
push ebx
call fcn.00414bcd
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x410998
push 0x80000004
push 0
push 0x42ffbe
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x410854
mov eax, 0x42625b
push eax
push 1
mov ebx, 0x198
call fcn.00415560
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41087a
push ebx
call fcn.00414bcd
add esp, 4
call fcn.004037a5
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 2
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4108a1
mov eax, 0x42625b
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4108b5
mov eax, 0x42625c
push eax
push 3
mov ebx, 0x10
mov eax, 0x417ae0
call fcn.00414fe0
add esp, 0x28
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4108e0
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4108f0
push ebx
call fcn.00414bcd
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410903
mov eax, 0x42625c
push eax
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410929
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.00403877
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x410945
push ebx
call fcn.00414bcd
add esp, 4
lea eax, [ebp - 0x28]
push eax
push dword [0x4302d3]
call fcn.00403dce
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x410967
push ebx
call fcn.00414bcd
add esp, 4
push dword [ebp - 0x2c]
call fcn.004041c1
push 0xa0000301
push 0
push 0x42625c
push 1
mov ebx, 0x168
call fcn.004150f0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x410998
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00414bcd
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00414bcd
add esp, 4
pop ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00414bcd
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4109e1
push ebx
call fcn.00414bcd
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4