Function at 0x4c7204
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov byte [ebp - 0xc], dl
test dl, dl
jle 0x4c7216
call fcn.0054c350
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x2d], dl
mov dword [ebp - 4], eax
mov eax, 0x5e2824
call fcn.005496a0
mov word [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Classes_TComponent__bctr_qqrp18Classes_TComponent
add dword [ebp - 0x10], 4
mov eax, dword [ebp - 4]
add eax, 0x78
call fcn.00401fbc
inc dword [ebp - 0x10]
push pe_nt_image_headers32
call sub.cc3260mt.dll___bnew_qui
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4c727a
mov word [ebp - 0x1c], 0x20
push dword [ebp - 8]
call fcn.004c5d90
pop ecx
mov word [ebp - 0x1c], 0x14
mov edx, dword [ebp - 8]
jmp 0x4c727d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x3c], sym.SDERPService.exe__TClientChannel_DoConnect_qqrp16TCustomTcpSocket
mov edx, dword [ebp - 4]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x50], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x44], sym.SDERPService.exe__TClientChannel_DoReceive_qqrp16TCustomTcpSocketpci
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x44]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x5c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x30]
mov dword [ebp - 0x4c], sym.SDERPService.exe__TClientChannel_DoClose_qqrp16TCustomTcpSocket
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x70], edx
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x74], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x54], sym.SDERPService.exe__TClientChannel_DoError_qqrp16TCustomTcpSocketri
mov edx, dword [ebp - 4]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x68], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x6c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x4c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x50], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x58], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x64], ecx
push 0x10
call sub.cc3260mt.dll___bnew_qui
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
xor ecx, ecx
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
xor ecx, ecx
mov dword [edx + 0xc], ecx
push 8
push 0
mov eax, dword [ebp - 4]
add eax, 0x68
push eax
call sub.cc3260mt.dll__memset
add esp, 0xc
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x70], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x80], 0
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x2d], 0
je 0x4c73d4
call fcn.0054c35d
mov esp, ebp
pop ebp
ret