Function at 0x4120ec
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff18
push ebx
mov eax, 0x591654
call fcn.0051a22c
push dword [ebp + 8]
call fcn.00411c44
pop ecx
mov word [ebp - 0xcc], 0x14
lea eax, [ebp - 0xc]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b141
lea eax, [ebp - 8]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 4]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b147
lea eax, [ebp - 0x10]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.0051a624
lea ecx, [ebp - 0x14]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Inifiles_TIniFile_]
call fcn.004117f0
mov dword [ebp - 0xe0], eax
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xcc], 8
mov ecx, dword [sym.imp.vcl60.bpl__Forms_Application]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xf0]
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, dword [ebp - 0xe4]
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
mov dword [ebp - 0xe8], eax
mov word [ebp - 0xcc], 0x20
lea eax, [ebp - 0x1c]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
lea eax, [ebp - 0x18]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea edx, [ebp - 0x18]
mov eax, 0x58b154
pop ecx
call fcn.0051ab7c
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b197
lea eax, [ebp - 0x20]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x20]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0051a5cc
mov eax, dword [ebp - 0xe4]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0xe4]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x4123b1
mov word [ebp - 0xcc], 0x2c
mov edx, 0x58b1a2
lea eax, [ebp - 0x28]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
push dword [eax]
call fcn.0046d388
pop ecx
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
je 0x41239d
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov word [ebp - 0xcc], 0x44
mov edx, 3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xcc], 0x38
xor eax, eax
mov edx, dword [ebp - 0xdc]
mov dword fs:[0], edx
jmp 0x4129e0
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
je 0x4123e7
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov word [ebp - 0xcc], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xcc], 0x50
mov word [ebp - 0xcc], 0x68
mov edx, 0x58b1f5
lea eax, [ebp - 0x4c]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
push dword [eax]
lea eax, [ebp - 0x50]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
lea eax, [ebp - 0x44]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b1e3
lea eax, [ebp - 0x40]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x3c]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea eax, [ebp - 0x3c]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x44]
push dword [eax]
mov edx, 0x58b1ec
lea eax, [ebp - 0x48]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xe0]
pop edx
mov ebx, dword [eax]
call dword [ebx]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b1f6
lea eax, [ebp - 0x58]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x54]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 0x54]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b200
lea eax, [ebp - 0x60]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x60]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x64]
push dword [edx]
lea eax, [ebp - 0x68]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call fcn.00434314
add esp, 8
lea edx, [ebp - 0x68]
pop eax
call fcn.0051a6c8
push eax
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0051a5cc
pop ecx
test cl, cl
je 0x41268b
mov word [ebp - 0xcc], 0x74
mov edx, 0x58b209
lea eax, [ebp - 0x6c]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
push dword [eax]
call fcn.0046d388
pop ecx
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0
je 0x412677
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
mov dword [ebp - 0x70], edx
mov word [ebp - 0xcc], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xcc], pe_nt_image_headers32
xor eax, eax
mov edx, dword [ebp - 0xdc]
mov dword fs:[0], edx
jmp 0x4129e0
mov word [ebp - 0xcc], 0x98
mov edx, 0x58b258
lea eax, [ebp - 0x88]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
push dword [eax]
lea eax, [ebp - 0x8c]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
lea eax, [ebp - 0x80]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b246
lea eax, [ebp - 0x7c]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x78]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea eax, [ebp - 0x78]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x80]
push dword [eax]
mov edx, 0x58b24f
lea eax, [ebp - 0x84]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xe0]
pop edx
mov ebx, dword [eax]
call dword [ebx]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x98]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b259
lea eax, [ebp - 0x94]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x90]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 0x90]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
mov edx, 0x58b263
lea eax, [ebp - 0x9c]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
lea edx, [ebp - 0x9c]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0xa0]
push dword [edx]
lea eax, [ebp - 0xa4]
call fcn.00402270
push eax
inc dword [ebp - 0xc0]
call fcn.00434314
add esp, 8
lea edx, [ebp - 0xa4]
pop eax
call fcn.0051a6c8
push eax
dec dword [ebp - 0xc0]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xc0]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0051a5cc
pop ecx
test cl, cl
je 0x41298c
mov word [ebp - 0xcc], 0xa4
mov edx, 0x58b26c
lea eax, [ebp - 0xa8]
call fcn.0051a3a8
inc dword [ebp - 0xc0]
push dword [eax]
call fcn.0046d388
pop ecx
dec dword [ebp - 0xc0]
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.0051a5cc
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0
je 0x41297b
mov eax, dword [ebp - 0xb0]
mov edx, dword [eax]
mov dword [ebp - 0xac], edx
mov word [ebp - 0xcc], 0xbc
mov edx, 3
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xcc], 0xb0
xor eax, eax
mov edx, dword [ebp - 0xdc]
mov dword fs:[0], edx
jmp 0x4129e0
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0
je 0x4129d1
mov eax, dword [ebp - 0xb8]
mov edx, dword [eax]
mov dword [ebp - 0xb4], edx
mov word [ebp - 0xcc], 0xd4
mov edx, 3
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xcc], 0xc8
mov al, 1
mov edx, dword [ebp - 0xdc]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret