Function at 0x4e17cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], eax
mov eax, 0x5ebff4
call fcn.005496a0
mov edx, dword [ebp - 0x58]
add edx, 0x270
push edx
call fcn.004e1ad8
pop ecx
test eax, eax
jbe 0x4e1ab2
mov word [ebp - 0x44], 8
lea eax, [ebp - 4]
call fcn.00401fbc
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 8]
call fcn.00401fbc
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401fbc
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x38
lea eax, [ebp - 0x10]
call fcn.00401fbc
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
push 0x104
push 0
lea edx, [ebp - 0x168]
push edx
call sub.cc3260mt.dll__memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x26c]
push ecx
call sub.cc3260mt.dll__memset
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x26c]
push edx
push 0
push 0x5e6746
lea ecx, [ebp - 0x168]
push ecx
call sub.kernel32.dll_GetTempFileNameA
mov word [ebp - 0x44], 0x44
lea edx, [ebp - 0x26c]
lea eax, [ebp - 0x18]
call fcn.005499e4
inc dword [ebp - 0x38]
lea edx, [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00549c38
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00549c08
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TFileStream_]
call sub.rtl60.bpl__Classes_TFileStream__bctr_qqrx17System_AnsiStringus
mov dword [ebp - 0x60], eax
mov word [ebp - 0x44], 0x14
push 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x270
push ecx
call fcn.004e1af4
add esp, 8
call fcn.00405450
push eax
push 0
mov eax, dword [ebp - 0x58]
add eax, 0x270
push eax
call fcn.004e1af4
add esp, 8
call fcn.0042bd14
mov edx, eax
mov eax, dword [ebp - 0x60]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4e196d
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x44], 0x5c
mov edx, 3
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x50
xor ecx, 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 - 0x64], eax
mov word [ebp - 0x44], 0x14
mov word [ebp - 0x44], 0x68
lea edx, [ebp - 4]
lea eax, [ebp - 0x24]
call fcn.0054bf30
inc dword [ebp - 0x38]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
call sub.adortl60.bpl__Adodb_TCustomADODataSet_LoadFromFile_qqrx17System_WideString
dec dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0054bfa4
mov eax, dword [ebp - 4]
call fcn.00549958
mov word [ebp - 0x44], 0x74
mov edx, dword [ebp - 0x64]
add edx, 0x178
lea eax, [ebp - 0x14]
call fcn.004e1b0c
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x14
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x4e1a07
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov word [ebp - 0x44], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], pe_nt_image_headers32
mov edx, dword [ebp - 0x58]
add edx, 0x270
push edx
call fcn.004e1b58
pop ecx
push eax
mov eax, dword [ebp - 0x58]
add eax, 0x270
push eax
call fcn.004e1b64
add esp, 8
mov word [ebp - 0x44], 0x98
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x30]
call fcn.004e1bb4
mov eax, dword [ebp - 0x30]
mov word [ebp - 0x44], 0xa4
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004119e8
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00549c08
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00549c08
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00549c08
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00549c08
pop eax
mov word [ebp - 0x44], 0x98
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x4e1ad2
mov word [ebp - 0x44], 0xb0
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.004e1bf8
mov eax, dword [ebp - 0x30]
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret