Function at 0x5357c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x63
push 0
push 0
dec ecx
jne 0x5357d0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x535c66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c8]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
call fcn.00535050
mov al, byte [0x57f700]
or al, byte [0x57f701]
jne 0x535c22
lea eax, [ebp - 4]
push eax
mov eax, dword [0x57f6fc]
call fcn.00445ca8
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.004e8d20
mov edi, eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004e8d40
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x535c04
mov eax, dword [ebp - 0x130]
call fcn.005356fc
test al, al
je 0x535c04
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x535c04
mov eax, dword [ebp - 0x130]
push eax
push 0xffffffffffffffff
push 0x40
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
mov eax, 0xffff
mov esi, eax
cmp esi, 1
jb 0x535a1c
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0053507c
cmp eax, 0xffffffff
je 0x535a13
dec eax
je 0x5358d9
dec eax
je 0x5358e8
jmp 0x5358f5
lea eax, [ebp - 0x10]
mov edx, 0x535c7c
call fcn.0040492c
jmp 0x5358f5
lea eax, [ebp - 0x10]
mov edx, 0x535c88
call fcn.0040492c
cmp byte [ebp - 9], 0
jne 0x535a13
lea edx, [ebp - 0x2e0]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x2e0]
push 0x535c94
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2e4]
call fcn.0040b424
push dword [ebp - 0x2e4]
push 0x535ca8
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x2e8]
call fcn.0040a57c
push dword [ebp - 0x2e8]
push 0x535cb4
push dword [ebp - 0x10]
lea eax, [ebp - 0x2dc]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2dc]
mov eax, dword [0x57f704]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x535a13
lea edx, [ebp - 0x2f0]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x2f0]
push 0x535c94
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2f4]
call fcn.0040b424
push dword [ebp - 0x2f4]
push 0x535ca8
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x2f8]
call fcn.0040a57c
push dword [ebp - 0x2f8]
push 0x535cb4
push dword [ebp - 0x10]
lea eax, [ebp - 0x2ec]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2ec]
mov eax, dword [0x57f704]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec esi
test esi, esi
jne 0x5358b0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x535c04
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004e8d60
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x535c04
mov eax, dword [ebp - 0x130]
call fcn.005356fc
test al, al
je 0x535c04
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x535c04
mov eax, dword [ebp - 0x130]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
mov eax, 0xffff
mov esi, eax
cmp esi, 1
jb 0x535bfb
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.0053507c
cmp eax, 0xffffffff
je 0x535bf2
dec eax
je 0x535ab8
dec eax
je 0x535ac7
jmp 0x535ad4
lea eax, [ebp - 0x10]
mov edx, 0x535c7c
call fcn.0040492c
jmp 0x535ad4
lea eax, [ebp - 0x10]
mov edx, 0x535c88
call fcn.0040492c
cmp byte [ebp - 9], 0
jne 0x535bf2
lea edx, [ebp - 0x300]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x300]
push 0x535c94
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x304]
call fcn.0040b424
push dword [ebp - 0x304]
push 0x535ca8
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x308]
call fcn.0040a57c
push dword [ebp - 0x308]
push 0x535cb4
push dword [ebp - 0x10]
lea eax, [ebp - 0x2fc]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2fc]
mov eax, dword [0x57f704]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x535bf2
lea edx, [ebp - 0x310]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x310]
push 0x535c94
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x314]
call fcn.0040b424
push dword [ebp - 0x314]
push 0x535ca8
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x318]
call fcn.0040a57c
push dword [ebp - 0x318]
push 0x535cb4
push dword [ebp - 0x10]
lea eax, [ebp - 0x30c]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x30c]
mov eax, dword [0x57f704]
call fcn.00415cc8
dec esi
test esi, esi
jne 0x535a8f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x535a2a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
push edi
call sub.kernel32.dll_CloseHandle_1
call sub.wsock32.dll_WSACleanup
jmp 0x535c40
cmp byte [0x57f700], 0
je 0x535c32
call fcn.005356f0
jmp 0x535c40
cmp byte [0x57f701], 0
je 0x535c40
call fcn.00535cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535c6d
lea eax, [ebp - 0x318]
mov edx, 0x10
call fcn.004048b8
lea eax, [ebp - 0x10]
call fcn.00404894
ret