Function at 0x5982b468
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5982b78d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call sub.rtl120.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x18]
mov edx, dword [sym.imp.madBasic_.bpl___xp_22Madtypes_TDAAnsiString]
call sub.rtl120.bpl__System__DynArrayClear_qqrrpvpv
push 0x7fffffff
mov ebx, dword [sym.imp.madBasic_.bpl__Madstrings_PosStrA]
mov ebx, dword [ebx]
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5982b7a8
call ebx
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call sub.rtl120.bpl__System__LStrDelete_qqrv
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x3e
jne 0x5982b518
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call sub.rtl120.bpl__System__LStrDelete_qqrv
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__LStrLAsg_qqrpvpxv
xor esi, esi
lea eax, [ebp - 8]
xor edx, edx
call sub.rtl120.bpl__System__EnsureAnsiString_qqrr27System__AnsiStringT_us_i0__us
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov ebx, eax
cmp ebx, 1
jl 0x5982b561
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0x2e
jne 0x5982b55c
cmp esi, 2
jne 0x5982b55b
lea eax, [ebp - 8]
mov ecx, ebx
mov edx, 1
call sub.rtl120.bpl__System__LStrDelete_qqrv
jmp 0x5982b561
inc esi
dec ebx
test ebx, ebx
jne 0x5982b53b
lea eax, [ebp - 0x1ac]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x5982b75f
lea eax, [ebp - 0x18]
call fcn.5982aa50
cmp dword [ebp - 0x18], 0
je 0x5982b61a
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.5982b0c8
pop ecx
cmp dword [ebp - 0x10], 0
je 0x5982b5c0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x5982b75a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrEqual_qqrv
je 0x5982b75a
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.5982b0c8
pop ecx
cmp dword [ebp - 0x10], 0
je 0x5982b75a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
jmp 0x5982b75a
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, 0x5982b7b8
mov dword [ebp - 0x1b4], eax
mov eax, 0x5982b7d8
mov dword [ebp - 0x1b0], eax
lea edx, [ebp - 0x1b4]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.5982b0c8
pop ecx
cmp dword [ebp - 0x10], 0
je 0x5982b75a
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.5982b0c8
pop ecx
mov ebx, 0xa
cmp dword [ebp - 0xc], 0
jne 0x5982b6c0
cmp dword [ebp - 0x14], 0
je 0x5982b6c0
push ebp
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.5982b0c8
pop ecx
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [sym.imp.madBasic_.bpl___xp_22Madtypes_TDAAnsiString]
call sub.rtl120.bpl__System__DynArrayAsg_qqrv
dec ebx
jne 0x5982b67f
cmp dword [ebp - 0xc], 0
jne 0x5982b6dd
cmp dword [ebp - 0x10], 0
je 0x5982b6dd
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [sym.imp.madBasic_.bpl___xp_22Madtypes_TDAAnsiString]
call sub.rtl120.bpl__System__DynArrayAsg_qqrv
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.5982b0c8
pop ecx
cmp dword [ebp - 0x10], 0
je 0x5982b711
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x5982b75a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl120.bpl__System__LStrEqual_qqrv
je 0x5982b75a
push ebp
push 0xf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__System__DynArrayHigh_qqrv
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.5982b0c8
pop ecx
cmp dword [ebp - 0x10], 0
je 0x5982b75a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5982b794
lea eax, [ebp - 0x18]
mov edx, dword [sym.imp.madBasic_.bpl___xp_22Madtypes_TDAAnsiString]
mov ecx, 4
call sub.rtl120.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
ret