Function at 0x5246fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x524705
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x14]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x524ba9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x7309e4]
mov eax, dword [eax]
mov ecx, 1
mov edx, 1
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x28]
mov edx, 0x524bc8
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x52483c
mov eax, dword [ebp - 4]
add eax, 0x6c4
mov edx, 0x524bd8
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x524be8
push 0x524bec
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x7309e4]
mov edx, dword [edx]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524bf4
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
mov edx, dword [0x730f68]
mov edx, dword [edx]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x30]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c04
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
call fcn.006e7b74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x34]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c0c
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [0x7309e4]
call sub.rtl260.bpl__System__UStrClr_qqrpv
jmp 0x524a26
mov al, byte [0x524c18]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x44]
xor ecx, ecx
mov edx, 0x524c28
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
cmp eax, 6
jne 0x524906
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c2c
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x48], 0
je 0x52491c
mov al, byte [0x524c18]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov edx, 0x524c28
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x50]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c38
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
jmp 0x52491c
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524bf4
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c44
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov al, byte [0x524c18]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
call fcn.006e78f8
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov edx, 0x524c28
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x5c]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c54
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
mov edx, dword [0x730f68]
mov edx, dword [edx]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x68]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c04
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c5c
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c64
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
push 0x524be8
push 0x524bec
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x70]
call fcn.006e7b74
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x6c]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c0c
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c70
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x730c00]
mov edx, dword [edx]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
cmp dword [ebp - 0x20], 0
jne 0x524a4e
lea eax, [ebp - 0x20]
mov edx, 0x524c8c
call sub.rtl260.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x20]
call sub.rtl260.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0x524c90
call sub.webservice.dll_WS_AddParam
mov dword [ebp - 0x10], eax
mov eax, dword [0x730ad8]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x524a8f
mov dl, 1
mov eax, 0x524ca4
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x524a8f
push 5
push 0x524ce0
call sub.kernel32.dll_WinExec
push 0x524d00
call sub.webservice.dll_WS_Qualify
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, 0x524d3c
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x524ad3
mov eax, 0x524d3c
call sub.rtl260.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
mov eax, dword [0x730bd4]
mov eax, dword [eax]
mov eax, dword [eax + 0x42c]
mov eax, dword [eax + 0xa0]
mov edx, 0x524d88
call sub.rtl260.bpl__System_Win_Scktcomp_TCustomWinSocket_SendText_qqrx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x5f4], edx
cmp dword [ebp - 0x14], 0
jle 0x524b0e
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x524b0e
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0051d628
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x524af6
call sub.webservice.dll_WS_Close
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524bb3
lea eax, [ebp - 0x70]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x6c]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x64]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x5c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x58]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x50]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x4c]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x34]
mov edx, 3
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x20]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 8]
mov edx, 4
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
ret