Function at 0x544904
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x63
push 0
push 0
dec ecx
jne 0x54490c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x544da2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c8]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
call fcn.0054418c
mov al, byte [0x590700]
or al, byte [0x590701]
jne 0x544d5e
lea eax, [ebp - 4]
push eax
mov eax, dword [0x5906fc]
call fcn.00446828
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.004f4c34
mov edi, eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004f4c54
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x544d40
mov eax, dword [ebp - 0x130]
call fcn.00544838
test al, al
je 0x544d40
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x544d40
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 0x544b58
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.005441b8
cmp eax, 0xffffffff
je 0x544b4f
dec eax
je 0x544a15
dec eax
je 0x544a24
jmp 0x544a31
lea eax, [ebp - 0x10]
mov edx, 0x544db8
call fcn.0040492c
jmp 0x544a31
lea eax, [ebp - 0x10]
mov edx, 0x544dc4
call fcn.0040492c
cmp byte [ebp - 9], 0
jne 0x544b4f
lea edx, [ebp - 0x2e0]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x2e0]
push 0x544dd0
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2e4]
call fcn.0040b424
push dword [ebp - 0x2e4]
push 0x544de4
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 0x544df0
push dword [ebp - 0x10]
lea eax, [ebp - 0x2dc]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2dc]
mov eax, dword [0x590704]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x544b4f
lea edx, [ebp - 0x2f0]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x2f0]
push 0x544dd0
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2f4]
call fcn.0040b424
push dword [ebp - 0x2f4]
push 0x544de4
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 0x544df0
push dword [ebp - 0x10]
lea eax, [ebp - 0x2ec]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2ec]
mov eax, dword [0x590704]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec esi
test esi, esi
jne 0x5449ec
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x544d40
lea edx, [ebp - 0x138]
mov eax, edi
call fcn.004f4c74
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x544d40
mov eax, dword [ebp - 0x130]
call fcn.00544838
test al, al
je 0x544d40
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 0x130]
je 0x544d40
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 0x544d37
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.005441b8
cmp eax, 0xffffffff
je 0x544d2e
dec eax
je 0x544bf4
dec eax
je 0x544c03
jmp 0x544c10
lea eax, [ebp - 0x10]
mov edx, 0x544db8
call fcn.0040492c
jmp 0x544c10
lea eax, [ebp - 0x10]
mov edx, 0x544dc4
call fcn.0040492c
cmp byte [ebp - 9], 0
jne 0x544d2e
lea edx, [ebp - 0x300]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x300]
push 0x544dd0
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x304]
call fcn.0040b424
push dword [ebp - 0x304]
push 0x544de4
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 0x544df0
push dword [ebp - 0x10]
lea eax, [ebp - 0x2fc]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x2fc]
mov eax, dword [0x590704]
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jge 0x544d2e
lea edx, [ebp - 0x310]
lea eax, [ebp - 0x114]
call fcn.0040b424
push dword [ebp - 0x310]
push 0x544dd0
push dword [ebp - 0x2d4]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x314]
call fcn.0040b424
push dword [ebp - 0x314]
push 0x544de4
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 0x544df0
push dword [ebp - 0x10]
lea eax, [ebp - 0x30c]
mov edx, 7
call fcn.00404bfc
mov edx, dword [ebp - 0x30c]
mov eax, dword [0x590704]
call fcn.00415cc8
dec esi
test esi, esi
jne 0x544bcb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x544b66
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 0x544d7c
cmp byte [0x590700], 0
je 0x544d6e
call fcn.0054482c
jmp 0x544d7c
cmp byte [0x590701], 0
je 0x544d7c
call fcn.00544df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544da9
lea eax, [ebp - 0x318]
mov edx, 0x10
call fcn.004048b8
lea eax, [ebp - 0x10]
call fcn.00404894
ret