Function at 0x1003daa0
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0xffffffff
je 0x1003d9ec
test dword [esi + 0x50], 0x10000
je 0x1003d844
movzx eax, word [esi + 0x48]
push eax
call fcn.1003f570
test al, al
jne 0x1003d878
mov eax, dword [esi + 0x50]
test eax, 0x8000
je 0x1003d884
movzx ecx, word [esi + 0x48]
cmp ecx, 0x61
jne 0x1003d86b
mov eax, 7
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.100448d0
jmp 0x1003d934
cmp ecx, 0x62
jne 0x1003d884
mov eax, 8
mov dword [esi + 0x44], eax
mov ecx, esi
call fcn.100448d0
jmp 0x1003d934
movzx ecx, word [esi + 0x48]
cmp ecx, 0x63
jne 0x1003d8cd
test eax, 0x40000
je 0x1003d913
mov ecx, esi
call fcn.100448d0
mov eax, dword [esi + 0x3c]
movzx edx, word [esi + 0x48]
push edx
push 0x103
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x1003d9ec
movzx eax, word [esi + 0x48]
mov ecx, esi
and eax, 0x1f
mov dword [esi + 0x44], eax
call fcn.100448d0
jmp 0x1003d934
cmp ecx, 0x78
jne 0x1003d8f5
test eax, 0x1000
je 0x1003d913
mov ecx, esi
call fcn.100448d0
push 2
push 0x10
mov ecx, esi
call fcn.1003f330
test eax, eax
jne 0x1003d9ec
jmp 0x1003d934
cmp ecx, 0x75
jne 0x1003d913
test eax, 0x800
je 0x1003d913
mov ecx, esi
call fcn.100448d0
push 4
mov ecx, esi
call fcn.10041ec0
jmp 0x1003d934
test eax, 0x2000
je 0x1003d94c
push 3
push 8
mov ecx, esi
call fcn.1003f330
cmp eax, 3
je 0x1003d94c
cmp dword [esi + 0x44], 0
je 0x1003d9ec
mov eax, dword [esi + 0x44]
cmp eax, 0xffff
ja 0x1003d9ec
movzx eax, ax
mov dword [esi + 0x44], eax
mov al, 1
pop esi
ret
mov ecx, dword [esi + 0x50]
movzx edx, word [esi + 0x48]
test ecx, 0x400000
je 0x1003d971
lea eax, [edx - 0x44]
cmp eax, 0x33
ja case.0x1003d980.36
movzx eax, byte [eax + 0x1003da00]
jmp dword [eax*4 + 0x1003d9f8]
lea eax, [edx - 0x22]
cmp eax, 0x5b
ja case.0x1003d980.35
movzx eax, byte [eax + 0x1003da44]
jmp dword [eax*4 + 0x1003da34]
mov eax, ecx
shr eax, 0x17
jmp 0x1003d993
mov eax, ecx
shr eax, 0x18
test al, 1
je case.0x1003d980.35
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
mov dword [esi + 0x44], edx
cmp eax, edi
je 0x1003d9dc
cmp word [eax], 0x5c
jne 0x1003d9d7
lea edx, [eax + 2]
cmp edx, edi
je 0x1003d9d7
test cl, 8
jne 0x1003d9c3
movzx edi, word [edx]
cmp edi, 0x28
je 0x1003d9d5
cmp edi, 0x29
je 0x1003d9d5
test cl, 0x10
jne 0x1003d9d7
movzx ecx, word [edx]
cmp ecx, 0x7b
je 0x1003d9d5
cmp ecx, 0x7d
jne 0x1003d9d7
mov eax, edx
add eax, 2
mov dword [esi], eax
mov ecx, esi
call fcn.100458f0
pop edi
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
push 2
mov ecx, esi
call fcn.100409e0
lea ecx, [ecx]
call 0xa713ddd6
fld dword [ebx]
adc byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add dword [ecx], eax
add byte [esi - 1760558119], cl
fld dword [ebx]
adc byte [edi - 0x17effc27], al
fld dword [ebx]
adc byte [eax], al
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [edx]
add al, byte [ecx]
add al, byte [ebx]
add eax, dword [ecx]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ecx], eax
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ecx]
add dl, byte [ebp - 117]
push ebp
mov ebp, esp
sub esp, 0xab4
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1025ab6c], 0
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xab4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xab0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xaac], eax
jne 0x1003db16
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0xaa8]
push eax
call fcn.10174a60
add esp, 4
call fcn.1014f520
cmp dword [0x1025ab6c], 0
je 0x1003dc04
lea eax, [ebp - 0xa9c]
mov dword [ebp - 0xa9c], 0
push eax
xor eax, eax
test esi, esi
setne al
inc eax
push eax
call fcn.10034dd0
add esp, 8
mov dword [ebp - 0xaa8], eax
test eax, eax
je 0x1003dc04
xor ebx, ebx
cmp dword [ebp - 0xa9c], ebx
jle 0x1003dbfd
mov dword [ebp - 0xaa0], eax
lea ebx, [ebx]
mov esi, eax
lea edi, [ebp - 0xa98]
lea eax, [ebp - 0xa98]
mov ecx, 0x2a5
push eax
lea eax, [ebp - 0xaa4]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10008d60
add esp, 8
lea esi, [ebp - 0xa98]
mov ecx, 0x2a5
push dword [ebp - 0xaac]
push dword [ebp - 0xab0]
push dword [ebp - 0xab4]
sub esp, 0xa94
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10042f60
mov edx, dword [ebp - 0xaa4]
add esp, 0xaa0
add edx, 0xfffffff0
test eax, eax
jne 0x1003dc17
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003dbd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xaa0]
inc ebx
add eax, 0xa94
mov dword [ebp - 0xaa0], eax
cmp ebx, dword [ebp - 0xa9c]
jl 0x1003db60
mov eax, dword [ebp - 0xaa8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003dc2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret