Function at 0x1003e570
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0xffffffff
je 0x1003e4be
test dword [esi + 0x50], 0x10000
je 0x1003e364
movzx eax, word [esi + 0x48]
push eax
call fcn.1003ff30
test al, al
jne 0x1003e398
mov eax, dword [esi + 0x50]
test eax, 0x8000
je 0x1003e3a4
movzx ecx, word [esi + 0x48]
cmp ecx, 0x61
jne 0x1003e38b
mov eax, 7
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.10045f10
jmp 0x1003e450
cmp ecx, 0x62
jne 0x1003e3a4
mov eax, 8
mov dword [esi + 0x44], eax
mov ecx, esi
call fcn.10045f10
jmp 0x1003e450
movzx ecx, word [esi + 0x48]
cmp ecx, 0x63
jne 0x1003e3ed
test eax, 0x40000
je 0x1003e433
mov ecx, esi
call fcn.10045f10
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 0x1003e4be
movzx eax, word [esi + 0x48]
mov ecx, esi
and eax, 0x1f
mov dword [esi + 0x44], eax
call fcn.10045f10
jmp 0x1003e450
cmp ecx, 0x78
jne 0x1003e415
test eax, 0x1000
je 0x1003e433
mov ecx, esi
call fcn.10045f10
push 2
push 0x10
mov ecx, esi
call fcn.1003fce0
test eax, eax
jne 0x1003e4be
jmp 0x1003e450
cmp ecx, 0x75
jne 0x1003e433
test eax, 0x800
je 0x1003e433
mov ecx, esi
call fcn.10045f10
push 4
mov ecx, esi
call fcn.10042da0
jmp 0x1003e450
test eax, 0x2000
je 0x1003e464
push 3
push 8
mov ecx, esi
call fcn.1003fce0
cmp eax, 3
je 0x1003e464
cmp dword [esi + 0x44], 0
je 0x1003e4be
mov eax, dword [esi + 0x44]
cmp eax, 0xffff
ja 0x1003e4be
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 0x1003e489
lea eax, [edx - 0x44]
cmp eax, 0x33
ja case.0x1003e498.36
movzx eax, byte [eax + 0x1003e4d0]
jmp dword [eax*4 + 0x1003e4c8]
lea eax, [edx - 0x22]
cmp eax, 0x5b
ja case.0x1003e498.35
movzx eax, byte [eax + 0x1003e514]
jmp dword [eax*4 + 0x1003e504]
shr ecx, 0x17
jmp 0x1003e4a7
shr ecx, 0x18
test cl, 1
je case.0x1003e498.35
mov ecx, esi
mov dword [esi + 0x44], edx
call fcn.10045f10
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
push 2
mov ecx, esi
call fcn.10041210
nop
mov edx, 0xac1003e4
in al, 3
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 [esp - 458485757], ah
add edx, dword [eax]
lahf
in al, 3
adc byte [edx + 0x1003e4], bh
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 [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10259a9c], 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 0x1003e5e6
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.10185940
add esp, 4
call fcn.1015e4d0
cmp dword [0x10259a9c], 0
je 0x1003e6d4
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.10034cb0
add esp, 8
mov dword [ebp - 0xaa8], eax
test eax, eax
je 0x1003e6d4
xor ebx, ebx
cmp dword [ebp - 0xa9c], ebx
jle 0x1003e6cd
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.10009b10
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.10043f00
mov edx, dword [ebp - 0xaa4]
add esp, 0xaa0
add edx, 0xfffffff0
test eax, eax
jne 0x1003e6e7
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e6a9
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 0x1003e630
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.10212f74
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e6fc
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.10212f74
mov esp, ebp
pop ebp
ret