Function at 0x511bc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x582c44]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00511980
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x512df4
mov edi, dword [ebp - 0x10]
add edi, 0x90
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa8], 7
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xa4], 0
mov dword [ebp - 0x1c], ecx
mov word [ecx + 0x94], 0
mov dword [ebp - 0x48], 0x5792b4
mov dword [ebp - 0x44], 0x5829fc
mov dword [ebp - 0x40], ebp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x40], 0x511ee1
mov dword [ebp - 0x5c], 1
lea eax, [ebp - 0x64]
call fcn.00579e71
mov dword [esp + 4], esi
mov dword [ebp - 0x14], edi
mov dword [esp], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
call fcn.00403598
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp + 0x14]
mov dl, byte [ebp + 0x18]
mov ch, byte [ebp + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, 0x94
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb0], cl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb1], dl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb2], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb3], ch
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xa8], 8
jb 0x511cc9
mov edi, dword [edi]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa4]
movzx ecx, word [edi + eax*2 - 2]
cmp ecx, 0x2e
jne 0x511deb
dec eax
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], 0
mov dword [ebp - 0x5c], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
mov dword [esp + 8], 0
call fcn.00403598
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], 0
mov dword [ebp - 0x5c], 3
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
lea eax, [ebp - 0xa4]
mov dword [esp], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
call fcn.00403598
lea eax, [ebp - 0xa4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004050a4
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x511da9
mov eax, dword [ebp - 0xa0]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x511da1
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0055a7a8
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], 0
mov ecx, dword [ebp - 0x70]
cmp ecx, 8
jb 0x511deb
mov eax, dword [ebp - 0x84]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x511de3
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0055a7a8
cmp dword [0x582c44], 0
je 0x511dfb
mov eax, dword [0x582c48]
jmp 0x511e2f
mov dword [ebp - 0x5c], 4
mov dword [esp], 4
call fcn.0055e29c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], 5
mov dword [esp], eax
call fcn.0051b54c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov dword [0x582c48], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], 6
mov dword [esp], eax
call fcn.0051b668
cmp dword [0x582c44], 0
je 0x511e7b
inc dword [0x582c44]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], 0xa
mov dword [esp], eax
call fcn.0051b688
lea eax, [ebp - 0x64]
mov dword [esp], eax
call fcn.00579e92
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0xffffffff
nop word cs:[eax + eax]
mov dword [ebp - 0x5c], 7
mov dword [esp + 4], 0x582ab4
mov dword [esp], 0x101
call sub.WS2_32.DLL_WSAStartup
sub esp, 8
test eax, eax
je 0x511e4d
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, 0x64
jae 0x511ed6
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x5c], 9
mov dword [esp], 0x64
call sub.KERNEL32.DLL_Sleep
sub esp, 4
jmp 0x511e90
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
jmp 0x511e4d