Function at 0x547f48
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x63
push 0
push 0
dec ecx
jne 0x547f50
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5483e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c8]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
call fcn.005477d0
mov al, byte [0x59864c]
or al, byte [0x59864d]
jne 0x5483a2
lea eax, [ebp - 4]
push eax
mov eax, dword [0x598648]
call fcn.00447144
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.004fb4dc
mov edi, eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004fb4fc
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x548384
mov eax, dword [ebp - 0x130]
call fcn.00547e7c
test al, al
je 0x548384
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x548384
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 0x54819c
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.005477fc
cmp eax, 0xffffffff
je 0x548193
dec eax
je 0x548059
dec eax
je 0x548068
jmp 0x548075
lea eax, [ebp - 0x10]
mov edx, 0x5483fc
call fcn.00404954
jmp 0x548075
lea eax, [ebp - 0x10]
mov edx, 0x548408
call fcn.00404954
cmp byte [ebp - 9], 0
jne 0x548193
lea edx, [ebp - 0x2e0]
lea eax, [ebp - 0x114]
call fcn.0040b474
push dword [ebp - 0x2e0]
push 0x548414
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2e4]
call fcn.0040b474
push dword [ebp - 0x2e4]
push 0x548428
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x2e8]
call fcn.0040a458
push dword [ebp - 0x2e8]
push 0x548434
push dword [ebp - 0x10]
lea eax, [ebp - 0x2dc]
mov edx, 7
call fcn.00404c24
mov edx, dword [ebp - 0x2dc]
mov eax, dword [0x598650]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x548193
lea edx, [ebp - 0x2f0]
lea eax, [ebp - 0x114]
call fcn.0040b474
push dword [ebp - 0x2f0]
push 0x548414
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2f4]
call fcn.0040b474
push dword [ebp - 0x2f4]
push 0x548428
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x2f8]
call fcn.0040a458
push dword [ebp - 0x2f8]
push 0x548434
push dword [ebp - 0x10]
lea eax, [ebp - 0x2ec]
mov edx, 7
call fcn.00404c24
mov edx, dword [ebp - 0x2ec]
mov eax, dword [0x598650]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec esi
test esi, esi
jne 0x548030
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x548384
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004fb51c
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x548384
mov eax, dword [ebp - 0x130]
call fcn.00547e7c
test al, al
je 0x548384
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x548384
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 0x54837b
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.005477fc
cmp eax, 0xffffffff
je 0x548372
dec eax
je 0x548238
dec eax
je 0x548247
jmp 0x548254
lea eax, [ebp - 0x10]
mov edx, 0x5483fc
call fcn.00404954
jmp 0x548254
lea eax, [ebp - 0x10]
mov edx, 0x548408
call fcn.00404954
cmp byte [ebp - 9], 0
jne 0x548372
lea edx, [ebp - 0x300]
lea eax, [ebp - 0x114]
call fcn.0040b474
push dword [ebp - 0x300]
push 0x548414
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x304]
call fcn.0040b474
push dword [ebp - 0x304]
push 0x548428
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x308]
call fcn.0040a458
push dword [ebp - 0x308]
push 0x548434
push dword [ebp - 0x10]
lea eax, [ebp - 0x2fc]
mov edx, 7
call fcn.00404c24
mov edx, dword [ebp - 0x2fc]
mov eax, dword [0x598650]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x548372
lea edx, [ebp - 0x310]
lea eax, [ebp - 0x114]
call fcn.0040b474
push dword [ebp - 0x310]
push 0x548414
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x314]
call fcn.0040b474
push dword [ebp - 0x314]
push 0x548428
mov ax, word [ebp - 0x2d6]
push eax
call sub.wsock32.dll_htons
movzx eax, ax
lea edx, [ebp - 0x318]
call fcn.0040a458
push dword [ebp - 0x318]
push 0x548434
push dword [ebp - 0x10]
lea eax, [ebp - 0x30c]
mov edx, 7
call fcn.00404c24
mov edx, dword [ebp - 0x30c]
mov eax, dword [0x598650]
call fcn.00415d18
dec esi
test esi, esi
jne 0x54820f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x5481aa
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 0x5483c0
cmp byte [0x59864c], 0
je 0x5483b2
call fcn.00547e70
jmp 0x5483c0
cmp byte [0x59864d], 0
je 0x5483c0
call fcn.00548438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5483ed
lea eax, [ebp - 0x318]
mov edx, 0x10
call fcn.004048e0
lea eax, [ebp - 0x10]
call fcn.004048bc
ret