Function at 0x40773c
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe08
push ebx
push esi
push edi
mov eax, 0x59f2e8
call fcn.0057c5c8
mov byte [ebp - 0x1e9], 0
push dword [ebp + 8]
call fcn.00405b98
pop ecx
test al, al
jne 0x40777a
xor eax, eax
mov edx, dword [ebp - 0x1e8]
mov dword fs:[0], edx
jmp 0x40885c
mov ecx, dword [ebp + 8]
mov dl, 1
mov eax, dword [sym.SDERPServer.exe__TPacketParams_]
call sym.SDERPServer.exe__TPacketParams__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0x1f0], eax
push 1
mov word [ebp - 0x1d8], 8
mov edx, 0x59d838
lea eax, [ebp - 8]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x14
push dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
call fcn.004088f0
add esp, 8
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x1c]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x20
mov edx, 0x59d841
lea eax, [ebp - 0x20]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x2c
lea eax, [ebp - 0x24]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x368]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x34]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x38
mov edx, 0x59d84a
lea eax, [ebp - 0x38]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x44
lea eax, [ebp - 0x3c]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x36c]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x4c]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x50
mov edx, 0x59d853
lea eax, [ebp - 0x50]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x5c
lea eax, [ebp - 0x54]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x344]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x64]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x68
mov edx, 0x59d85f
lea eax, [ebp - 0x68]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x74
lea eax, [ebp - 0x6c]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x348]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x7c]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], pe_nt_image_headers32
mov edx, 0x59d86b
lea eax, [ebp - 0x80]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x8c
mov edx, 0x59d876
lea eax, [ebp - 0x90]
call fcn.005905e4
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.005906a0
push 1
mov word [ebp - 0x1d8], 0x98
mov edx, 0x59d877
lea eax, [ebp - 0x94]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0xa4
lea eax, [ebp - 0x98]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34c]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x98]
lea eax, [ebp - 0xa8]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0xb0
mov edx, 0x59d87f
lea eax, [ebp - 0xac]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0xbc
lea eax, [ebp - 0xb0]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x354]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0xb0]
lea eax, [ebp - 0xc0]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xc0]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0xc8
mov edx, 0x59d885
lea eax, [ebp - 0xc4]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xc4]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0xd4
lea eax, [ebp - 0xc8]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x350]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0xc8]
lea eax, [ebp - 0xd8]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xd8]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xc8]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0xe0
mov edx, 0x59d88c
lea eax, [ebp - 0xdc]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xdc]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0xec
lea eax, [ebp - 0xe0]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x364]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0xf0]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xf0]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xe0]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0xf8
mov edx, 0x59d892
lea eax, [ebp - 0xf4]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xf4]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x104
lea eax, [ebp - 0xf8]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x404]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0xf8]
lea eax, [ebp - 0x108]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0xf8]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x110
mov edx, 0x59d896
lea eax, [ebp - 0x10c]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x11c
lea eax, [ebp - 0x110]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40c]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x120]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x120]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x128
mov edx, 0x59d89e
lea eax, [ebp - 0x124]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x134
mov edx, 0x59d8a7
lea eax, [ebp - 0x134]
call fcn.005905e4
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.005906a0
push 1
mov word [ebp - 0x1d8], 0x140
mov edx, 0x59d8a9
lea eax, [ebp - 0x138]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x14c
lea eax, [ebp - 0x13c]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3e4]
call sub.dsnap60.bpl__Dbclient_TCustomClientDataSet_GetXMLData_qqrv
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x14c]
call fcn.005904f8
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.0058fb04
push 1
mov word [ebp - 0x1d8], 0x158
mov edx, 0x59d8b4
lea eax, [ebp - 0x150]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov ecx, dword [eax]
mov dl, 5
mov eax, dword [ebp - 0x1f0]
call sub.dbrtl60.bpl__Db_TParams_CreateParam_qqr13Db_TFieldTypex17System_AnsiString13Db_TParamType
mov dword [ebp - 0x1f4], eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x164
mov ecx, dword [0x5eae40]
mov dl, byte [ecx + 1]
lea eax, [ebp - 0x160]
call fcn.00590418
mov edx, eax
inc dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1f4]
call sub.dbrtl60.bpl__Db_TParam_SetAsVariant_qqrrx14System_Variant
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.005906a0
mov word [ebp - 0x1d8], 0x170
lea eax, [ebp - 4]
call fcn.004025f4
inc dword [ebp - 0x1cc]
mov word [ebp - 0x1d8], 0x17c
mov word [ebp - 0x1d8], 0x188
mov word [ebp - 0x1d8], 0x194
push 0xea60
push dword [ebp - 0x1f0]
lea eax, [ebp - 0x164]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
call sym.SDERPServer.exe__TPacketParams_ToString_qv
add esp, 8
lea edx, [ebp - 0x164]
push dword [edx]
mov edx, 0x59d8c4
lea eax, [ebp - 0x168]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
push dword [eax]
lea eax, [ebp - 0x16c]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
call sym.SDERPServer.exe__TCPInvoke_q17System_AnsiStringt1i
add esp, 0x10
lea edx, [ebp - 0x16c]
lea eax, [ebp - 4]
call fcn.0058fb34
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x16c]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x164]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x17c
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x174], ecx
cmp dword [ebp - 0x174], 0
je 0x408341
mov eax, dword [ebp - 0x174]
mov edx, dword [eax]
mov dword [ebp - 0x170], edx
mov word [ebp - 0x1d8], 0x1ac
mov edx, 3
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1d8], 0x1a0
cmp word [ebp - 0x1d6], 0
je 0x40834c
ret
mov ecx, dword [ebp + 8]
mov dl, 1
mov eax, dword [sym.SDERPServer.exe__TPacketParams_]
call sym.SDERPServer.exe__TPacketParams__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0x1f8], eax
push dword [ebp - 4]
push dword [ebp - 0x1f8]
call sym.SDERPServer.exe__TPacketParams_LoadFromString_q17System_AnsiString
add esp, 8
mov word [ebp - 0x1d8], 0x1b8
mov edx, 0x59d8d7
lea eax, [ebp - 0x178]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1f8]
call sub.dbrtl60.bpl__Db_TParams_ParamByName_qqrx17System_AnsiString
push eax
lea eax, [ebp - 0x17c]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
pop eax
call sub.dbrtl60.bpl__Db_TParam_GetAsString_qqrv
lea edx, [ebp - 0x17c]
push edx
mov edx, 0x59d8de
lea eax, [ebp - 0x180]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
lea edx, [ebp - 0x180]
pop eax
call fcn.0058fbe8
push eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x180]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x178]
mov edx, 2
call fcn.0058fb04
pop ecx
test cl, cl
je 0x40843e
mov byte [ebp - 0x1e9], 1
push dword [ebp + 8]
call fcn.00408bb8
pop ecx
jmp 0x4087ef
mov word [ebp - 0x1d8], 0x1c4
lea eax, [ebp - 0x184]
call fcn.004025f4
inc dword [ebp - 0x1cc]
mov word [ebp - 0x1d8], 0x1d0
mov word [ebp - 0x1d8], 0x1dc
lea eax, [ebp - 0x198]
call fcn.00590394
push eax
inc dword [ebp - 0x1cc]
mov edx, 0x59d8e0
lea eax, [ebp - 0x188]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1f8]
pop ecx
call sub.dbrtl60.bpl__Db_TParams_GetParamValue_qqrx17System_AnsiString
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x19c]
call fcn.004025f4
mov edx, eax
inc dword [ebp - 0x1cc]
pop eax
call fcn.00590da0
lea edx, [ebp - 0x19c]
lea eax, [ebp - 0x184]
call fcn.0058fb34
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.005906a0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x1e8
mov edx, 0x59d8e7
lea eax, [ebp - 0x1a0]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x184]
call fcn.0058fe64
test eax, eax
setg cl
and ecx, 1
push ecx
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1a0]
mov edx, 2
call fcn.0058fb04
pop ecx
test cl, cl
je 0x4087a8
mov word [ebp - 0x1d8], 0x1f4
lea eax, [ebp - 0x1a4]
call fcn.004025f4
inc dword [ebp - 0x1cc]
mov word [ebp - 0x1d8], 0x200
mov word [ebp - 0x1d8], 0x20c
lea eax, [ebp - 0x1ac]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
mov edx, 0x59d8f2
lea eax, [ebp - 0x1a8]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x184]
call fcn.0058fe64
mov edx, eax
add edx, 2
lea eax, [ebp - 0x184]
mov ecx, 0xff
call fcn.00590020
lea edx, [ebp - 0x1ac]
lea eax, [ebp - 0x1a4]
call fcn.0058fb34
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1ac]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1a8]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x218
lea eax, [ebp - 0x1b4]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
mov edx, 0x59d8f5
lea eax, [ebp - 0x1b0]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x1a4]
call fcn.0058fe64
mov ecx, eax
dec ecx
lea eax, [ebp - 0x1a4]
mov edx, 1
call fcn.00590020
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x1a4]
call fcn.0058fb34
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1b4]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x224
lea eax, [ebp - 0x1bc]
call fcn.004025f4
push eax
inc dword [ebp - 0x1cc]
mov edx, 0x59d8f8
lea eax, [ebp - 0x1b8]
call fcn.0058f82c
inc dword [ebp - 0x1cc]
lea edx, [ebp - 0x1b8]
lea eax, [ebp - 0x184]
call fcn.0058fe64
mov ecx, eax
dec ecx
lea eax, [ebp - 0x184]
mov edx, 1
call fcn.00590020
lea edx, [ebp - 0x1bc]
lea eax, [ebp - 0x184]
call fcn.0058fb34
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1bc]
mov edx, 2
call fcn.0058fb04
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1b8]
mov edx, 2
call fcn.0058fb04
push 0x21
lea eax, [ebp - 0x184]
call fcn.00404af8
mov edx, eax
mov ecx, 0x59d8fb
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call fcn.0058f760
dec eax
jne 0x408787
push 1
push 0
push 0
lea eax, [ebp - 0x1a4]
call fcn.00404af8
push eax
push 0x59d900
push 0
call sub.SHELL32.dll_ShellExecuteA
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x1a4]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x1d0
jmp 0x4087c9
push 0x10
push 0x59d905
lea eax, [ebp - 0x184]
call fcn.00404af8
push eax
mov eax, dword [ebp + 8]
call sub.vcl60.bpl__Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_MessageBoxA
mov byte [ebp - 0x1e9], 0
dec dword [ebp - 0x1cc]
lea eax, [ebp - 0x184]
mov edx, 2
call fcn.0058fb04
mov word [ebp - 0x1d8], 0x17c
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1c4], ecx
cmp dword [ebp - 0x1c4], 0
je 0x408834
mov eax, dword [ebp - 0x1c4]
mov edx, dword [eax]
mov dword [ebp - 0x1c0], edx
mov word [ebp - 0x1d8], 0x23c
mov edx, 3
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x1d8], 0x230
mov al, byte [ebp - 0x1e9]
push eax
dec dword [ebp - 0x1cc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0058fb04
pop eax
mov edx, dword [ebp - 0x1e8]
mov dword fs:[0], edx
mov edi, dword [ebp - 0x204]
mov esi, dword [ebp - 0x200]
mov ebx, dword [ebp - 0x1fc]
mov esp, ebp
pop ebp
ret