Function at 0x10129110
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x1b8]
push eax
push 0x202
mov dword [ebp - 0x20], esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, eax
test edx, edx
jne 0x101295a0
mov eax, dword [ebp - 0x1b8]
cmp al, 2
jne 0x1012957f
shr eax, 8
cmp al, 2
jne 0x1012957f
mov edi, dword [ebp + 8]
lea ebx, [esi + 4]
mov word [esi], 1
lea eax, [esi + 0x34]
mov dword [ebx], edx
mov ecx, edi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], 0xf
mov dword [esi + 0x1c], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], 0xf
add esi, 0x4c
mov dword [eax], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0xf
mov dword [esi], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x24], eax
jb 0x101291a8
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 3
push 0x10265bb8
push 0
call fcn.100504b0
mov edx, eax
add esp, 0xc
mov dword [ebp + 8], edx
cmp edx, 0xffffffff
je 0x101292c2
cmp dword [edi + 0x10], edx
mov ecx, edx
mov dword [ebp - 0x18], 0
mov eax, edi
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
jb 0x101291f2
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d310
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.1000d280
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x1012923b
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129231
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101295c7
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x10]
add ecx, 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
cmp eax, ecx
jb 0x101295c2
sub eax, ecx
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [edi + 0x14], 0x10
jb 0x10129274
mov edi, dword [edi]
lea eax, [edi + ecx]
push edx
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d310
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000d280
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x101292e8
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101292b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101295c7
push edx
push ecx
call fcn.101e1f2f
add esp, 8
jmp 0x101292e8
push 4
push str.http
mov ecx, ebx
call fcn.1000d310
cmp esi, edi
je 0x101292e8
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x101292df
mov edi, dword [edi]
push eax
push edi
mov ecx, esi
call fcn.1000d310
mov ebx, dword [esi + 0x14]
mov eax, esi
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], ebx
cmp ebx, 0x10
jb 0x10129300
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x1012932c
push edi
push 0x23
push eax
call fcn.101e3cf0
add esp, 0xc
test eax, eax
je 0x1012932c
sub eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x1012932f
push 0
push eax
mov ecx, esi
call fcn.10024f70
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], esi
mov eax, esi
cmp ebx, 0x10
jb 0x1012933e
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x10129460
push edi
push 0x2f
push eax
call fcn.101e3cf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1012945d
sub ebx, dword [ebp - 0x1c]
cmp ebx, 0xffffffff
je 0x1012945d
cmp edi, ebx
mov dword [ebp - 0x18], 0
mov eax, ebx
mov dword [ebp - 8], 0
cmovb eax, edi
mov dword [ebp - 4], 0xf
cmp dword [ebp + 8], 0x10
mov ecx, esi
jb 0x1012938e
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.1000d310
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ecx + 0x1c]
call fcn.1000d280
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x101293db
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101293d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101295c7
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
cmp eax, ebx
jb 0x101295c2
sub eax, ebx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10129410
mov eax, dword [esi]
push ecx
add eax, ebx
lea ecx, [ebp - 0x18]
push eax
call fcn.1000d310
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000d280
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x10129488
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129451
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101295c7
push edx
push ecx
call fcn.101e1f2f
add esp, 8
jmp 0x10129488
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
cmp ecx, esi
je 0x1012947a
mov eax, esi
cmp ebx, 0x10
jb 0x10129473
mov eax, dword [esi]
push edi
push eax
call fcn.1000d310
push 1
push 0x1025c2a4
mov ecx, esi
call fcn.1000d310
mov ebx, dword [ebp - 0x20]
add ebx, 0x1c
mov eax, ebx
mov dword [ebp + 8], ebx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x101294a1
mov eax, dword [ebx]
mov dword [ebp + 8], eax
test edi, edi
je 0x10129564
push edi
push 0x3a
push eax
call fcn.101e3cf0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10129564
sub esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x10129564
lea eax, [esi + 1]
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
cmp edi, eax
jb 0x101295c2
sub edi, eax
mov edx, 0xffffffff
cmp edi, 0xffffffff
mov ecx, ebx
cmovb edx, edi
cmp dword [ebx + 0x14], 0x10
jb 0x10129502
mov ecx, dword [ebx]
add eax, ecx
lea ecx, [ebp - 0x18]
push edx
push eax
call fcn.1000d310
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
call fcn.1000d280
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x1012954e
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129544
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101295c7
push edx
push ecx
call fcn.101e1f2f
add esp, 8
push 0
push esi
mov ecx, ebx
call fcn.10024f70
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
push 2
push 0x10265bac
call fcn.1000d310
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Invalid_WinSock_version
lea ecx, [ebp - 0xc]
call fcn.10020c70
push 0x102764a4
lea eax, [ebp - 0xc]
push eax
call fcn.101e3e35
push str.WSAStartup_failed
call fcn.10025c60
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.1012cb50
push 0x102763fc
lea eax, [ebp - 0x14]
push eax
call fcn.101e3e35
call fcn.100184d0
call fcn.101e6db2
int3