Function at 0x412a08
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff24
push ebx
push esi
push edi
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xd0], eax
mov eax, 0x5919ac
call fcn.0051a22c
mov dword [ebp - 0xb0], 1
lea edx, [ebp - 8]
lea eax, [ebp - 8]
call fcn.0051a3e0
inc dword [ebp - 0xb0]
mov word [ebp - 0xbc], 8
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TStringList_]
call fcn.00402468
mov dword [ebp - 0xd8], eax
mov word [ebp - 0xbc], 0x14
lea eax, [ebp - 0xc]
call fcn.00402270
inc dword [ebp - 0xb0]
mov word [ebp - 0xbc], 8
mov word [ebp - 0xbc], 0x20
lea eax, [ebp - 0x10]
call fcn.00402270
inc dword [ebp - 0xb0]
mov word [ebp - 0xbc], 8
mov word [ebp - 0xbc], 0x2c
lea eax, [ebp - 0x28]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3bf
lea eax, [ebp - 0x24]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 0x20]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3c9
lea eax, [ebp - 0x2c]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x2c]
pop ecx
pop eax
call fcn.0051a624
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xbc], 8
mov word [ebp - 0xbc], 0x38
lea eax, [ebp - 0x38]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3d2
lea eax, [ebp - 0x34]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 0x30]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
lea eax, [ebp - 0x3c]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea edx, [ebp - 0x3c]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x44]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0xb0]
lea edx, [ebp - 8]
pop eax
call fcn.0051a624
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x18]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3d8
lea eax, [ebp - 0x48]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.0051a624
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xbc], 8
mov word [ebp - 0xbc], 0x44
lea eax, [ebp - 0x54]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3dd
lea eax, [ebp - 0x50]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call fcn.0042d5d4
pop ecx
lea eax, [ebp - 0x4c]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
lea eax, [ebp - 0x58]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea edx, [ebp - 0x58]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x60]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0xb0]
lea edx, [ebp - 8]
pop eax
call fcn.0051a624
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x1c]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b3e3
lea eax, [ebp - 0x64]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x64]
pop ecx
pop eax
call fcn.0051a624
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xbc], 8
mov eax, dword [ebp - 0x1c]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x412e40
mov eax, dword [ebp - 0x1c]
call fcn.0051a31c
push 0
lea eax, [ebp - 0x18]
call fcn.004050d4
push eax
lea eax, [ebp - 0x14]
call fcn.004050d4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x412f55
mov word [ebp - 0xbc], 0x50
lea eax, [ebp - 0x6c]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b40a
lea eax, [ebp - 0x68]
call fcn.0051a3a8
mov edx, eax
inc dword [ebp - 0xb0]
mov eax, 0x58b3ec
pop ecx
call fcn.0051ab7c
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0xd4]
call fcn.0051a5fc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0051a5cc
xor eax, eax
push eax
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051a5cc
pop eax
mov edx, dword [ebp - 0xcc]
mov dword fs:[0], edx
jmp 0x41348e
mov word [ebp - 0xbc], 0x5c
mov word [ebp - 0xbc], 0x68
lea eax, [ebp - 0xd9]
call fcn.00411bc8
mov dl, byte [eax]
push edx
lea eax, [ebp - 0x98]
call fcn.00413498
push eax
inc dword [ebp - 0xb0]
lea eax, [ebp - 0x78]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
lea eax, [ebp - 0x74]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
call sym.SDCWServiceApp.exe__GetDBPrefix_qv
pop ecx
lea edx, [ebp - 0x74]
push edx
mov edx, 0x58b419
lea eax, [ebp - 0x70]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
pop edx
pop ecx
call fcn.0051a624
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0xb0]
lea edx, [ebp - 8]
pop eax
call fcn.0051a624
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x84]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b442
lea eax, [ebp - 0x80]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x80]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x88]
call fcn.00402270
mov ecx, eax
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x18]
pop eax
call fcn.0051a624
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x90]
call fcn.00402270
push eax
inc dword [ebp - 0xb0]
mov edx, 0x58b452
lea eax, [ebp - 0x8c]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0x8c]
pop ecx
pop eax
call fcn.0051a624
lea edx, [ebp - 0x90]
lea eax, [ebp - 0x94]
call fcn.0051c204
inc dword [ebp - 0xb0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ecx + 0xf0]
mov cl, 1
call sub.adortl60.bpl__Adodb_TADOConnection_Execute_qqrx17System_WideStringx18Adodb_TCommandTypex48System__Set_t20Adodb_TExecuteOpt
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.004134c8
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0051c278
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0051a5cc
mov word [ebp - 0xbc], 8
jmp 0x4133c5
mov word [ebp - 0xbc], 0x98
mov edx, 0x58b494
lea eax, [ebp - 0xa8]
call fcn.0051a3a8
inc dword [ebp - 0xb0]
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0xd4]
call fcn.0051a5fc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.0051a5cc
mov al, 1
push eax
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0051a5cc
dec dword [ebp - 0xb0]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0051a5cc
pop eax
mov edx, dword [ebp - 0xcc]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret